]> git.sesse.net Git - vlc/blob - include/modules_export.h
* Forgot a file in my last commit.
[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_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)->DecoderError = DecoderError; \
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)->aout_CreateFifo = aout_CreateFifo; \
80     (p_symbols)->aout_DestroyFifo = aout_DestroyFifo; \
81     (p_symbols)->vout_CreateThread = vout_CreateThread; \
82     (p_symbols)->vout_DestroyThread = vout_DestroyThread; \
83     (p_symbols)->vout_CreateSubPicture = vout_CreateSubPicture; \
84     (p_symbols)->vout_DestroySubPicture = vout_DestroySubPicture; \
85     (p_symbols)->vout_DisplaySubPicture = vout_DisplaySubPicture; \
86     (p_symbols)->vout_CreatePicture = vout_CreatePicture; \
87     (p_symbols)->vout_AllocatePicture = vout_AllocatePicture; \
88     (p_symbols)->vout_DisplayPicture = vout_DisplayPicture; \
89     (p_symbols)->vout_DestroyPicture = vout_DestroyPicture; \
90     (p_symbols)->vout_DatePicture = vout_DatePicture; \
91     (p_symbols)->vout_LinkPicture = vout_LinkPicture; \
92     (p_symbols)->vout_UnlinkPicture = vout_UnlinkPicture; \
93     (p_symbols)->vout_PlacePicture = vout_PlacePicture; \
94     (p_symbols)->UnalignedGetBits = UnalignedGetBits; \
95     (p_symbols)->UnalignedRemoveBits = UnalignedRemoveBits; \
96     (p_symbols)->UnalignedShowBits = UnalignedShowBits; \
97     (p_symbols)->DecodeLanguage = DecodeLanguage; \
98     (p_symbols)->module_Need = module_Need; \
99     (p_symbols)->module_Unneed = module_Unneed;
100     
101 #define STORE_TRACE_SYMBOLS( p_symbols ) \
102     (p_symbols)->intf_DbgMsg = _intf_DbgMsg; \
103     (p_symbols)->intf_DbgMsgImm = _intf_DbgMsgImm;
104
105 #ifdef PLUGIN
106 #   define p_aout_bank (p_symbols->p_aout_bank)
107 #   define p_vout_bank (p_symbols->p_vout_bank)
108
109 #   define main_GetIntVariable(a,b) p_symbols->main_GetIntVariable(a,b)
110 #   define main_PutIntVariable(a,b) p_symbols->main_PutIntVariable(a,b)
111 #   define main_GetPszVariable(a,b) p_symbols->main_GetPszVariable(a,b)
112 #   define main_PutPszVariable(a,b) p_symbols->main_PutPszVariable(a,b)
113
114 #   define TestProgram(a) p_symbols->TestProgram(a)
115 #   define TestMethod(a,b) p_symbols->TestMethod(a,b)
116 #   define TestCPU(a) p_symbols->TestCPU(a)
117
118 #   define intf_Msg p_symbols->intf_Msg
119 #   define intf_ErrMsg p_symbols->intf_ErrMsg
120 #   define intf_StatMsg p_symbols->intf_StatMsg
121 #   define intf_WarnMsg p_symbols->intf_WarnMsg
122 #   define intf_WarnMsgImm p_symbols->intf_WarnMsgImm
123 #ifdef TRACE
124 #   undef  intf_DbgMsg
125 #   undef  intf_DbgMsgImm
126 #   define intf_DbgMsg( format, args... ) \
127     p_symbols->intf_DbgMsg( __FILE__, __FUNCTION__, \
128                             __LINE__, format, ## args )
129 #   define intf_DbgMsgImm( format, args... ) \
130     p_symbols->intf_DbgMsgImm( __FILE__, __FUNCTION__, \
131                                __LINE__, format, ## args )
132 #endif
133
134 #   define intf_PlaylistAdd(a,b,c) p_symbols->intf_PlaylistAdd(a,b,c)
135 #   define intf_PlaylistDelete(a,b) p_symbols->intf_PlaylistDelete(a,b)
136 #   define intf_PlaylistNext(a) p_symbols->intf_PlaylistNext(a)
137 #   define intf_PlaylistPrev(a) p_symbols->intf_PlaylistPrev(a)
138 #   define intf_PlaylistDestroy(a) p_symbols->intf_PlaylistDestroy(a)
139 #   define intf_PlaylistJumpto(a,b) p_symbols->intf_PlaylistJumpto(a,b)
140 #   define intf_UrlDecode(a) p_symbols->intf_UrlDecode(a)
141
142 #   define msleep(a) p_symbols->msleep(a)
143 #   define mdate() p_symbols->mdate()
144
145 #   define network_ChannelCreate p_symbols->network_ChannelCreate
146 #   define network_ChannelJoin p_symbols->network_ChannelJoin
147
148 #   define input_SetProgram p_symbols->input_SetProgram
149 #   define input_SetStatus p_symbols->input_SetStatus
150 #   define input_Seek p_symbols->input_Seek
151 #   define input_DumpStream(a) p_symbols->input_DumpStream(a)
152 #   define input_OffsetToTime(a,b,c) p_symbols->input_OffsetToTime(a,b,c)
153 #   define input_ChangeES(a,b,c) p_symbols->input_ChangeES(a,b,c)
154 #   define input_ToggleES(a,b,c) p_symbols->input_ToggleES(a,b,c)
155 #   define input_ChangeArea(a,b) p_symbols->input_ChangeArea(a,b)
156 #   define input_FindES p_symbols->input_FindES
157 #   define input_AddES p_symbols->input_AddES
158 #   define input_DelES p_symbols->input_DelES
159 #   define input_SelectES p_symbols->input_SelectES
160 #   define input_UnselectES p_symbols->input_UnselectES
161 #   define input_AddProgram p_symbols->input_AddProgram
162 #   define input_DelProgram p_symbols->input_DelProgram
163 #   define input_AddArea p_symbols->input_AddArea
164 #   define input_DelArea p_symbols->input_DelArea
165
166 #   define InitBitstream p_symbols->InitBitstream
167 #   define DecoderError p_symbols->DecoderError
168 #   define input_InitStream p_symbols->input_InitStream
169 #   define input_EndStream p_symbols->input_EndStream
170
171 #   define input_ParsePES p_symbols->input_ParsePES
172 #   define input_GatherPES p_symbols->input_GatherPES
173 #   define input_DecodePES p_symbols->input_DecodePES
174 #   define input_ParsePS p_symbols->input_ParsePS
175 #   define input_DemuxPS p_symbols->input_DemuxPS
176 #   define input_DemuxTS p_symbols->input_DemuxTS
177 #   define input_DemuxPSI p_symbols->input_DemuxPSI
178
179 #   define input_ClockManageControl p_symbols->input_ClockManageControl
180
181 #   define aout_CreateFifo p_symbols->aout_CreateFifo
182 #   define aout_DestroyFifo p_symbols->aout_DestroyFifo
183
184 #   define vout_CreateThread p_symbols->vout_CreateThread
185 #   define vout_DestroyThread p_symbols->vout_DestroyThread
186 #   define vout_CreateSubPicture p_symbols->vout_CreateSubPicture
187 #   define vout_DestroySubPicture p_symbols->vout_DestroySubPicture
188 #   define vout_DisplaySubPicture p_symbols->vout_DisplaySubPicture
189 #   define vout_CreatePicture p_symbols->vout_CreatePicture
190 #   define vout_AllocatePicture p_symbols->vout_AllocatePicture
191 #   define vout_DisplayPicture p_symbols->vout_DisplayPicture
192 #   define vout_DestroyPicture p_symbols->vout_DestroyPicture
193 #   define vout_DatePicture p_symbols->vout_DatePicture
194 #   define vout_LinkPicture p_symbols->vout_LinkPicture
195 #   define vout_UnlinkPicture p_symbols->vout_UnlinkPicture
196 #   define vout_PlacePicture p_symbols->vout_PlacePicture
197     
198 #   define DecodeLanguage p_symbols->DecodeLanguage
199
200 #   define module_Need p_symbols->module_Need
201 #   define module_Unneed p_symbols->module_Unneed
202     
203 #endif
204