1 /*****************************************************************************
2 * modules_export.h: macros for exporting vlc symbols to plugins
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
6 * Authors: Samuel Hocevar <sam@zoy.org>
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.
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.
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 *****************************************************************************/
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_Msg = intf_Msg; \
35 (p_symbols)->intf_ErrMsg = intf_ErrMsg; \
36 (p_symbols)->intf_StatMsg = intf_StatMsg;\
37 (p_symbols)->intf_WarnMsg = intf_WarnMsg; \
38 (p_symbols)->intf_WarnMsgImm = intf_WarnMsgImm; \
39 (p_symbols)->intf_PlaylistAdd = intf_PlaylistAdd; \
40 (p_symbols)->intf_PlaylistDelete = intf_PlaylistDelete; \
41 (p_symbols)->intf_PlaylistNext = intf_PlaylistNext; \
42 (p_symbols)->intf_PlaylistPrev = intf_PlaylistPrev; \
43 (p_symbols)->intf_PlaylistDestroy = intf_PlaylistDestroy; \
44 (p_symbols)->intf_PlaylistJumpto = intf_PlaylistJumpto; \
45 (p_symbols)->intf_UrlDecode = intf_UrlDecode; \
46 (p_symbols)->msleep = msleep; \
47 (p_symbols)->mdate = mdate; \
48 (p_symbols)->network_ChannelCreate = network_ChannelCreate; \
49 (p_symbols)->network_ChannelJoin = network_ChannelJoin; \
50 (p_symbols)->input_SetProgram = input_SetProgram; \
51 (p_symbols)->input_SetStatus = input_SetStatus; \
52 (p_symbols)->input_Seek = input_Seek; \
53 (p_symbols)->input_DumpStream = input_DumpStream; \
54 (p_symbols)->input_OffsetToTime = input_OffsetToTime; \
55 (p_symbols)->input_ChangeES = input_ChangeES; \
56 (p_symbols)->input_ToggleES = input_ToggleES; \
57 (p_symbols)->input_ChangeArea = input_ChangeArea; \
58 (p_symbols)->input_FindES = input_FindES; \
59 (p_symbols)->input_AddES = input_AddES; \
60 (p_symbols)->input_DelES = input_DelES; \
61 (p_symbols)->input_SelectES = input_SelectES; \
62 (p_symbols)->input_UnselectES = input_UnselectES; \
63 (p_symbols)->input_AddProgram = input_AddProgram; \
64 (p_symbols)->input_DelProgram = input_DelProgram; \
65 (p_symbols)->input_AddArea = input_AddArea; \
66 (p_symbols)->input_DelArea = input_DelArea; \
67 (p_symbols)->InitBitstream = InitBitstream; \
68 (p_symbols)->input_InitStream = input_InitStream; \
69 (p_symbols)->input_EndStream = input_EndStream; \
70 (p_symbols)->input_ParsePES = input_ParsePES; \
71 (p_symbols)->input_GatherPES = input_GatherPES; \
72 (p_symbols)->input_DecodePES = input_DecodePES; \
73 (p_symbols)->input_ParsePS = input_ParsePS; \
74 (p_symbols)->input_DemuxPS = input_DemuxPS; \
75 (p_symbols)->input_DemuxTS = input_DemuxTS; \
76 (p_symbols)->input_DemuxPSI = input_DemuxPSI; \
77 (p_symbols)->input_ClockManageControl = input_ClockManageControl; \
78 (p_symbols)->input_NetlistInit = input_NetlistInit; \
79 (p_symbols)->input_NetlistGetiovec = input_NetlistGetiovec; \
80 (p_symbols)->input_NetlistMviovec = input_NetlistMviovec; \
81 (p_symbols)->input_NetlistNewPacket = input_NetlistNewPacket; \
82 (p_symbols)->input_NetlistNewPtr = input_NetlistNewPtr; \
83 (p_symbols)->input_NetlistNewPES = input_NetlistNewPES; \
84 (p_symbols)->input_NetlistDeletePacket = input_NetlistDeletePacket; \
85 (p_symbols)->input_NetlistDeletePES = input_NetlistDeletePES; \
86 (p_symbols)->input_NetlistEnd = input_NetlistEnd; \
87 (p_symbols)->aout_CreateFifo = aout_CreateFifo; \
88 (p_symbols)->aout_DestroyFifo = aout_DestroyFifo; \
89 (p_symbols)->vout_CreateThread = vout_CreateThread; \
90 (p_symbols)->vout_CreateSubPicture = vout_CreateSubPicture; \
91 (p_symbols)->vout_DestroySubPicture = vout_DestroySubPicture; \
92 (p_symbols)->vout_DisplaySubPicture = vout_DisplaySubPicture; \
93 (p_symbols)->vout_CreatePicture = vout_CreatePicture; \
94 (p_symbols)->vout_DisplayPicture = vout_DisplayPicture; \
95 (p_symbols)->vout_DestroyPicture = vout_DestroyPicture; \
96 (p_symbols)->vout_DatePicture = vout_DatePicture; \
97 (p_symbols)->vout_LinkPicture = vout_LinkPicture; \
98 (p_symbols)->vout_UnlinkPicture = vout_UnlinkPicture; \
99 (p_symbols)->UnalignedGetBits = UnalignedGetBits; \
100 (p_symbols)->UnalignedRemoveBits = UnalignedRemoveBits; \
101 (p_symbols)->UnalignedShowBits = UnalignedShowBits; \
102 (p_symbols)->DecodeLanguage = DecodeLanguage; \
103 (p_symbols)->module_Need = module_Need; \
104 (p_symbols)->module_Unneed = module_Unneed;
106 #define STORE_TRACE_SYMBOLS( p_symbols ) \
107 (p_symbols)->intf_DbgMsg = _intf_DbgMsg; \
108 (p_symbols)->intf_DbgMsgImm = _intf_DbgMsgImm;
111 # define p_aout_bank (p_symbols->p_aout_bank)
112 # define p_vout_bank (p_symbols->p_vout_bank)
114 # define main_GetIntVariable(a,b) p_symbols->main_GetIntVariable(a,b)
115 # define main_PutIntVariable(a,b) p_symbols->main_PutIntVariable(a,b)
116 # define main_GetPszVariable(a,b) p_symbols->main_GetPszVariable(a,b)
117 # define main_PutPszVariable(a,b) p_symbols->main_PutPszVariable(a,b)
119 # define TestProgram(a) p_symbols->TestProgram(a)
120 # define TestMethod(a,b) p_symbols->TestMethod(a,b)
121 # define TestCPU(a) p_symbols->TestCPU(a)
123 # define intf_Msg p_symbols->intf_Msg
124 # define intf_ErrMsg p_symbols->intf_ErrMsg
125 # define intf_StatMsg p_symbols->intf_StatMsg
126 # define intf_WarnMsg p_symbols->intf_WarnMsg
127 # define intf_WarnMsgImm p_symbols->intf_WarnMsgImm
130 # undef intf_DbgMsgImm
131 # define intf_DbgMsg( format, args... ) \
132 p_symbols->intf_DbgMsg( __FILE__, __FUNCTION__, \
133 __LINE__, format, ## args )
134 # define intf_DbgMsgImm( format, args... ) \
135 p_symbols->intf_DbgMsgImm( __FILE__, __FUNCTION__, \
136 __LINE__, format, ## args )
139 # define intf_PlaylistAdd(a,b,c) p_symbols->intf_PlaylistAdd(a,b,c)
140 # define intf_PlaylistDelete(a,b) p_symbols->intf_PlaylistDelete(a,b)
141 # define intf_PlaylistNext(a) p_symbols->intf_PlaylistNext(a)
142 # define intf_PlaylistPrev(a) p_symbols->intf_PlaylistPrev(a)
143 # define intf_PlaylistDestroy(a) p_symbols->intf_PlaylistDestroy(a)
144 # define intf_PlaylistJumpto(a,b) p_symbols->intf_PlaylistJumpto(a,b)
145 # define intf_UrlDecode(a) p_symbols->intf_UrlDecode(a)
147 # define msleep(a) p_symbols->msleep(a)
148 # define mdate() p_symbols->mdate()
150 # define network_ChannelCreate p_symbols->network_ChannelCreate
151 # define network_ChannelJoin p_symbols->network_ChannelJoin
153 # define input_SetProgram p_symbols->input_SetProgram
154 # define input_SetStatus p_symbols->input_SetStatus
155 # define input_Seek p_symbols->input_Seek
156 # define input_DumpStream(a) p_symbols->input_DumpStream(a)
157 # define input_OffsetToTime(a,b,c) p_symbols->input_OffsetToTime(a,b,c)
158 # define input_ChangeES(a,b,c) p_symbols->input_ChangeES(a,b,c)
159 # define input_ToggleES(a,b,c) p_symbols->input_ToggleES(a,b,c)
160 # define input_ChangeArea(a,b) p_symbols->input_ChangeArea(a,b)
161 # define input_FindES p_symbols->input_FindES
162 # define input_AddES p_symbols->input_AddES
163 # define input_DelES p_symbols->input_DelES
164 # define input_SelectES p_symbols->input_SelectES
165 # define input_UnselectES p_symbols->input_UnselectES
166 # define input_AddProgram p_symbols->input_AddProgram
167 # define input_DelProgram p_symbols->input_DelProgram
168 # define input_AddArea p_symbols->input_AddArea
169 # define input_DelArea p_symbols->input_DelArea
171 # define InitBitstream p_symbols->InitBitstream
172 # define input_InitStream p_symbols->input_InitStream
173 # define input_EndStream p_symbols->input_EndStream
175 # define input_ParsePES p_symbols->input_ParsePES
176 # define input_GatherPES p_symbols->input_GatherPES
177 # define input_DecodePES p_symbols->input_DecodePES
178 # define input_ParsePS p_symbols->input_ParsePS
179 # define input_DemuxPS p_symbols->input_DemuxPS
180 # define input_DemuxTS p_symbols->input_DemuxTS
181 # define input_DemuxPSI p_symbols->input_DemuxPSI
183 # define input_ClockManageControl p_symbols->input_ClockManageControl
185 # define input_NetlistInit p_symbols->input_NetlistInit
186 # define input_NetlistGetiovec p_symbols->input_NetlistGetiovec
187 # define input_NetlistMviovec p_symbols->input_NetlistMviovec
188 # define input_NetlistNewPacket p_symbols->input_NetlistNewPacket
189 # define input_NetlistNewPtr p_symbols->input_NetlistNewPtr
190 # define input_NetlistNewPES p_symbols->input_NetlistNewPES
191 # define input_NetlistDeletePacket p_symbols->input_NetlistDeletePacket
192 # define input_NetlistDeletePES p_symbols->input_NetlistDeletePES
193 # define input_NetlistEnd p_symbols->input_NetlistEnd
195 # define aout_CreateFifo p_symbols->aout_CreateFifo
196 # define aout_DestroyFifo p_symbols->aout_DestroyFifo
198 # define vout_CreateThread p_symbols->vout_CreateThread
199 # define vout_CreateSubPicture p_symbols->vout_CreateSubPicture
200 # define vout_DestroySubPicture p_symbols->vout_DestroySubPicture
201 # define vout_DisplaySubPicture p_symbols->vout_DisplaySubPicture
202 # define vout_CreatePicture p_symbols->vout_CreatePicture
203 # define vout_DisplayPicture p_symbols->vout_DisplayPicture
204 # define vout_DestroyPicture p_symbols->vout_DestroyPicture
205 # define vout_DatePicture p_symbols->vout_DatePicture
206 # define vout_LinkPicture p_symbols->vout_LinkPicture
207 # define vout_UnlinkPicture p_symbols->vout_UnlinkPicture
209 # define DecodeLanguage p_symbols->DecodeLanguage
211 # define module_Need p_symbols->module_Need
212 # define module_Unneed p_symbols->module_Unneed