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