]> git.sesse.net Git - vlc/blob - include/modules_export.h
* Borrowed MPlayer's fast memcpy() routines. Best is autodetected, choose
[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)->pf_fast_memcpy = pf_fast_memcpy; \
49     (p_symbols)->msleep = msleep; \
50     (p_symbols)->mdate = mdate; \
51     (p_symbols)->network_ChannelCreate = network_ChannelCreate; \
52     (p_symbols)->network_ChannelJoin = network_ChannelJoin; \
53     (p_symbols)->input_SetStatus = input_SetStatus; \
54     (p_symbols)->input_Seek = input_Seek; \
55     (p_symbols)->input_DumpStream = input_DumpStream; \
56     (p_symbols)->input_OffsetToTime = input_OffsetToTime; \
57     (p_symbols)->input_ChangeES = input_ChangeES; \
58     (p_symbols)->input_ToggleES = input_ToggleES; \
59     (p_symbols)->input_ChangeArea = input_ChangeArea; \
60     (p_symbols)->input_FindES = input_FindES; \
61     (p_symbols)->input_AddES = input_AddES; \
62     (p_symbols)->input_DelES = input_DelES; \
63     (p_symbols)->input_SelectES = input_SelectES; \
64     (p_symbols)->input_UnselectES = input_UnselectES; \
65     (p_symbols)->input_AddProgram = input_AddProgram; \
66     (p_symbols)->input_DelProgram = input_DelProgram; \
67     (p_symbols)->input_AddArea = input_AddArea; \
68     (p_symbols)->input_DelArea = input_DelArea; \
69     (p_symbols)->InitBitstream = InitBitstream; \
70     (p_symbols)->input_InitStream = input_InitStream; \
71     (p_symbols)->input_EndStream = input_EndStream; \
72     (p_symbols)->input_ParsePES = input_ParsePES; \
73     (p_symbols)->input_GatherPES = input_GatherPES; \
74     (p_symbols)->input_DecodePES = input_DecodePES; \
75     (p_symbols)->input_ParsePS = input_ParsePS; \
76     (p_symbols)->input_DemuxPS = input_DemuxPS; \
77     (p_symbols)->input_DemuxTS = input_DemuxTS; \
78     (p_symbols)->input_DemuxPSI = input_DemuxPSI; \
79     (p_symbols)->input_ClockManageControl = input_ClockManageControl; \
80     (p_symbols)->input_NetlistInit = input_NetlistInit; \
81     (p_symbols)->input_NetlistGetiovec = input_NetlistGetiovec; \
82     (p_symbols)->input_NetlistMviovec = input_NetlistMviovec; \
83     (p_symbols)->input_NetlistNewPacket = input_NetlistNewPacket; \
84     (p_symbols)->input_NetlistNewPtr = input_NetlistNewPtr; \
85     (p_symbols)->input_NetlistNewPES = input_NetlistNewPES; \
86     (p_symbols)->input_NetlistDeletePacket = input_NetlistDeletePacket; \
87     (p_symbols)->input_NetlistDeletePES = input_NetlistDeletePES; \
88     (p_symbols)->input_NetlistEnd = input_NetlistEnd; \
89     (p_symbols)->aout_CreateFifo = aout_CreateFifo; \
90     (p_symbols)->aout_DestroyFifo = aout_DestroyFifo; \
91     (p_symbols)->vout_CreateThread = vout_CreateThread; \
92     (p_symbols)->vout_CreateSubPicture = vout_CreateSubPicture; \
93     (p_symbols)->vout_DestroySubPicture = vout_DestroySubPicture; \
94     (p_symbols)->vout_DisplaySubPicture = vout_DisplaySubPicture; \
95     (p_symbols)->vout_CreatePicture = vout_CreatePicture; \
96     (p_symbols)->vout_DisplayPicture = vout_DisplayPicture; \
97     (p_symbols)->vout_DestroyPicture = vout_DestroyPicture; \
98     (p_symbols)->vout_DatePicture = vout_DatePicture; \
99     (p_symbols)->vout_LinkPicture = vout_LinkPicture; \
100     (p_symbols)->vout_UnlinkPicture = vout_UnlinkPicture; \
101     (p_symbols)->UnalignedGetBits = UnalignedGetBits; \
102     (p_symbols)->UnalignedRemoveBits = UnalignedRemoveBits; \
103     (p_symbols)->UnalignedShowBits = UnalignedShowBits; \
104     (p_symbols)->DecodeLanguage = DecodeLanguage; \
105     (p_symbols)->module_Need = module_Need; \
106     (p_symbols)->module_Unneed = module_Unneed;
107     
108 #define STORE_TRACE_SYMBOLS( p_symbols ) \
109     (p_symbols)->intf_DbgMsg = _intf_DbgMsg; \
110     (p_symbols)->intf_DbgMsgImm = _intf_DbgMsgImm;
111
112 #ifdef PLUGIN
113 #   define p_main (p_symbols->p_main)
114 #   define p_aout_bank (p_symbols->p_aout_bank)
115 #   define p_vout_bank (p_symbols->p_vout_bank)
116
117 #   define main_GetIntVariable(a,b) p_symbols->main_GetIntVariable(a,b)
118 #   define main_PutIntVariable(a,b) p_symbols->main_PutIntVariable(a,b)
119 #   define main_GetPszVariable(a,b) p_symbols->main_GetPszVariable(a,b)
120 #   define main_PutPszVariable(a,b) p_symbols->main_PutPszVariable(a,b)
121
122 #   define TestProgram(a) p_symbols->TestProgram(a)
123 #   define TestMethod(a,b) p_symbols->TestMethod(a,b)
124 #   define TestCPU(a) p_symbols->TestCPU(a)
125
126 #   define intf_AssignKey(a,b,c,d) p_symbols->intf_AssignKey(a,b,c,d)
127 #   define intf_ProcessKey(a,b) p_symbols->intf_ProcessKey(a,b)
128
129 #   define intf_Msg p_symbols->intf_Msg
130 #   define intf_ErrMsg p_symbols->intf_ErrMsg
131 #   define intf_StatMsg p_symbols->intf_StatMsg
132 #   define intf_WarnMsg p_symbols->intf_WarnMsg
133 #   define intf_WarnMsgImm p_symbols->intf_WarnMsgImm
134 #ifdef TRACE
135 #   undef  intf_DbgMsg
136 #   undef  intf_DbgMsgImm
137 #   define intf_DbgMsg( format, args... ) \
138     p_symbols->intf_DbgMsg( __FILE__, __FUNCTION__, \
139                             __LINE__, format, ## args )
140 #   define intf_DbgMsgImm( format, args... ) \
141     p_symbols->intf_DbgMsgImm( __FILE__, __FUNCTION__, \
142                                __LINE__, format, ## args )
143 #endif
144
145 #   define intf_PlaylistAdd(a,b,c) p_symbols->intf_PlaylistAdd(a,b,c)
146 #   define intf_PlaylistDelete(a,b) p_symbols->intf_PlaylistDelete(a,b)
147 #   define intf_PlaylistNext(a) p_symbols->intf_PlaylistNext(a)
148 #   define intf_PlaylistPrev(a) p_symbols->intf_PlaylistPrev(a)
149 #   define intf_PlaylistDestroy(a) p_symbols->intf_PlaylistDestroy(a)
150 #   define intf_PlaylistJumpto(a,b) p_symbols->intf_PlaylistJumpto(a,b)
151 #   define intf_UrlDecode(a) p_symbols->intf_UrlDecode(a)
152
153 #   define pf_fast_memcpy p_symbols->pf_fast_memcpy
154
155 #   define msleep(a) p_symbols->msleep(a)
156 #   define mdate() p_symbols->mdate()
157
158 #   define network_ChannelCreate() p_symbols->network_ChannelCreate()
159 #   define network_ChannelJoin(a) p_symbols->network_ChannelJoin(a)
160
161 #   define input_SetStatus(a,b) p_symbols->input_SetStatus(a,b)
162 #   define input_Seek(a,b) p_symbols->input_Seek(a,b)
163 #   define input_DumpStream(a) p_symbols->input_DumpStream(a)
164 #   define input_OffsetToTime(a,b,c) p_symbols->input_OffsetToTime(a,b,c)
165 #   define input_ChangeES(a,b,c) p_symbols->input_ChangeES(a,b,c)
166 #   define input_ToggleES(a,b,c) p_symbols->input_ToggleES(a,b,c)
167 #   define input_ChangeArea(a,b) p_symbols->input_ChangeArea(a,b)
168 #   define input_FindES p_symbols->input_FindES
169 #   define input_AddES p_symbols->input_AddES
170 #   define input_DelES p_symbols->input_DelES
171 #   define input_SelectES p_symbols->input_SelectES
172 #   define input_UnselectES p_symbols->input_UnselectES
173 #   define input_AddProgram p_symbols->input_AddProgram
174 #   define input_DelProgram p_symbols->input_DelProgram
175 #   define input_AddArea p_symbols->input_AddArea
176 #   define input_DelArea p_symbols->input_DelArea
177
178 #   define InitBitstream p_symbols->InitBitstream
179 #   define input_InitStream p_symbols->input_InitStream
180 #   define input_EndStream p_symbols->input_EndStream
181
182 #   define input_ParsePES p_symbols->input_ParsePES
183 #   define input_GatherPES p_symbols->input_GatherPES
184 #   define input_DecodePES p_symbols->input_DecodePES
185 #   define input_ParsePS p_symbols->input_ParsePS
186 #   define input_DemuxPS p_symbols->input_DemuxPS
187 #   define input_DemuxTS p_symbols->input_DemuxTS
188 #   define input_DemuxPSI p_symbols->input_DemuxPSI
189
190 #   define input_ClockManageControl p_symbols->input_ClockManageControl
191
192 #   define input_NetlistInit p_symbols->input_NetlistInit
193 #   define input_NetlistGetiovec p_symbols->input_NetlistGetiovec
194 #   define input_NetlistMviovec p_symbols->input_NetlistMviovec
195 #   define input_NetlistNewPacket p_symbols->input_NetlistNewPacket
196 #   define input_NetlistNewPtr p_symbols->input_NetlistNewPtr
197 #   define input_NetlistNewPES p_symbols->input_NetlistNewPES
198 #   define input_NetlistDeletePacket p_symbols->input_NetlistDeletePacket
199 #   define input_NetlistDeletePES p_symbols->input_NetlistDeletePES
200 #   define input_NetlistEnd p_symbols->input_NetlistEnd
201
202 #   define aout_CreateFifo p_symbols->aout_CreateFifo
203 #   define aout_DestroyFifo p_symbols->aout_DestroyFifo
204
205 #   define vout_CreateThread p_symbols->vout_CreateThread
206 #   define vout_CreateSubPicture p_symbols->vout_CreateSubPicture
207 #   define vout_DestroySubPicture p_symbols->vout_DestroySubPicture
208 #   define vout_DisplaySubPicture p_symbols->vout_DisplaySubPicture
209 #   define vout_CreatePicture p_symbols->vout_CreatePicture
210 #   define vout_DisplayPicture p_symbols->vout_DisplayPicture
211 #   define vout_DestroyPicture p_symbols->vout_DestroyPicture
212 #   define vout_DatePicture p_symbols->vout_DatePicture
213 #   define vout_LinkPicture p_symbols->vout_LinkPicture
214 #   define vout_UnlinkPicture p_symbols->vout_UnlinkPicture
215     
216 #   define UnalignedShowBits p_symbols->UnalignedShowBits
217 #   define UnalignedRemoveBits p_symbols->UnalignedRemoveBits
218 #   define UnalignedGetBits p_symbols->UnalignedGetBits
219
220 #   define DecodeLanguage p_symbols->DecodeLanguage
221
222 #   define module_Need p_symbols->module_Need
223 #   define module_Unneed p_symbols->module_Unneed
224     
225 #endif
226