1 /* DirectMusicLoader Private Include
3 * Copyright (C) 2003-2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_DMLOADER_PRIVATE_H
21 #define __WINE_DMLOADER_PRIVATE_H
35 #include "wine/debug.h"
36 #include "wine/list.h"
45 #define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
47 /*****************************************************************************
50 typedef struct IDirectMusicLoaderCF IDirectMusicLoaderCF
;
51 typedef struct IDirectMusicContainerCF IDirectMusicContainerCF
;
53 typedef struct IDirectMusicLoaderFileStream IDirectMusicLoaderFileStream
;
54 typedef struct IDirectMusicLoaderResourceStream IDirectMusicLoaderResourceStream
;
55 typedef struct IDirectMusicLoaderGenericStream IDirectMusicLoaderGenericStream
;
57 /*****************************************************************************
60 extern HRESULT
create_dmloader(REFIID riid
, void **ret_iface
);
61 extern HRESULT
create_dmcontainer(REFIID riid
, void **ret_iface
);
62 extern HRESULT
DMUSIC_CreateDirectMusicLoaderResourceStream(void **ppobj
);
64 /*****************************************************************************
65 * IDirectMusicLoaderResourceStream implementation structure
67 struct IDirectMusicLoaderResourceStream
{
69 const IStreamVtbl
*StreamVtbl
;
70 /* reference counter */
75 /* current position */
80 extern HRESULT WINAPI
IDirectMusicLoaderResourceStream_Attach(LPSTREAM iface
, LPBYTE pbMemData
,
81 LONGLONG llMemLength
, LONGLONG llPos
);
83 extern HRESULT
loader_stream_create(IDirectMusicLoader
*loader
, IStream
*stream
, IStream
**ret_iface
);
84 extern HRESULT
file_stream_create(const WCHAR
*path
, IStream
**ret_iface
);
88 #endif /* __WINE_DMLOADER_PRIVATE_H */