[PATCH] dmime: Make some 'stream chunk' functions static.

Michael Stefaniuc mstefani at winehq.org
Thu Mar 15 14:57:58 CDT 2018


NACK, this is the RIFF stream API that I need to parse all the RIFF
streams aka reimplement all those IPersistStream_Load() methods.
I'll even add more stuff to it soon.

bye
	michael

On 03/15/2018 06:13 PM, Francois Gouget wrote:
> Signed-off-by: Francois Gouget <fgouget at free.fr>
> ---
>  dlls/dmime/dmobject.c | 6 +++---
>  dlls/dmime/dmobject.h | 6 ------
>  2 files changed, 3 insertions(+), 9 deletions(-)
> 
> diff --git a/dlls/dmime/dmobject.c b/dlls/dmime/dmobject.c
> index 00e52f04b93..bd665d7aeb7 100644
> --- a/dlls/dmime/dmobject.c
> +++ b/dlls/dmime/dmobject.c
> @@ -123,7 +123,7 @@ HRESULT stream_skip_chunk(IStream *stream, struct chunk_entry *chunk)
>      return IStream_Seek(stream, end, STREAM_SEEK_SET, NULL);
>  }
>  
> -HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk)
> +static HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk)
>  {
>      HRESULT hr;
>  
> @@ -136,7 +136,7 @@ HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk)
>      return stream_get_chunk(stream, chunk);
>  }
>  
> -HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk, void *data,
> +static HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk, void *data,
>          ULONG size)
>  {
>      if (chunk->size != size) {
> @@ -148,7 +148,7 @@ HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk,
>      return stream_read(stream, data, size);
>  }
>  
> -HRESULT stream_chunk_get_wstr(IStream *stream, const struct chunk_entry *chunk, WCHAR *str,
> +static HRESULT stream_chunk_get_wstr(IStream *stream, const struct chunk_entry *chunk, WCHAR *str,
>          ULONG size)
>  {
>      ULONG len;
> diff --git a/dlls/dmime/dmobject.h b/dlls/dmime/dmobject.h
> index 2940225698e..aefa80a4122 100644
> --- a/dlls/dmime/dmobject.h
> +++ b/dlls/dmime/dmobject.h
> @@ -32,14 +32,8 @@ struct chunk_entry {
>  };
>  
>  HRESULT stream_get_chunk(IStream *stream, struct chunk_entry *chunk) DECLSPEC_HIDDEN;
> -HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk) DECLSPEC_HIDDEN;
>  HRESULT stream_skip_chunk(IStream *stream, struct chunk_entry *chunk) DECLSPEC_HIDDEN;
>  
> -HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk, void *data,
> -        ULONG size) DECLSPEC_HIDDEN;
> -HRESULT stream_chunk_get_wstr(IStream *stream, const struct chunk_entry *chunk, WCHAR *str,
> -        ULONG size) DECLSPEC_HIDDEN;
> -
>  const char *debugstr_chunk(const struct chunk_entry *chunk) DECLSPEC_HIDDEN;
>  
>  
> 




More information about the wine-devel mailing list