]> git.sesse.net Git - vlc/blob - include/modules_export.h
More checks for GTK headers.
[vlc] / include / modules_export.h
1 /*****************************************************************************
2  * modules_export.h: macros for exporting vlc symbols to plugins
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  *
6  * Authors: Samuel Hocevar <sam@zoy.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 #define STORE_SYMBOLS( p_symbols ) \
24     (p_symbols)->p_main = p_main; \
25     (p_symbols)->p_aout_bank = p_aout_bank; \
26     (p_symbols)->p_vout_bank = p_vout_bank; \
27     (p_symbols)->main_GetIntVariable = main_GetIntVariable; \
28     (p_symbols)->main_GetPszVariable = main_GetPszVariable; \
29     (p_symbols)->main_PutIntVariable = main_PutIntVariable; \
30     (p_symbols)->main_PutPszVariable = main_PutPszVariable; \
31     (p_symbols)->TestProgram = TestProgram; \
32     (p_symbols)->TestMethod = TestMethod; \
33     (p_symbols)->TestCPU = TestCPU; \
34     (p_symbols)->intf_AssignKey = intf_AssignKey; \
35     (p_symbols)->intf_ProcessKey = intf_ProcessKey; \
36     (p_symbols)->intf_Msg = intf_Msg; \
37     (p_symbols)->intf_ErrMsg = intf_ErrMsg; \
38     (p_symbols)->intf_StatMsg = intf_StatMsg;\
39     (p_symbols)->intf_WarnMsg = intf_WarnMsg; \
40     (p_symbols)->intf_WarnMsgImm = intf_WarnMsgImm; \
41     (p_symbols)->intf_PlaylistAdd = intf_PlaylistAdd; \
42     (p_symbols)->intf_PlaylistDelete = intf_PlaylistDelete; \
43     (p_symbols)->intf_PlaylistNext = intf_PlaylistNext; \
44     (p_symbols)->intf_PlaylistPrev = intf_PlaylistPrev; \
45     (p_symbols)->intf_PlaylistDestroy = intf_PlaylistDestroy; \
46     (p_symbols)->intf_PlaylistJumpto = intf_PlaylistJumpto; \
47     (p_symbols)->intf_UrlDecode = intf_UrlDecode; \
48     (p_symbols)->msleep = msleep; \
49     (p_symbols)->mdate = mdate; \
50     (p_symbols)->network_ChannelCreate = network_ChannelCreate; \
51     (p_symbols)->network_ChannelJoin = network_ChannelJoin; \
52     (p_symbols)->input_SetStatus = input_SetStatus; \
53     (p_symbols)->input_Seek = input_Seek; \
54     (p_symbols)->input_DumpStream = input_DumpStream; \
55     (p_symbols)->input_OffsetToTime = input_OffsetToTime; \
56     (p_symbols)->input_ChangeES = input_ChangeES; \
57     (p_symbols)->input_ToggleES = input_ToggleES; \
58     (p_symbols)->input_ChangeArea = input_ChangeArea; \
59     (p_symbols)->input_FindES = input_FindES; \
60     (p_symbols)->input_AddES = input_AddES; \
61     (p_symbols)->input_DelES = input_DelES; \
62     (p_symbols)->input_SelectES = input_SelectES; \
63     (p_symbols)->input_UnselectES = input_UnselectES; \
64     (p_symbols)->input_AddProgram = input_AddProgram; \
65     (p_symbols)->input_DelProgram = input_DelProgram; \
66     (p_symbols)->input_AddArea = input_AddArea; \
67     (p_symbols)->input_DelArea = input_DelArea; \
68     (p_symbols)->InitBitstream = InitBitstream; \
69     (p_symbols)->input_InitStream = input_InitStream; \
70     (p_symbols)->input_EndStream = input_EndStream; \
71     (p_symbols)->input_ParsePES = input_ParsePES; \
72     (p_symbols)->input_GatherPES = input_GatherPES; \
73     (p_symbols)->input_DecodePES = input_DecodePES; \
74     (p_symbols)->input_ParsePS = input_ParsePS; \
75     (p_symbols)->input_DemuxPS = input_DemuxPS; \
76     (p_symbols)->input_DemuxTS = input_DemuxTS; \
77     (p_symbols)->input_DemuxPSI = input_DemuxPSI; \
78     (p_symbols)->input_ClockManageControl = input_ClockManageControl; \
79     (p_symbols)->input_NetlistInit = input_NetlistInit; \
80     (p_symbols)->input_NetlistGetiovec = input_NetlistGetiovec; \
81     (p_symbols)->input_NetlistMviovec = input_NetlistMviovec; \
82     (p_symbols)->input_NetlistNewPacket = input_NetlistNewPacket; \
83     (p_symbols)->input_NetlistNewPtr = input_NetlistNewPtr; \
84     (p_symbols)->input_NetlistNewPES = input_NetlistNewPES; \
85     (p_symbols)->input_NetlistDeletePacket = input_NetlistDeletePacket; \
86     (p_symbols)->input_NetlistDeletePES = input_NetlistDeletePES; \
87     (p_symbols)->input_NetlistEnd = input_NetlistEnd; \
88     (p_symbols)->aout_CreateFifo = aout_CreateFifo; \
89     (p_symbols)->aout_DestroyFifo = aout_DestroyFifo; \
90     (p_symbols)->vout_CreateThread = vout_CreateThread; \
91     (p_symbols)->vout_CreateSubPicture = vout_CreateSubPicture; \
92     (p_symbols)->vout_DestroySubPicture = vout_DestroySubPicture; \
93     (p_symbols)->vout_DisplaySubPicture = vout_DisplaySubPicture; \
94     (p_symbols)->vout_CreatePicture = vout_CreatePicture; \
95     (p_symbols)->vout_DisplayPicture = vout_DisplayPicture; \
96     (p_symbols)->vout_DestroyPicture = vout_DestroyPicture; \
97     (p_symbols)->vout_DatePicture = vout_DatePicture; \
98     (p_symbols)->vout_LinkPicture = vout_LinkPicture; \
99     (p_symbols)->vout_UnlinkPicture = vout_UnlinkPicture; \
100     (p_symbols)->UnalignedGetBits = UnalignedGetBits; \
101     (p_symbols)->UnalignedRemoveBits = UnalignedRemoveBits; \
102     (p_symbols)->UnalignedShowBits = UnalignedShowBits; \
103     (p_symbols)->DecodeLanguage = DecodeLanguage; \
104     (p_symbols)->module_Need = module_Need; \
105     (p_symbols)->module_Unneed = module_Unneed;
106     
107 #define STORE_TRACE_SYMBOLS( p_symbols ) \
108     (p_symbols)->intf_DbgMsg = _intf_DbgMsg; \
109     (p_symbols)->intf_DbgMsgImm = _intf_DbgMsgImm;
110
111 #ifdef PLUGIN
112 #   define p_main (p_symbols->p_main)
113 #   define p_aout_bank (p_symbols->p_aout_bank)
114 #   define p_vout_bank (p_symbols->p_vout_bank)
115
116 #   define main_GetIntVariable(a,b) p_symbols->main_GetIntVariable(a,b)
117 #   define main_PutIntVariable(a,b) p_symbols->main_PutIntVariable(a,b)
118 #   define main_GetPszVariable(a,b) p_symbols->main_GetPszVariable(a,b)
119 #   define main_PutPszVariable(a,b) p_symbols->main_PutPszVariable(a,b)
120
121 #   define TestProgram(a) p_symbols->TestProgram(a)
122 #   define TestMethod(a,b) p_symbols->TestMethod(a,b)
123 #   define TestCPU(a) p_symbols->TestCPU(a)
124
125 #   define intf_AssignKey(a,b,c,d) p_symbols->intf_AssignKey(a,b,c,d)
126 #   define intf_ProcessKey(a,b) p_symbols->intf_ProcessKey(a,b)
127
128 #   define intf_Msg p_symbols->intf_Msg
129 #   define intf_ErrMsg p_symbols->intf_ErrMsg
130 #   define intf_StatMsg p_symbols->intf_StatMsg
131 #   define intf_WarnMsg p_symbols->intf_WarnMsg
132 #   define intf_WarnMsgImm p_symbols->intf_WarnMsgImm
133 #ifdef TRACE
134 #   undef  intf_DbgMsg
135 #   undef  intf_DbgMsgImm
136 #   define intf_DbgMsg( format, args... ) \
137     p_symbols->intf_DbgMsg( __FILE__, __FUNCTION__, \
138                             __LINE__, format, ## args )
139 #   define intf_DbgMsgImm( format, args... ) \
140     p_symbols->intf_DbgMsgImm( __FILE__, __FUNCTION__, \
141                                __LINE__, format, ## args )
142 #endif
143
144 #   define intf_PlaylistAdd(a,b,c) p_symbols->intf_PlaylistAdd(a,b,c)
145 #   define intf_PlaylistDelete(a,b) p_symbols->intf_PlaylistDelete(a,b)
146 #   define intf_PlaylistNext(a) p_symbols->intf_PlaylistNext(a)
147 #   define intf_PlaylistPrev(a) p_symbols->intf_PlaylistPrev(a)
148 #   define intf_PlaylistDestroy(a) p_symbols->intf_PlaylistDestroy(a)
149 #   define intf_PlaylistJumpto(a,b) p_symbols->intf_PlaylistJumpto(a,b)
150 #   define intf_UrlDecode(a) p_symbols->intf_UrlDecode(a)
151
152 #   define msleep(a) p_symbols->msleep(a)
153 #   define mdate() p_symbols->mdate()
154
155 #   define network_ChannelCreate() p_symbols->network_ChannelCreate()
156 #   define network_ChannelJoin(a) p_symbols->network_ChannelJoin(a)
157
158 #   define input_SetStatus(a,b) p_symbols->input_SetStatus(a,b)
159 #   define input_Seek(a,b) p_symbols->input_Seek(a,b)
160 #   define input_DumpStream(a) p_symbols->input_DumpStream(a)
161 #   define input_OffsetToTime(a,b,c) p_symbols->input_OffsetToTime(a,b,c)
162 #   define input_ChangeES(a,b,c) p_symbols->input_ChangeES(a,b,c)
163 #   define input_ToggleES(a,b,c) p_symbols->input_ToggleES(a,b,c)
164 #   define input_ChangeArea(a,b) p_symbols->input_ChangeArea(a,b)
165 #   define input_FindES p_symbols->input_FindES
166 #   define input_AddES p_symbols->input_AddES
167 #   define input_DelES p_symbols->input_DelES
168 #   define input_SelectES p_symbols->input_SelectES
169 #   define input_UnselectES p_symbols->input_UnselectES
170 #   define input_AddProgram p_symbols->input_AddProgram
171 #   define input_DelProgram p_symbols->input_DelProgram
172 #   define input_AddArea p_symbols->input_AddArea
173 #   define input_DelArea p_symbols->input_DelArea
174
175 #   define InitBitstream p_symbols->InitBitstream
176 #   define input_InitStream p_symbols->input_InitStream
177 #   define input_EndStream p_symbols->input_EndStream
178
179 #   define input_ParsePES p_symbols->input_ParsePES
180 #   define input_GatherPES p_symbols->input_GatherPES
181 #   define input_DecodePES p_symbols->input_DecodePES
182 #   define input_ParsePS p_symbols->input_ParsePS
183 #   define input_DemuxPS p_symbols->input_DemuxPS
184 #   define input_DemuxTS p_symbols->input_DemuxTS
185 #   define input_DemuxPSI p_symbols->input_DemuxPSI
186
187 #   define input_ClockManageControl p_symbols->input_ClockManageControl
188
189 #   define input_NetlistInit p_symbols->input_NetlistInit
190 #   define input_NetlistGetiovec p_symbols->input_NetlistGetiovec
191 #   define input_NetlistMviovec p_symbols->input_NetlistMviovec
192 #   define input_NetlistNewPacket p_symbols->input_NetlistNewPacket
193 #   define input_NetlistNewPtr p_symbols->input_NetlistNewPtr
194 #   define input_NetlistNewPES p_symbols->input_NetlistNewPES
195 #   define input_NetlistDeletePacket p_symbols->input_NetlistDeletePacket
196 #   define input_NetlistDeletePES p_symbols->input_NetlistDeletePES
197 #   define input_NetlistEnd p_symbols->input_NetlistEnd
198
199 #   define aout_CreateFifo p_symbols->aout_CreateFifo
200 #   define aout_DestroyFifo p_symbols->aout_DestroyFifo
201
202 #   define vout_CreateThread p_symbols->vout_CreateThread
203 #   define vout_CreateSubPicture p_symbols->vout_CreateSubPicture
204 #   define vout_DestroySubPicture p_symbols->vout_DestroySubPicture
205 #   define vout_DisplaySubPicture p_symbols->vout_DisplaySubPicture
206 #   define vout_CreatePicture p_symbols->vout_CreatePicture
207 #   define vout_DisplayPicture p_symbols->vout_DisplayPicture
208 #   define vout_DestroyPicture p_symbols->vout_DestroyPicture
209 #   define vout_DatePicture p_symbols->vout_DatePicture
210 #   define vout_LinkPicture p_symbols->vout_LinkPicture
211 #   define vout_UnlinkPicture p_symbols->vout_UnlinkPicture
212     
213 #   define UnalignedShowBits p_symbols->UnalignedShowBits
214 #   define UnalignedRemoveBits p_symbols->UnalignedRemoveBits
215 #   define UnalignedGetBits p_symbols->UnalignedGetBits
216
217 #   define DecodeLanguage p_symbols->DecodeLanguage
218
219 #   define module_Need p_symbols->module_Need
220 #   define module_Unneed p_symbols->module_Unneed
221     
222 #endif
223