krnl386.exe16: Make a couple of functions static.
[wine.git] / dlls / dmime / dmime_private.h
blobb6e4264b97c07f1b9264d4578ce123485414daf6
1 /* DirectMusicInteractiveEngine 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_DMIME_PRIVATE_H
21 #define __WINE_DMIME_PRIVATE_H
23 #include <stdio.h>
24 #include <stdarg.h>
25 #include <string.h>
27 #define COBJMACROS
29 #include "windef.h"
30 #include "winbase.h"
31 #include "winnt.h"
32 #include "wingdi.h"
33 #include "winuser.h"
35 #include "wine/debug.h"
36 #include "wine/list.h"
37 #include "wine/unicode.h"
38 #include "winreg.h"
39 #include "objbase.h"
41 #include "dmusici.h"
42 #include "dmusicf.h"
43 #include "dmusics.h"
44 #include "dmusicc.h"
46 /*****************************************************************************
47 * Interfaces
49 typedef struct IDirectMusicGraphImpl IDirectMusicGraphImpl;
50 typedef struct IDirectMusicAudioPathImpl IDirectMusicAudioPathImpl;
52 /*****************************************************************************
53 * ClassFactory
55 extern HRESULT WINAPI create_dmperformance(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
56 extern HRESULT WINAPI create_dmsegment(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
57 extern HRESULT WINAPI create_dmsegmentstate(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
58 extern HRESULT WINAPI create_dmgraph(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
59 extern HRESULT WINAPI create_dmaudiopath(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
61 extern HRESULT WINAPI create_dmlyricstrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
62 extern HRESULT WINAPI create_dmmarkertrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
63 extern HRESULT WINAPI create_dmparamcontroltrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
64 extern HRESULT WINAPI create_dmsegtriggertrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
65 extern HRESULT WINAPI create_dmseqtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
66 extern HRESULT WINAPI create_dmsysextrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
67 extern HRESULT WINAPI create_dmtempotrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
68 extern HRESULT WINAPI create_dmtimesigtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
69 extern HRESULT WINAPI create_dmwavetrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
71 extern void set_audiopath_perf_pointer(IDirectMusicAudioPath*,IDirectMusicPerformance8*) DECLSPEC_HIDDEN;
72 extern void set_audiopath_dsound_buffer(IDirectMusicAudioPath*,IDirectSoundBuffer*) DECLSPEC_HIDDEN;
73 extern void set_audiopath_primary_dsound_buffer(IDirectMusicAudioPath*,IDirectSoundBuffer*) DECLSPEC_HIDDEN;
75 /*****************************************************************************
76 * Auxiliary definitions
78 typedef struct _DMUS_PRIVATE_SEGMENT_TRACK {
79 struct list entry; /* for listing elements */
80 DWORD dwGroupBits;
81 IDirectMusicTrack* pTrack;
82 } DMUS_PRIVATE_SEGMENT_TRACK, *LPDMUS_PRIVATE_SEGMENT_TRACK;
84 typedef struct _DMUS_PRIVATE_TEMPO_ITEM {
85 struct list entry; /* for listing elements */
86 DMUS_IO_TEMPO_ITEM item;
87 } DMUS_PRIVATE_TEMPO_ITEM, *LPDMUS_PRIVATE_TEMPO_ITEM;
89 typedef struct _DMUS_PRIVATE_SEGMENT_ITEM {
90 struct list entry; /* for listing elements */
91 DMUS_IO_SEGMENT_ITEM_HEADER header;
92 IDirectMusicObject* pObject;
93 WCHAR wszName[DMUS_MAX_NAME];
94 } DMUS_PRIVATE_SEGMENT_ITEM, *LPDMUS_PRIVATE_SEGMENT_ITEM;
96 typedef struct _DMUS_PRIVATE_GRAPH_TOOL {
97 struct list entry; /* for listing elements */
98 DWORD dwIndex;
99 IDirectMusicTool* pTool;
100 } DMUS_PRIVATE_GRAPH_TOOL, *LPDMUS_PRIVATE_GRAPH_TOOL;
102 typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE {
103 DWORD dummy;
104 } DMUS_PRIVATE_TEMPO_PLAY_STATE, *LPDMUS_PRIVATE_TEMPO_PLAY_STATE;
106 /* some sort of aux. performance channel: as far as i can understand, these are
107 used to represent a particular midi channel in particular group at particular
108 group; so all we need to do is to fill it with parent port, group and midi
109 channel ? */
110 typedef struct DMUSIC_PRIVATE_PCHANNEL_ {
111 DWORD channel; /* map to this channel... */
112 DWORD group; /* ... in this group ... */
113 IDirectMusicPort *port; /* ... at this port */
114 } DMUSIC_PRIVATE_PCHANNEL, *LPDMUSIC_PRIVATE_PCHANNEL;
116 /**********************************************************************
117 * Dll lifetime tracking declaration for dmime.dll
119 extern LONG DMIME_refCount DECLSPEC_HIDDEN;
120 static inline void DMIME_LockModule(void) { InterlockedIncrement( &DMIME_refCount ); }
121 static inline void DMIME_UnlockModule(void) { InterlockedDecrement( &DMIME_refCount ); }
123 /*****************************************************************************
124 * Misc.
127 #include "dmutils.h"
129 #endif /* __WINE_DMIME_PRIVATE_H */