[AMSTREAM] Sync with Wine Staging 3.9. CORE-14656
[reactos.git] / dll / directx / wine / dmusic / dmobject.h
1 /*
2 * Base IDirectMusicObject Implementation
3 * Keep in sync with the master in dlls/dmusic/dmobject.h
4 *
5 * Copyright (C) 2014 Michael Stefaniuc
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22 #pragma once
23
24 struct dmobject {
25 IDirectMusicObject IDirectMusicObject_iface;
26 IPersistStream IPersistStream_iface;
27 IUnknown *outer_unk;
28 DMUS_OBJECTDESC desc;
29 };
30
31 void dmobject_init(struct dmobject *dmobj, const GUID *class, IUnknown *outer_unk) DECLSPEC_HIDDEN;
32
33 /* Generic IDirectMusicObject methods */
34 HRESULT WINAPI dmobj_IDirectMusicObject_QueryInterface(IDirectMusicObject *iface, REFIID riid,
35 void **ret_iface) DECLSPEC_HIDDEN;
36 ULONG WINAPI dmobj_IDirectMusicObject_AddRef(IDirectMusicObject *iface) DECLSPEC_HIDDEN;
37 ULONG WINAPI dmobj_IDirectMusicObject_Release(IDirectMusicObject *iface) DECLSPEC_HIDDEN;
38 HRESULT WINAPI dmobj_IDirectMusicObject_GetDescriptor(IDirectMusicObject *iface,
39 DMUS_OBJECTDESC *desc) DECLSPEC_HIDDEN;
40 HRESULT WINAPI dmobj_IDirectMusicObject_SetDescriptor(IDirectMusicObject *iface,
41 DMUS_OBJECTDESC *desc) DECLSPEC_HIDDEN;
42
43 /* Generic IPersistStream methods */
44 HRESULT WINAPI dmobj_IPersistStream_QueryInterface(IPersistStream *iface, REFIID riid,
45 void **ret_iface) DECLSPEC_HIDDEN;
46 ULONG WINAPI dmobj_IPersistStream_AddRef(IPersistStream *iface) DECLSPEC_HIDDEN;
47 ULONG WINAPI dmobj_IPersistStream_Release(IPersistStream *iface) DECLSPEC_HIDDEN;
48 HRESULT WINAPI dmobj_IPersistStream_GetClassID(IPersistStream *iface, CLSID *class) DECLSPEC_HIDDEN;
49
50 /* IPersistStream methods not implemented in native */
51 HRESULT WINAPI unimpl_IPersistStream_GetClassID(IPersistStream *iface,
52 CLSID *class) DECLSPEC_HIDDEN;
53 HRESULT WINAPI unimpl_IPersistStream_IsDirty(IPersistStream *iface) DECLSPEC_HIDDEN;
54 HRESULT WINAPI unimpl_IPersistStream_Save(IPersistStream *iface, IStream *stream,
55 BOOL clear_dirty) DECLSPEC_HIDDEN;
56 HRESULT WINAPI unimpl_IPersistStream_GetSizeMax(IPersistStream *iface,
57 ULARGE_INTEGER *size) DECLSPEC_HIDDEN;