/src/vlc/include/vlc_plugin.h
Line | Count | Source |
1 | | /***************************************************************************** |
2 | | * vlc_plugin.h : Macros used from within a module. |
3 | | ***************************************************************************** |
4 | | * Copyright (C) 2001-2006 VLC authors and VideoLAN |
5 | | * Copyright © 2007-2009 Rémi Denis-Courmont |
6 | | * |
7 | | * Authors: Samuel Hocevar <sam@zoy.org> |
8 | | * |
9 | | * This program is free software; you can redistribute it and/or modify it |
10 | | * under the terms of the GNU Lesser General Public License as published by |
11 | | * the Free Software Foundation; either version 2.1 of the License, or |
12 | | * (at your option) any later version. |
13 | | * |
14 | | * This program is distributed in the hope that it will be useful, |
15 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | * GNU Lesser General Public License for more details. |
18 | | * |
19 | | * You should have received a copy of the GNU Lesser General Public License |
20 | | * along with this program; if not, write to the Free Software Foundation, |
21 | | * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
22 | | *****************************************************************************/ |
23 | | |
24 | | #ifndef LIBVLC_MODULES_MACROS_H |
25 | | # define LIBVLC_MODULES_MACROS_H 1 |
26 | | |
27 | | #include <stdint.h> |
28 | | |
29 | | /** |
30 | | * \file |
31 | | * This file implements plugin (module) macros used to define a vlc module. |
32 | | */ |
33 | | |
34 | | enum vlc_module_properties |
35 | | { |
36 | | VLC_MODULE_CREATE, |
37 | | VLC_CONFIG_CREATE, |
38 | | |
39 | | /* DO NOT EVER REMOVE, INSERT OR REPLACE ANY ITEM! It would break the ABI! |
40 | | * Append new items at the end ONLY. */ |
41 | | VLC_MODULE_CPU_REQUIREMENT=0x100, |
42 | | VLC_MODULE_SHORTCUT, |
43 | | VLC_MODULE_CAPABILITY, |
44 | | VLC_MODULE_SCORE, |
45 | | VLC_MODULE_CB_OPEN, |
46 | | VLC_MODULE_CB_CLOSE, |
47 | | VLC_MODULE_NO_UNLOAD, |
48 | | VLC_MODULE_NAME, |
49 | | VLC_MODULE_SHORTNAME, |
50 | | VLC_MODULE_DESCRIPTION, |
51 | | VLC_MODULE_HELP, |
52 | | VLC_MODULE_TEXTDOMAIN, |
53 | | VLC_MODULE_HELP_HTML, |
54 | | /* Insert new VLC_MODULE_* here */ |
55 | | |
56 | | /* DO NOT EVER REMOVE, INSERT OR REPLACE ANY ITEM! It would break the ABI! |
57 | | * Append new items at the end ONLY. */ |
58 | | VLC_CONFIG_NAME=0x1000, |
59 | | /* command line name (args=const char *) */ |
60 | | |
61 | | VLC_CONFIG_VALUE, |
62 | | /* actual value (args=int64_t/double/const char *) */ |
63 | | |
64 | | VLC_CONFIG_RANGE, |
65 | | /* minimum value (args=int64_t/double/const char * twice) */ |
66 | | |
67 | | VLC_CONFIG_ADVANCED_RESERVED, |
68 | | /* reserved - do not use */ |
69 | | |
70 | | VLC_CONFIG_VOLATILE, |
71 | | /* don't write variable to storage (args=none) */ |
72 | | |
73 | | VLC_CONFIG_PERSISTENT_OBSOLETE, |
74 | | /* unused (ignored) */ |
75 | | |
76 | | VLC_CONFIG_PRIVATE, |
77 | | /* hide from user (args=none) */ |
78 | | |
79 | | VLC_CONFIG_REMOVED, |
80 | | /* tag as no longer supported (args=none) */ |
81 | | |
82 | | VLC_CONFIG_CAPABILITY, |
83 | | /* capability for a module or list thereof (args=const char*) */ |
84 | | |
85 | | VLC_CONFIG_SHORTCUT, |
86 | | /* one-character (short) command line option name (args=char) */ |
87 | | |
88 | | VLC_CONFIG_OLDNAME_OBSOLETE, |
89 | | /* unused (ignored) */ |
90 | | |
91 | | VLC_CONFIG_SAFE, |
92 | | /* tag as modifiable by untrusted input item "sources" (args=none) */ |
93 | | |
94 | | VLC_CONFIG_DESC, |
95 | | /* description (args=const char *, const char *, const char *) */ |
96 | | |
97 | | VLC_CONFIG_LIST_OBSOLETE, |
98 | | /* unused (ignored) */ |
99 | | |
100 | | VLC_CONFIG_ADD_ACTION_OBSOLETE, |
101 | | /* unused (ignored) */ |
102 | | |
103 | | VLC_CONFIG_LIST, |
104 | | /* list of suggested values |
105 | | * (args=size_t, const <type> *, const char *const *) */ |
106 | | |
107 | | VLC_CONFIG_LIST_CB_OBSOLETE, |
108 | | /* unused (ignored) */ |
109 | | |
110 | | /* Insert new VLC_CONFIG_* here */ |
111 | | }; |
112 | | |
113 | | /* Configuration hint types */ |
114 | 0 | #define CONFIG_HINT_CATEGORY 0x02 /* Start of new category */ |
115 | | |
116 | 0 | #define CONFIG_SUBCATEGORY 0x07 /* Set subcategory */ |
117 | 0 | #define CONFIG_SECTION 0x08 /* Start of new section */ |
118 | | |
119 | | /* Configuration item types */ |
120 | 44.4k | #define CONFIG_ITEM_FLOAT (1 << 5) /* Float option */ |
121 | 65.0k | #define CONFIG_ITEM_INTEGER (2 << 5) /* Integer option */ |
122 | | #define CONFIG_ITEM_RGB (CONFIG_ITEM_INTEGER | 0x01) /* RGB color option */ |
123 | 56.5k | #define CONFIG_ITEM_BOOL (3 << 5) /* Bool option */ |
124 | 17.5k | #define CONFIG_ITEM_STRING (4 << 5) /* String option */ |
125 | | #define CONFIG_ITEM_PASSWORD (CONFIG_ITEM_STRING | 0x01) /* Password option (*) */ |
126 | | #define CONFIG_ITEM_KEY (CONFIG_ITEM_STRING | 0x02) /* Hot key option */ |
127 | 0 | #define CONFIG_ITEM_MODULE (CONFIG_ITEM_STRING | 0x04) /* Module option */ |
128 | | #define CONFIG_ITEM_MODULE_CAT (CONFIG_ITEM_STRING | 0x05) /* Module option */ |
129 | | #define CONFIG_ITEM_MODULE_LIST (CONFIG_ITEM_STRING | 0x06) /* Module option */ |
130 | | #define CONFIG_ITEM_MODULE_LIST_CAT (CONFIG_ITEM_STRING | 0x07) /* Module option */ |
131 | | #define CONFIG_ITEM_LOADFILE (CONFIG_ITEM_STRING | 0x0C) /* Read file option */ |
132 | | #define CONFIG_ITEM_SAVEFILE (CONFIG_ITEM_STRING | 0x0D) /* Written file option */ |
133 | | #define CONFIG_ITEM_DIRECTORY (CONFIG_ITEM_STRING | 0x0E) /* Directory option */ |
134 | | #define CONFIG_ITEM_FONT (CONFIG_ITEM_STRING | 0x0F) /* Font option */ |
135 | | |
136 | | /* reduce specific type to type class */ |
137 | 27.4k | #define CONFIG_CLASS(x) ((x) & ~0x1F) |
138 | | |
139 | | /* is proper option, not a special hint type? */ |
140 | 154k | #define CONFIG_ITEM(x) (((x) & ~0xF) != 0) |
141 | | |
142 | | #define IsConfigStringType(type) \ |
143 | 17.5k | (((type) & CONFIG_ITEM_STRING) != 0) |
144 | | #define IsConfigIntegerType(type) \ |
145 | 94.1k | (((type) & CONFIG_ITEM_INTEGER) != 0) |
146 | | #define IsConfigFloatType(type) \ |
147 | 44.4k | ((type) == CONFIG_ITEM_FLOAT) |
148 | | |
149 | | /* Config category */ |
150 | | enum vlc_config_cat |
151 | | { |
152 | | /* Hidden category. |
153 | | Any options under this will be hidden in the GUI preferences, but will |
154 | | be listed in cmdline help output. */ |
155 | | CAT_HIDDEN = -1, |
156 | | |
157 | | CAT_UNKNOWN = 0, |
158 | | |
159 | | CAT_INTERFACE = 1, |
160 | | CAT_AUDIO = 2, |
161 | | CAT_VIDEO = 3, |
162 | | CAT_INPUT = 4, |
163 | | CAT_SOUT = 5, |
164 | | CAT_ADVANCED = 6, |
165 | | CAT_PLAYLIST = 7, |
166 | | }; |
167 | | |
168 | | /* Config subcategory */ |
169 | | enum vlc_config_subcat |
170 | | { |
171 | | /* Hidden subcategory. |
172 | | Any options under this will be hidden in the GUI preferences, but will |
173 | | be listed in cmdline help output. */ |
174 | | SUBCAT_HIDDEN = -1, |
175 | | |
176 | | SUBCAT_UNKNOWN = 0, |
177 | | |
178 | | SUBCAT_INTERFACE_GENERAL = 101, |
179 | | SUBCAT_INTERFACE_MAIN = 102, |
180 | | SUBCAT_INTERFACE_CONTROL = 103, |
181 | | SUBCAT_INTERFACE_HOTKEYS = 104, |
182 | | |
183 | | SUBCAT_AUDIO_GENERAL = 201, |
184 | | SUBCAT_AUDIO_AOUT = 202, |
185 | | SUBCAT_AUDIO_AFILTER = 203, |
186 | | SUBCAT_AUDIO_VISUAL = 204, |
187 | | SUBCAT_AUDIO_RESAMPLER = 206, |
188 | | |
189 | | SUBCAT_VIDEO_GENERAL = 301, |
190 | | SUBCAT_VIDEO_VOUT = 302, |
191 | | SUBCAT_VIDEO_VFILTER = 303, |
192 | | SUBCAT_VIDEO_SUBPIC = 305, |
193 | | SUBCAT_VIDEO_SPLITTER = 306, |
194 | | |
195 | | SUBCAT_INPUT_GENERAL = 401, |
196 | | SUBCAT_INPUT_ACCESS = 402, |
197 | | SUBCAT_INPUT_DEMUX = 403, |
198 | | SUBCAT_INPUT_VCODEC = 404, |
199 | | SUBCAT_INPUT_ACODEC = 405, |
200 | | SUBCAT_INPUT_SCODEC = 406, |
201 | | SUBCAT_INPUT_STREAM_FILTER = 407, |
202 | | |
203 | | SUBCAT_SOUT_GENERAL = 501, |
204 | | SUBCAT_SOUT_STREAM = 502, |
205 | | SUBCAT_SOUT_MUX = 503, |
206 | | SUBCAT_SOUT_ACO = 504, |
207 | | SUBCAT_SOUT_PACKETIZER = 505, |
208 | | SUBCAT_SOUT_VOD = 507, |
209 | | SUBCAT_SOUT_RENDERER = 508, |
210 | | |
211 | | SUBCAT_ADVANCED_MISC = 602, |
212 | | SUBCAT_ADVANCED_NETWORK = 603, |
213 | | |
214 | | SUBCAT_PLAYLIST_GENERAL = 701, |
215 | | SUBCAT_PLAYLIST_SD = 702, |
216 | | SUBCAT_PLAYLIST_EXPORT = 703, |
217 | | }; |
218 | | |
219 | | /** |
220 | | * Current plugin ABI version. |
221 | | * |
222 | | * \note This must be synchronized with the values from: |
223 | | * - src/rust/vlcrs-macros/module.rs |
224 | | */ |
225 | | #define VLC_API_VERSION_STRING "4.0.6" |
226 | | |
227 | | /***************************************************************************** |
228 | | * Add a few defines. You do not want to read this section. Really. |
229 | | *****************************************************************************/ |
230 | | |
231 | | /* Explanation: |
232 | | * |
233 | | * if linking a module statically, we will need: |
234 | | * #define MODULE_FUNC( zog ) module_foo_zog |
235 | | * |
236 | | * this can't easily be done with the C preprocessor, thus a few ugly hacks. |
237 | | */ |
238 | | |
239 | | /* I need to do _this_ to change « foo bar » to « module_foo_bar » ! */ |
240 | 54 | #define CONCATENATE( y, z ) CRUDE_HACK( y, z ) |
241 | 54 | #define CRUDE_HACK( y, z ) y##__##z |
242 | | #define STRINGIFY_NAME_( z ) #z |
243 | | #define STRINGIFY_NAME( z ) STRINGIFY_NAME_( z ) |
244 | | |
245 | | #if defined(__cplusplus) |
246 | | #define EXTERN_SYMBOL extern "C" |
247 | | #else |
248 | | #define EXTERN_SYMBOL |
249 | | #endif |
250 | | |
251 | | #if !defined(MODULE_STRING) && defined(MODULE_NAME) |
252 | | # define MODULE_STRING STRINGIFY_NAME(MODULE_NAME) |
253 | | #endif |
254 | | |
255 | | // defines a statically linked module entry point |
256 | | #define VLC_ENTRY_FUNC(name) int (name)(vlc_set_cb, void *) |
257 | | // name of the module entry point table |
258 | 54 | #define VLC_MODULE_ENTRY(name) CONCATENATE(vlc_entry, name) |
259 | | // declare a vlc_plugin_cb |
260 | | #define VLC_DECL_MODULE_ENTRY(name) VLC_ENTRY_FUNC(VLC_MODULE_ENTRY(name)) |
261 | | |
262 | | /* If the module is built-in, then we need to define foo_InitModule instead |
263 | | * of InitModule. Same for Activate- and DeactivateModule. */ |
264 | | #ifdef VLC_DYNAMIC_PLUGIN |
265 | | # define VLC_SYMBOL(symbol) symbol |
266 | | # define VLC_MODULE_NAME_HIDDEN_SYMBOL \ |
267 | | EXTERN_SYMBOL const char vlc_module_name[] = MODULE_STRING; |
268 | | #else |
269 | | # define VLC_SYMBOL(symbol) CONCATENATE(symbol, MODULE_NAME) |
270 | | # define VLC_MODULE_NAME_HIDDEN_SYMBOL |
271 | | #endif |
272 | | |
273 | | #define CDECL_SYMBOL |
274 | | #if defined (VLC_DYNAMIC_PLUGIN) |
275 | | # if defined (_WIN32) |
276 | | # define DLL_SYMBOL __declspec(dllexport) |
277 | | # undef CDECL_SYMBOL |
278 | | # define CDECL_SYMBOL __cdecl |
279 | | # elif defined (__GNUC__) |
280 | | # define DLL_SYMBOL __attribute__((visibility("default"))) |
281 | | # else |
282 | | # define DLL_SYMBOL |
283 | | # endif |
284 | | #else |
285 | | # define DLL_SYMBOL |
286 | | #endif |
287 | | |
288 | | struct vlc_param; |
289 | | |
290 | | EXTERN_SYMBOL typedef int (*vlc_set_cb) (void *, void *, int, ...); |
291 | | |
292 | | /** Plugin entry point prototype */ |
293 | | typedef int (*vlc_plugin_cb) (vlc_set_cb, void *); |
294 | | |
295 | 39.3k | #define vlc_plugin_set(...) vlc_set (opaque, NULL, __VA_ARGS__) |
296 | 35.8k | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) mkv.cpp:vlc_entry__demux_mkv_mkv::$_0::operator()(char const*) const Line | Count | Source | 296 | 54 | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_1::operator()(char const*) const Line | Count | Source | 296 | 54 | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_2::operator()(char const*) const Line | Count | Source | 296 | 54 | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_3::operator()(int) const Line | Count | Source | 296 | 54 | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_23::operator()(char const*) const Line | Count | Source | 296 | 54 | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_24::operator()(int) const Line | Count | Source | 296 | 54 | #define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__) |
|
297 | 95.0k | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) mkv.cpp:vlc_entry__demux_mkv_mkv::$_4::operator()(long) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_5::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_6::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_7::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_8::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_9::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_10::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_11::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_12::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_13::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_14::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_15::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_16::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_17::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_18::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_19::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_20::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_21::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
mkv.cpp:vlc_entry__demux_mkv_mkv::$_22::operator()(char const*) const Line | Count | Source | 297 | 54 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__) |
|
298 | | |
299 | | EXTERN_SYMBOL DLL_SYMBOL |
300 | | int CDECL_SYMBOL VLC_SYMBOL(vlc_entry)(vlc_set_cb, void *); |
301 | | EXTERN_SYMBOL DLL_SYMBOL |
302 | | int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_int_enum)(const char *name, |
303 | | int64_t **values, char ***descs); |
304 | | EXTERN_SYMBOL DLL_SYMBOL |
305 | | int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_str_enum)(const char *name, |
306 | | char ***values, char ***descs); |
307 | | |
308 | | /* Workaround for lack of C++ compound literals support in some compilers */ |
309 | | #ifdef __cplusplus |
310 | | # define VLC_CHECKED_TYPE(type, value) [](type v){ return v; }(value) |
311 | | #else |
312 | | # define VLC_CHECKED_TYPE(type, value) (type){ value } |
313 | | #endif |
314 | | |
315 | | /* |
316 | | * InitModule: this function is called once and only once, when the module |
317 | | * is looked at for the first time. We get the useful data from it, for |
318 | | * instance the module name, its shortcuts, its capabilities... we also create |
319 | | * a copy of its config because the module can be unloaded at any time. |
320 | | */ |
321 | | #define vlc_module_begin() \ |
322 | | EXTERN_SYMBOL DLL_SYMBOL \ |
323 | 3.40k | int CDECL_SYMBOL VLC_SYMBOL(vlc_entry)(vlc_set_cb vlc_set, void *opaque) \ |
324 | 3.40k | { \ |
325 | 3.40k | module_t *module; \ |
326 | 3.40k | struct vlc_param *config = NULL; \ |
327 | 3.40k | if (vlc_plugin_set (VLC_MODULE_CREATE, &module)) \ |
328 | 3.40k | goto error; \ |
329 | 3.40k | if (vlc_module_set (VLC_MODULE_NAME, (MODULE_STRING))) \ |
330 | 3.40k | goto error; |
331 | | |
332 | | #define vlc_module_end() \ |
333 | 3.40k | (void) config; \ |
334 | 3.40k | return 0; \ |
335 | 0 | error: \ |
336 | 0 | return -1; \ |
337 | 3.40k | } \ |
338 | | VLC_MODULE_NAME_HIDDEN_SYMBOL \ |
339 | | VLC_METADATA_EXPORTS |
340 | | |
341 | | #define add_submodule( ) \ |
342 | 1.45k | if (vlc_plugin_set (VLC_MODULE_CREATE, &module)) \ |
343 | 1.45k | goto error; |
344 | | |
345 | 3.29k | #define add_shortcut( ... ) \ |
346 | 3.29k | { \ |
347 | 3.29k | const char *shortcuts[] = { __VA_ARGS__ }; \ |
348 | 3.29k | if (vlc_module_set (VLC_MODULE_SHORTCUT, \ |
349 | 3.29k | sizeof(shortcuts)/sizeof(shortcuts[0]), shortcuts)) \ |
350 | 3.29k | goto error; \ |
351 | 3.29k | } |
352 | | |
353 | | #define set_shortname( shortname ) \ |
354 | 1.89k | if (vlc_module_set (VLC_MODULE_SHORTNAME, VLC_CHECKED_TYPE(const char *, shortname))) \ |
355 | 1.89k | goto error; |
356 | | |
357 | | #define set_description( desc ) \ |
358 | 4.53k | if (vlc_module_set (VLC_MODULE_DESCRIPTION, VLC_CHECKED_TYPE(const char *, desc))) \ |
359 | 4.53k | goto error; |
360 | | |
361 | | #define set_help( help ) \ |
362 | | if (vlc_module_set (VLC_MODULE_HELP, VLC_CHECKED_TYPE(const char *, help))) \ |
363 | | goto error; |
364 | | |
365 | | #define set_help_html( help_html ) \ |
366 | | if (vlc_module_set (VLC_MODULE_HELP_HTML, VLC_CHECKED_TYPE(const char *, help_html))) \ |
367 | | goto error; |
368 | | |
369 | | #define set_capability( cap, score ) \ |
370 | 4.80k | if (vlc_module_set (VLC_MODULE_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap)) \ |
371 | 4.80k | || vlc_module_set (VLC_MODULE_SCORE, VLC_CHECKED_TYPE(int, score))) \ |
372 | 4.80k | goto error; |
373 | | |
374 | | #define set_callback(activate) \ |
375 | 4.80k | if (vlc_module_set(VLC_MODULE_CB_OPEN, #activate, (void *)(activate))) \ |
376 | 4.80k | goto error; |
377 | | |
378 | | #define set_callbacks( activate, deactivate ) \ |
379 | 3.51k | set_callback(activate) \ |
380 | 3.51k | if (vlc_module_set(VLC_MODULE_CB_CLOSE, #deactivate, \ |
381 | 3.51k | (void (*)(vlc_object_t *))( deactivate ))) \ |
382 | 3.51k | goto error; |
383 | | |
384 | | #define cannot_unload_broken_library( ) \ |
385 | | if (vlc_module_set (VLC_MODULE_NO_UNLOAD)) \ |
386 | | goto error; |
387 | | |
388 | | #define set_text_domain( dom ) \ |
389 | | if (vlc_plugin_set (VLC_MODULE_TEXTDOMAIN, VLC_CHECKED_TYPE(const char *, dom))) \ |
390 | | goto error; |
391 | | |
392 | | /***************************************************************************** |
393 | | * Macros used to build the configuration structure. |
394 | | * |
395 | | * Note that internally we support only 3 types of config data: int, float |
396 | | * and string. |
397 | | * The other types declared here just map to one of these 3 basic types but |
398 | | * have the advantage of also providing very good hints to a configuration |
399 | | * interface so as to make it more user friendly. |
400 | | * The configuration structure also includes category hints. These hints can |
401 | | * provide a configuration interface with some very useful data and again |
402 | | * allow for a more user friendly interface. |
403 | | *****************************************************************************/ |
404 | | |
405 | | #define add_type_inner( type ) \ |
406 | 34.4k | vlc_plugin_set (VLC_CONFIG_CREATE, (type), &config); |
407 | | |
408 | | #define add_typedesc_inner( type, text, longtext ) \ |
409 | 28.1k | add_type_inner( type ) \ |
410 | 28.1k | vlc_config_set (VLC_CONFIG_DESC, VLC_CHECKED_TYPE(const char *, text), \ |
411 | 918 | VLC_CHECKED_TYPE(const char *, longtext)); |
412 | | |
413 | | #define add_typename_inner(type, name, text, longtext) \ |
414 | 26.1k | add_typedesc_inner(type, text, longtext) \ |
415 | 26.1k | vlc_config_set (VLC_CONFIG_NAME, VLC_CHECKED_TYPE(const char *, name)); |
416 | | |
417 | | #define add_string_inner(type, name, text, longtext, v) \ |
418 | 17.1k | add_typename_inner(type, name, text, longtext) \ |
419 | 17.1k | vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(const char *, v)); |
420 | | |
421 | | #define add_int_inner(type, name, text, longtext, v) \ |
422 | 3.88k | add_typename_inner(type, name, text, longtext) \ |
423 | 3.88k | vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(int64_t, v)); |
424 | | |
425 | | |
426 | | #define set_subcategory( id ) \ |
427 | 5.07k | add_type_inner( CONFIG_SUBCATEGORY ) \ |
428 | 5.07k | vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(int64_t, id)); |
429 | | |
430 | | #define set_section( text, longtext ) \ |
431 | 1.35k | add_typedesc_inner( CONFIG_SECTION, text, longtext ) |
432 | | |
433 | | #define add_string( name, value, text, longtext ) \ |
434 | 3.51k | add_string_inner(CONFIG_ITEM_STRING, name, text, longtext, value) |
435 | | |
436 | | #define add_password(name, value, text, longtext) \ |
437 | | add_string_inner(CONFIG_ITEM_PASSWORD, name, text, longtext, value) |
438 | | |
439 | | #define add_loadfile(name, value, text, longtext) \ |
440 | 324 | add_string_inner(CONFIG_ITEM_LOADFILE, name, text, longtext, value) |
441 | | |
442 | | #define add_savefile(name, value, text, longtext) \ |
443 | | add_string_inner(CONFIG_ITEM_SAVEFILE, name, text, longtext, value) |
444 | | |
445 | | #define add_directory(name, value, text, longtext) \ |
446 | 162 | add_string_inner(CONFIG_ITEM_DIRECTORY, name, text, longtext, value) |
447 | | |
448 | | #define add_font(name, value, text, longtext) \ |
449 | | add_string_inner(CONFIG_ITEM_FONT, name, text, longtext, value) |
450 | | |
451 | | #define add_module(name, cap, value, text, longtext) \ |
452 | 486 | add_string_inner(CONFIG_ITEM_MODULE, name, text, longtext, value) \ |
453 | 486 | vlc_config_set (VLC_CONFIG_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap)); |
454 | | |
455 | | #define add_module_list(name, cap, value, text, longtext) \ |
456 | 270 | add_string_inner(CONFIG_ITEM_MODULE_LIST, name, text, longtext, value) \ |
457 | 270 | vlc_config_set (VLC_CONFIG_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap)); |
458 | | |
459 | | #define add_integer( name, value, text, longtext ) \ |
460 | 3.88k | add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value) |
461 | | |
462 | | #define add_rgb(name, value, text, longtext) \ |
463 | | add_int_inner(CONFIG_ITEM_RGB, name, text, longtext, value) \ |
464 | | change_integer_range( 0, 0xFFFFFF ) |
465 | | |
466 | | #define add_key(name, value, text, longtext) \ |
467 | 6.10k | add_string_inner(CONFIG_ITEM_KEY, "global-" name, text, longtext, \ |
468 | 6.10k | KEY_UNSET) \ |
469 | 6.10k | add_string_inner(CONFIG_ITEM_KEY, name, text, longtext, value) |
470 | | |
471 | | #define add_integer_with_range( name, value, min, max, text, longtext ) \ |
472 | 162 | add_integer( name, value, text, longtext ) \ |
473 | 162 | change_integer_range( min, max ) |
474 | | |
475 | | #define add_float( name, v, text, longtext ) \ |
476 | 810 | add_typename_inner(CONFIG_ITEM_FLOAT, name, text, longtext) \ |
477 | 810 | vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(double, v)); |
478 | | |
479 | | #define add_float_with_range( name, value, min, max, text, longtext ) \ |
480 | | add_float( name, value, text, longtext ) \ |
481 | | change_float_range( min, max ) |
482 | | |
483 | | #define add_bool( name, v, text, longtext ) \ |
484 | 4.37k | add_typename_inner(CONFIG_ITEM_BOOL, name, text, longtext) \ |
485 | 4.37k | if (v) vlc_config_set (VLC_CONFIG_VALUE, (int64_t)true); |
486 | | |
487 | | /* For removed option */ |
488 | | #define add_obsolete_inner( name, type ) \ |
489 | 1.24k | add_type_inner( type ) \ |
490 | 1.24k | vlc_config_set (VLC_CONFIG_NAME, VLC_CHECKED_TYPE(const char *, name)); \ |
491 | 1.24k | vlc_config_set (VLC_CONFIG_REMOVED); |
492 | | |
493 | | #define add_obsolete_bool( name ) \ |
494 | 486 | add_obsolete_inner( name, CONFIG_ITEM_BOOL ) |
495 | | |
496 | | #define add_obsolete_integer( name ) \ |
497 | 108 | add_obsolete_inner( name, CONFIG_ITEM_INTEGER ) |
498 | | |
499 | | #define add_obsolete_float( name ) \ |
500 | 54 | add_obsolete_inner( name, CONFIG_ITEM_FLOAT ) |
501 | | |
502 | | #define add_obsolete_string( name ) \ |
503 | 594 | add_obsolete_inner( name, CONFIG_ITEM_STRING ) |
504 | | |
505 | | /* Modifier macros for the config options (used for fine tuning) */ |
506 | | |
507 | | #define change_short( ch ) \ |
508 | 810 | vlc_config_set (VLC_CONFIG_SHORTCUT, VLC_CHECKED_TYPE(char, ch)); |
509 | | |
510 | | #define change_string_list( list, list_text ) \ |
511 | 432 | vlc_config_set (VLC_CONFIG_LIST, \ |
512 | 432 | ARRAY_SIZE(list), \ |
513 | 432 | VLC_CHECKED_TYPE(const char *const *, list), \ |
514 | 432 | VLC_CHECKED_TYPE(const char *const *, list_text)); |
515 | | |
516 | | #define change_integer_list( list, list_text ) \ |
517 | 1.02k | vlc_config_set (VLC_CONFIG_LIST, \ |
518 | 1.02k | ARRAY_SIZE(list), \ |
519 | 1.02k | VLC_CHECKED_TYPE(const int *, list), \ |
520 | 1.02k | VLC_CHECKED_TYPE(const char *const *, list_text)); |
521 | | |
522 | | #define change_integer_range( minv, maxv ) \ |
523 | 864 | vlc_config_set (VLC_CONFIG_RANGE, VLC_CHECKED_TYPE(int64_t, minv), \ |
524 | 864 | VLC_CHECKED_TYPE(int64_t, maxv)); |
525 | | |
526 | | #define change_float_range( minv, maxv ) \ |
527 | 108 | vlc_config_set (VLC_CONFIG_RANGE, VLC_CHECKED_TYPE(double, minv), \ |
528 | 108 | VLC_CHECKED_TYPE(double, maxv)); |
529 | | |
530 | | /* For options that are saved but hidden from the preferences panel */ |
531 | | #define change_private() \ |
532 | 864 | vlc_config_set (VLC_CONFIG_PRIVATE); |
533 | | |
534 | | /* For options that cannot be saved in the configuration */ |
535 | | #define change_volatile() \ |
536 | 810 | change_private() \ |
537 | 810 | vlc_config_set (VLC_CONFIG_VOLATILE); |
538 | | |
539 | | #define change_safe() \ |
540 | 3.51k | vlc_config_set (VLC_CONFIG_SAFE); |
541 | | |
542 | | /* Configuration item choice enumerators */ |
543 | | #define VLC_CONFIG_INTEGER_ENUM(cb) \ |
544 | | EXTERN_SYMBOL DLL_SYMBOL \ |
545 | | int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_int_enum)(const char *name, \ |
546 | | int64_t **values, char ***descs) \ |
547 | | { \ |
548 | | return (cb)(name, values, descs); \ |
549 | | } |
550 | | |
551 | | #define VLC_CONFIG_STRING_ENUM(cb) \ |
552 | | EXTERN_SYMBOL DLL_SYMBOL \ |
553 | | int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_str_enum)(const char *name, \ |
554 | | char ***values, char ***descs) \ |
555 | | { \ |
556 | | return (cb)(name, values, descs); \ |
557 | | } |
558 | | |
559 | | /* Meta data plugin exports */ |
560 | | #define VLC_META_EXPORT( name, value ) \ |
561 | | EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \ |
562 | | VLC_SYMBOL(vlc_entry_ ## name)(void); \ |
563 | | EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \ |
564 | | VLC_SYMBOL(vlc_entry_ ## name)(void) \ |
565 | 0 | { \ |
566 | 0 | return value; \ |
567 | 0 | } Unexecuted instantiation: vlc_entry_api_version__logger_console Unexecuted instantiation: vlc_entry_copyright__logger_console Unexecuted instantiation: vlc_entry_license__logger_console Unexecuted instantiation: vlc_entry_api_version__demux_aiff Unexecuted instantiation: vlc_entry_copyright__demux_aiff Unexecuted instantiation: vlc_entry_license__demux_aiff Unexecuted instantiation: vlc_entry_api_version__demux_asf_asf Unexecuted instantiation: vlc_entry_copyright__demux_asf_asf Unexecuted instantiation: vlc_entry_license__demux_asf_asf Unexecuted instantiation: vlc_entry_api_version__demux_au Unexecuted instantiation: vlc_entry_copyright__demux_au Unexecuted instantiation: vlc_entry_license__demux_au Unexecuted instantiation: vlc_entry_api_version__demux_avi_avi Unexecuted instantiation: vlc_entry_copyright__demux_avi_avi Unexecuted instantiation: vlc_entry_license__demux_avi_avi Unexecuted instantiation: vlc_entry_api_version__demux_caf Unexecuted instantiation: vlc_entry_copyright__demux_caf Unexecuted instantiation: vlc_entry_license__demux_caf Unexecuted instantiation: vlc_entry_api_version__demux_demux_cdg Unexecuted instantiation: vlc_entry_copyright__demux_demux_cdg Unexecuted instantiation: vlc_entry_license__demux_demux_cdg Unexecuted instantiation: vlc_entry_api_version__demux_mpeg_es Unexecuted instantiation: vlc_entry_copyright__demux_mpeg_es Unexecuted instantiation: vlc_entry_license__demux_mpeg_es Unexecuted instantiation: vlc_entry_api_version__demux_flacsys Unexecuted instantiation: vlc_entry_copyright__demux_flacsys Unexecuted instantiation: vlc_entry_license__demux_flacsys Unexecuted instantiation: vlc_entry_api_version__demux_mpeg_h26x Unexecuted instantiation: vlc_entry_copyright__demux_mpeg_h26x Unexecuted instantiation: vlc_entry_license__demux_mpeg_h26x Unexecuted instantiation: vlc_entry_api_version__demux_mjpeg Unexecuted instantiation: vlc_entry_copyright__demux_mjpeg Unexecuted instantiation: vlc_entry_license__demux_mjpeg Unexecuted instantiation: vlc_entry_api_version__demux_mp4_mp4 Unexecuted instantiation: vlc_entry_copyright__demux_mp4_mp4 Unexecuted instantiation: vlc_entry_license__demux_mp4_mp4 Unexecuted instantiation: vlc_entry_api_version__demux_nsv Unexecuted instantiation: vlc_entry_copyright__demux_nsv Unexecuted instantiation: vlc_entry_license__demux_nsv Unexecuted instantiation: vlc_entry_api_version__demux_mpeg_ps Unexecuted instantiation: vlc_entry_copyright__demux_mpeg_ps Unexecuted instantiation: vlc_entry_license__demux_mpeg_ps Unexecuted instantiation: vlc_entry_api_version__demux_pva Unexecuted instantiation: vlc_entry_copyright__demux_pva Unexecuted instantiation: vlc_entry_license__demux_pva Unexecuted instantiation: vlc_entry_api_version__services_discovery_sap Unexecuted instantiation: vlc_entry_copyright__services_discovery_sap Unexecuted instantiation: vlc_entry_license__services_discovery_sap Unexecuted instantiation: vlc_entry_api_version__demux_smf Unexecuted instantiation: vlc_entry_copyright__demux_smf Unexecuted instantiation: vlc_entry_license__demux_smf Unexecuted instantiation: vlc_entry_api_version__demux_subtitle Unexecuted instantiation: vlc_entry_copyright__demux_subtitle Unexecuted instantiation: vlc_entry_license__demux_subtitle Unexecuted instantiation: vlc_entry_api_version__demux_tta Unexecuted instantiation: vlc_entry_copyright__demux_tta Unexecuted instantiation: vlc_entry_license__demux_tta Unexecuted instantiation: vlc_entry_api_version__codec_ttml_ttml Unexecuted instantiation: vlc_entry_copyright__codec_ttml_ttml Unexecuted instantiation: vlc_entry_license__codec_ttml_ttml Unexecuted instantiation: vlc_entry_api_version__demux_ty Unexecuted instantiation: vlc_entry_copyright__demux_ty Unexecuted instantiation: vlc_entry_license__demux_ty Unexecuted instantiation: vlc_entry_api_version__demux_voc Unexecuted instantiation: vlc_entry_copyright__demux_voc Unexecuted instantiation: vlc_entry_license__demux_voc Unexecuted instantiation: vlc_entry_api_version__demux_wav Unexecuted instantiation: vlc_entry_copyright__demux_wav Unexecuted instantiation: vlc_entry_license__demux_wav Unexecuted instantiation: vlc_entry_api_version__codec_webvtt_webvtt Unexecuted instantiation: vlc_entry_copyright__codec_webvtt_webvtt Unexecuted instantiation: vlc_entry_license__codec_webvtt_webvtt Unexecuted instantiation: vlc_entry_api_version__demux_xa Unexecuted instantiation: vlc_entry_copyright__demux_xa Unexecuted instantiation: vlc_entry_license__demux_xa Unexecuted instantiation: vlc_entry_api_version__packetizer_a52 Unexecuted instantiation: vlc_entry_copyright__packetizer_a52 Unexecuted instantiation: vlc_entry_license__packetizer_a52 Unexecuted instantiation: vlc_entry_api_version__packetizer_copy Unexecuted instantiation: vlc_entry_copyright__packetizer_copy Unexecuted instantiation: vlc_entry_license__packetizer_copy Unexecuted instantiation: vlc_entry_api_version__packetizer_dts Unexecuted instantiation: vlc_entry_copyright__packetizer_dts Unexecuted instantiation: vlc_entry_license__packetizer_dts Unexecuted instantiation: vlc_entry_api_version__packetizer_flac Unexecuted instantiation: vlc_entry_copyright__packetizer_flac Unexecuted instantiation: vlc_entry_license__packetizer_flac Unexecuted instantiation: vlc_entry_api_version__packetizer_h264 Unexecuted instantiation: vlc_entry_copyright__packetizer_h264 Unexecuted instantiation: vlc_entry_license__packetizer_h264 Unexecuted instantiation: vlc_entry_api_version__packetizer_hevc Unexecuted instantiation: vlc_entry_copyright__packetizer_hevc Unexecuted instantiation: vlc_entry_license__packetizer_hevc Unexecuted instantiation: vlc_entry_api_version__packetizer_mlp Unexecuted instantiation: vlc_entry_copyright__packetizer_mlp Unexecuted instantiation: vlc_entry_license__packetizer_mlp Unexecuted instantiation: vlc_entry_api_version__packetizer_mpeg4audio Unexecuted instantiation: vlc_entry_copyright__packetizer_mpeg4audio Unexecuted instantiation: vlc_entry_license__packetizer_mpeg4audio Unexecuted instantiation: vlc_entry_api_version__packetizer_mpeg4video Unexecuted instantiation: vlc_entry_copyright__packetizer_mpeg4video Unexecuted instantiation: vlc_entry_license__packetizer_mpeg4video Unexecuted instantiation: vlc_entry_api_version__packetizer_mpegaudio Unexecuted instantiation: vlc_entry_copyright__packetizer_mpegaudio Unexecuted instantiation: vlc_entry_license__packetizer_mpegaudio Unexecuted instantiation: vlc_entry_api_version__packetizer_mpegvideo Unexecuted instantiation: vlc_entry_copyright__packetizer_mpegvideo Unexecuted instantiation: vlc_entry_license__packetizer_mpegvideo Unexecuted instantiation: vlc_entry_api_version__packetizer_vc1 Unexecuted instantiation: vlc_entry_copyright__packetizer_vc1 Unexecuted instantiation: vlc_entry_license__packetizer_vc1 Unexecuted instantiation: vlc_entry_api_version__demux_rawaud Unexecuted instantiation: vlc_entry_copyright__demux_rawaud Unexecuted instantiation: vlc_entry_license__demux_rawaud Unexecuted instantiation: vlc_entry_api_version__demux_rawvid Unexecuted instantiation: vlc_entry_copyright__demux_rawvid Unexecuted instantiation: vlc_entry_license__demux_rawvid Unexecuted instantiation: vlc_entry_api_version__access_filesystem Unexecuted instantiation: vlc_entry_copyright__access_filesystem Unexecuted instantiation: vlc_entry_license__access_filesystem Unexecuted instantiation: vlc_entry_api_version__misc_xml_xml Unexecuted instantiation: vlc_entry_copyright__misc_xml_xml Unexecuted instantiation: vlc_entry_license__misc_xml_xml Unexecuted instantiation: vlc_entry_api_version__demux_ogg Unexecuted instantiation: vlc_entry_copyright__demux_ogg Unexecuted instantiation: vlc_entry_license__demux_ogg Unexecuted instantiation: vlc_entry_api_version__demux_mkv_mkv Unexecuted instantiation: vlc_entry_copyright__demux_mkv_mkv Unexecuted instantiation: vlc_entry_license__demux_mkv_mkv Unexecuted instantiation: vlc_entry_api_version__codec_adpcm Unexecuted instantiation: vlc_entry_copyright__codec_adpcm Unexecuted instantiation: vlc_entry_license__codec_adpcm Unexecuted instantiation: vlc_entry_api_version__codec_aes3 Unexecuted instantiation: vlc_entry_copyright__codec_aes3 Unexecuted instantiation: vlc_entry_license__codec_aes3 Unexecuted instantiation: vlc_entry_api_version__codec_araw Unexecuted instantiation: vlc_entry_copyright__codec_araw Unexecuted instantiation: vlc_entry_license__codec_araw Unexecuted instantiation: vlc_entry_api_version__codec_g711 Unexecuted instantiation: vlc_entry_copyright__codec_g711 Unexecuted instantiation: vlc_entry_license__codec_g711 Unexecuted instantiation: vlc_entry_api_version__codec_lpcm Unexecuted instantiation: vlc_entry_copyright__codec_lpcm Unexecuted instantiation: vlc_entry_license__codec_lpcm Unexecuted instantiation: vlc_entry_api_version__codec_uleaddvaudio Unexecuted instantiation: vlc_entry_copyright__codec_uleaddvaudio Unexecuted instantiation: vlc_entry_license__codec_uleaddvaudio Unexecuted instantiation: vlc_entry_api_version__codec_rawvideo Unexecuted instantiation: vlc_entry_copyright__codec_rawvideo Unexecuted instantiation: vlc_entry_license__codec_rawvideo Unexecuted instantiation: vlc_entry_api_version__codec_cc Unexecuted instantiation: vlc_entry_copyright__codec_cc Unexecuted instantiation: vlc_entry_license__codec_cc Unexecuted instantiation: vlc_entry_api_version__codec_cvdsub Unexecuted instantiation: vlc_entry_copyright__codec_cvdsub Unexecuted instantiation: vlc_entry_license__codec_cvdsub Unexecuted instantiation: vlc_entry_api_version__codec_dvbsub Unexecuted instantiation: vlc_entry_copyright__codec_dvbsub Unexecuted instantiation: vlc_entry_license__codec_dvbsub Unexecuted instantiation: vlc_entry_api_version__codec_scte18 Unexecuted instantiation: vlc_entry_copyright__codec_scte18 Unexecuted instantiation: vlc_entry_license__codec_scte18 Unexecuted instantiation: vlc_entry_api_version__codec_scte27 Unexecuted instantiation: vlc_entry_copyright__codec_scte27 Unexecuted instantiation: vlc_entry_license__codec_scte27 Unexecuted instantiation: vlc_entry_api_version__codec_spudec_spudec Unexecuted instantiation: vlc_entry_copyright__codec_spudec_spudec Unexecuted instantiation: vlc_entry_license__codec_spudec_spudec Unexecuted instantiation: vlc_entry_api_version__codec_stl Unexecuted instantiation: vlc_entry_copyright__codec_stl Unexecuted instantiation: vlc_entry_license__codec_stl Unexecuted instantiation: vlc_entry_api_version__codec_subsdec Unexecuted instantiation: vlc_entry_copyright__codec_subsdec Unexecuted instantiation: vlc_entry_license__codec_subsdec Unexecuted instantiation: vlc_entry_api_version__codec_subsusf Unexecuted instantiation: vlc_entry_copyright__codec_subsusf Unexecuted instantiation: vlc_entry_license__codec_subsusf Unexecuted instantiation: vlc_entry_api_version__codec_svcdsub Unexecuted instantiation: vlc_entry_copyright__codec_svcdsub Unexecuted instantiation: vlc_entry_license__codec_svcdsub Unexecuted instantiation: vlc_entry_api_version__codec_textst Unexecuted instantiation: vlc_entry_copyright__codec_textst Unexecuted instantiation: vlc_entry_license__codec_textst Unexecuted instantiation: vlc_entry_api_version__codec_substx3g Unexecuted instantiation: vlc_entry_copyright__codec_substx3g Unexecuted instantiation: vlc_entry_license__codec_substx3g Unexecuted instantiation: vlc_entry_api_version__core Unexecuted instantiation: vlc_entry_copyright__core Unexecuted instantiation: vlc_entry_license__core |
568 | | |
569 | | #define VLC_API_VERSION_EXPORT \ |
570 | | VLC_META_EXPORT(api_version, VLC_API_VERSION_STRING) |
571 | | |
572 | | #define VLC_COPYRIGHT_VIDEOLAN \ |
573 | | "\x43\x6f\x70\x79\x72\x69\x67\x68\x74\x20\x28\x43\x29\x20\x74\x68" \ |
574 | | "\x65\x20\x56\x69\x64\x65\x6f\x4c\x41\x4e\x20\x56\x4c\x43\x20\x6d" \ |
575 | | "\x65\x64\x69\x61\x20\x70\x6c\x61\x79\x65\x72\x20\x64\x65\x76\x65" \ |
576 | | "\x6c\x6f\x70\x65\x72\x73" |
577 | | #define VLC_LICENSE_LGPL_2_1_PLUS \ |
578 | | "\x4c\x69\x63\x65\x6e\x73\x65\x64\x20\x75\x6e\x64\x65\x72\x20\x74" \ |
579 | | "\x68\x65\x20\x74\x65\x72\x6d\x73\x20\x6f\x66\x20\x74\x68\x65\x20" \ |
580 | | "\x47\x4e\x55\x20\x4c\x65\x73\x73\x65\x72\x20\x47\x65\x6e\x65\x72" \ |
581 | | "\x61\x6c\x20\x50\x75\x62\x6c\x69\x63\x20\x4c\x69\x63\x65\x6e\x73" \ |
582 | | "\x65\x2c\x20\x76\x65\x72\x73\x69\x6f\x6e\x20\x32\x2e\x31\x20\x6f" \ |
583 | | "\x72\x20\x6c\x61\x74\x65\x72\x2e" |
584 | | #define VLC_LICENSE_GPL_2_PLUS \ |
585 | | "\x4c\x69\x63\x65\x6e\x73\x65\x64\x20\x75\x6e\x64\x65\x72\x20\x74" \ |
586 | | "\x68\x65\x20\x74\x65\x72\x6d\x73\x20\x6f\x66\x20\x74\x68\x65\x20" \ |
587 | | "\x47\x4e\x55\x20\x47\x65\x6e\x65\x72\x61\x6c\x20\x50\x75\x62\x6c" \ |
588 | | "\x69\x63\x20\x4c\x69\x63\x65\x6e\x73\x65\x2c\x20\x76\x65\x72\x73" \ |
589 | | "\x69\x6f\x6e\x20\x32\x20\x6f\x72\x20\x6c\x61\x74\x65\x72\x2e" |
590 | | #if defined (LIBVLC_INTERNAL_) |
591 | | # define VLC_MODULE_COPYRIGHT VLC_COPYRIGHT_VIDEOLAN |
592 | | # ifndef VLC_MODULE_LICENSE |
593 | | # define VLC_MODULE_LICENSE VLC_LICENSE_LGPL_2_1_PLUS |
594 | | # endif |
595 | | #endif |
596 | | |
597 | | #ifdef VLC_MODULE_COPYRIGHT |
598 | | # define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT(copyright, VLC_MODULE_COPYRIGHT) |
599 | | #else |
600 | | # define VLC_COPYRIGHT_EXPORT |
601 | | #endif |
602 | | #ifdef VLC_MODULE_LICENSE |
603 | | # define VLC_LICENSE_EXPORT VLC_META_EXPORT(license, VLC_MODULE_LICENSE) |
604 | | #else |
605 | | # define VLC_LICENSE_EXPORT |
606 | | #endif |
607 | | |
608 | | #define VLC_METADATA_EXPORTS \ |
609 | | VLC_API_VERSION_EXPORT \ |
610 | | VLC_COPYRIGHT_EXPORT \ |
611 | | VLC_LICENSE_EXPORT |
612 | | |
613 | | #endif |