VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_plugin.h
Go to the documentation of this file.
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
39 /* DO NOT EVER REMOVE, INSERT OR REPLACE ANY ITEM! It would break the ABI!
40 * Append new items at the end ONLY. */
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
62 /* actual value (args=int64_t/double/const char *) */
63
65 /* minimum value (args=int64_t/double/const char * twice) */
66
68 /* reserved - do not use */
69
71 /* don't write variable to storage (args=none) */
72
74 /* unused (ignored) */
75
77 /* hide from user (args=none) */
78
80 /* tag as no longer supported (args=none) */
81
83 /* capability for a module or list thereof (args=const char*) */
84
86 /* one-character (short) command line option name (args=char) */
87
89 /* unused (ignored) */
90
92 /* tag as modifiable by untrusted input item "sources" (args=none) */
93
95 /* description (args=const char *, const char *, const char *) */
96
98 /* unused (ignored) */
99
101 /* unused (ignored) */
102
104 /* list of suggested values
105 * (args=size_t, const <type> *, const char *const *) */
106
108 /* unused (ignored) */
109
110 /* Insert new VLC_CONFIG_* here */
111};
112
113/* Configuration hint types */
114#define CONFIG_HINT_CATEGORY 0x02 /* Start of new category */
116#define CONFIG_SUBCATEGORY 0x07 /* Set subcategory */
117#define CONFIG_SECTION 0x08 /* Start of new section */
119/* Configuration item types */
120#define CONFIG_ITEM_FLOAT (1 << 5) /* Float option */
121#define CONFIG_ITEM_INTEGER (2 << 5) /* Integer option */
122#define CONFIG_ITEM_RGB (CONFIG_ITEM_INTEGER | 0x01) /* RGB color option */
123#define CONFIG_ITEM_BOOL (3 << 5) /* Bool option */
124#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#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 */
136/* reduce specific type to type class */
137#define CONFIG_CLASS(x) ((x) & ~0x1F)
139/* is proper option, not a special hint type? */
140#define CONFIG_ITEM(x) (((x) & ~0xF) != 0)
142#define IsConfigStringType(type) \
143 (((type) & CONFIG_ITEM_STRING) != 0)
144#define IsConfigIntegerType(type) \
145 (((type) & CONFIG_ITEM_INTEGER) != 0)
146#define IsConfigFloatType(type) \
147 ((type) == CONFIG_ITEM_FLOAT)
148
149/* Config category */
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,
157 CAT_UNKNOWN = 0,
159 CAT_INTERFACE = 1,
167
168/* Config subcategory */
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"
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#define CONCATENATE( y, z ) CRUDE_HACK( y, z )
241#define CRUDE_HACK( y, z ) y##__##z
242#define STRINGIFY_NAME_( z ) #z
243#define STRINGIFY_NAME( z ) STRINGIFY_NAME_( z )
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#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))
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/* Libtool exports symbols with .def file. If exporting those symbols with
276 * __declspec(dllexport), a linker complains about it. So do not export
277 * symbols with the modifier when using libtool on OS/2.
278 * DLL_EXPORT is defined by libtool. */
279# if defined (_WIN32) || (defined (__OS2__) && !defined (DLL_EXPORT))
280# define DLL_SYMBOL __declspec(dllexport)
281# undef CDECL_SYMBOL
282# define CDECL_SYMBOL __cdecl
283# elif defined (__GNUC__)
284# define DLL_SYMBOL __attribute__((visibility("default")))
285# else
286# define DLL_SYMBOL
287# endif
288#elif defined (VLC_PARTIAL_LINKING) && defined (__GNUC__)
289/* Static / partial-linking build: the entry symbols are still part of the
290 * plugin/host export interface (they are resolved by the host at static
291 * link time via per-module suffixed names). Under -fvisibility=hidden they
292 * would otherwise be emitted as private_external and subsequently demoted
293 * to local by `ld -r` during partial linking on Mach-O, breaking the final
294 * link. */
295# define DLL_SYMBOL __attribute__((visibility("default")))
296#else
297# define DLL_SYMBOL
298#endif
299
300struct vlc_param;
301
302EXTERN_SYMBOL typedef int (*vlc_set_cb) (void *, void *, int, ...);
304/** Plugin entry point prototype */
305typedef int (*vlc_plugin_cb) (vlc_set_cb, void *);
307#define vlc_plugin_set(...) vlc_set (opaque, NULL, __VA_ARGS__)
308#define vlc_module_set(...) vlc_set (opaque, module, __VA_ARGS__)
309#define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__)
314int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_int_enum)(const char *name,
315 int64_t **values, char ***descs);
317int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_str_enum)(const char *name,
318 char ***values, char ***descs);
319
320/* Workaround for lack of C++ compound literals support in some compilers */
321#ifdef __cplusplus
322# define VLC_CHECKED_TYPE(type, value) [](type v){ return v; }(value)
323#else
324# define VLC_CHECKED_TYPE(type, value) (type){ value }
325#endif
326
327/*
328 * InitModule: this function is called once and only once, when the module
329 * is looked at for the first time. We get the useful data from it, for
330 * instance the module name, its shortcuts, its capabilities... we also create
331 * a copy of its config because the module can be unloaded at any time.
332 */
333#define vlc_module_begin() \
334EXTERN_SYMBOL DLL_SYMBOL \
335int CDECL_SYMBOL VLC_SYMBOL(vlc_entry)(vlc_set_cb vlc_set, void *opaque) \
336{ \
337 module_t *module; \
338 struct vlc_param *config = NULL; \
339 if (vlc_plugin_set (VLC_MODULE_CREATE, &module)) \
340 goto error; \
341 if (vlc_module_set (VLC_MODULE_NAME, (MODULE_STRING))) \
342 goto error;
343
344#define vlc_module_end() \
345 (void) config; \
346 return 0; \
347error: \
348 return -1; \
349} \
350VLC_MODULE_NAME_HIDDEN_SYMBOL \
351VLC_METADATA_EXPORTS
352
353#define add_submodule( ) \
354 if (vlc_plugin_set (VLC_MODULE_CREATE, &module)) \
355 goto error;
356
357#define add_shortcut( ... ) \
358{ \
359 const char *shortcuts[] = { __VA_ARGS__ }; \
360 if (vlc_module_set (VLC_MODULE_SHORTCUT, \
361 sizeof(shortcuts)/sizeof(shortcuts[0]), shortcuts)) \
362 goto error; \
363}
364
365#define set_shortname( shortname ) \
366 if (vlc_module_set (VLC_MODULE_SHORTNAME, VLC_CHECKED_TYPE(const char *, shortname))) \
367 goto error;
368
369#define set_description( desc ) \
370 if (vlc_module_set (VLC_MODULE_DESCRIPTION, VLC_CHECKED_TYPE(const char *, desc))) \
371 goto error;
372
373#define set_help( help ) \
374 if (vlc_module_set (VLC_MODULE_HELP, VLC_CHECKED_TYPE(const char *, help))) \
375 goto error;
376
377#define set_help_html( help_html ) \
378 if (vlc_module_set (VLC_MODULE_HELP_HTML, VLC_CHECKED_TYPE(const char *, help_html))) \
379 goto error;
380
381#define set_capability( cap, score ) \
382 if (vlc_module_set (VLC_MODULE_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap)) \
383 || vlc_module_set (VLC_MODULE_SCORE, VLC_CHECKED_TYPE(int, score))) \
384 goto error;
385
386#define set_callback(activate) \
387 if (vlc_module_set(VLC_MODULE_CB_OPEN, #activate, (void *)(activate))) \
388 goto error;
389
390#define set_callbacks( activate, deactivate ) \
391 set_callback(activate) \
392 if (vlc_module_set(VLC_MODULE_CB_CLOSE, #deactivate, \
393 (void (*)(vlc_object_t *))( deactivate ))) \
394 goto error;
395
396#define cannot_unload_broken_library( ) \
397 if (vlc_module_set (VLC_MODULE_NO_UNLOAD)) \
398 goto error;
399
400#define set_text_domain( dom ) \
401 if (vlc_plugin_set (VLC_MODULE_TEXTDOMAIN, VLC_CHECKED_TYPE(const char *, dom))) \
402 goto error;
403
404/*****************************************************************************
405 * Macros used to build the configuration structure.
406 *
407 * Note that internally we support only 3 types of config data: int, float
408 * and string.
409 * The other types declared here just map to one of these 3 basic types but
410 * have the advantage of also providing very good hints to a configuration
411 * interface so as to make it more user friendly.
412 * The configuration structure also includes category hints. These hints can
413 * provide a configuration interface with some very useful data and again
414 * allow for a more user friendly interface.
415 *****************************************************************************/
416
417#define add_type_inner( type ) \
418 vlc_plugin_set (VLC_CONFIG_CREATE, (type), &config);
419
420#define add_typedesc_inner( type, text, longtext ) \
421 add_type_inner( type ) \
422 vlc_config_set (VLC_CONFIG_DESC, VLC_CHECKED_TYPE(const char *, text), \
423 VLC_CHECKED_TYPE(const char *, longtext));
424
425#define add_typename_inner(type, name, text, longtext) \
426 add_typedesc_inner(type, text, longtext) \
427 vlc_config_set (VLC_CONFIG_NAME, VLC_CHECKED_TYPE(const char *, name));
428
429#define add_string_inner(type, name, text, longtext, v) \
430 add_typename_inner(type, name, text, longtext) \
431 vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(const char *, v));
432
433#define add_int_inner(type, name, text, longtext, v) \
434 add_typename_inner(type, name, text, longtext) \
435 vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(int64_t, v));
436
437
438#define set_subcategory( id ) \
439 add_type_inner( CONFIG_SUBCATEGORY ) \
440 vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(int64_t, id));
441
442#define set_section( text, longtext ) \
443 add_typedesc_inner( CONFIG_SECTION, text, longtext )
444
445#define add_string( name, value, text, longtext ) \
446 add_string_inner(CONFIG_ITEM_STRING, name, text, longtext, value)
447
448#define add_password(name, value, text, longtext) \
449 add_string_inner(CONFIG_ITEM_PASSWORD, name, text, longtext, value)
450
451#define add_loadfile(name, value, text, longtext) \
452 add_string_inner(CONFIG_ITEM_LOADFILE, name, text, longtext, value)
453
454#define add_savefile(name, value, text, longtext) \
455 add_string_inner(CONFIG_ITEM_SAVEFILE, name, text, longtext, value)
456
457#define add_directory(name, value, text, longtext) \
458 add_string_inner(CONFIG_ITEM_DIRECTORY, name, text, longtext, value)
459
460#define add_font(name, value, text, longtext) \
461 add_string_inner(CONFIG_ITEM_FONT, name, text, longtext, value)
462
463#define add_module(name, cap, value, text, longtext) \
464 add_string_inner(CONFIG_ITEM_MODULE, name, text, longtext, value) \
465 vlc_config_set (VLC_CONFIG_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap));
466
467#define add_module_list(name, cap, value, text, longtext) \
468 add_string_inner(CONFIG_ITEM_MODULE_LIST, name, text, longtext, value) \
469 vlc_config_set (VLC_CONFIG_CAPABILITY, VLC_CHECKED_TYPE(const char *, cap));
470
471#define add_integer( name, value, text, longtext ) \
472 add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value)
473
474#define add_rgb(name, value, text, longtext) \
475 add_int_inner(CONFIG_ITEM_RGB, name, text, longtext, value) \
476 change_integer_range( 0, 0xFFFFFF )
477
478#define add_key(name, value, text, longtext) \
479 add_string_inner(CONFIG_ITEM_KEY, "global-" name, text, longtext, \
480 KEY_UNSET) \
481 add_string_inner(CONFIG_ITEM_KEY, name, text, longtext, value)
482
483#define add_integer_with_range( name, value, min, max, text, longtext ) \
484 add_integer( name, value, text, longtext ) \
485 change_integer_range( min, max )
486
487#define add_float( name, v, text, longtext ) \
488 add_typename_inner(CONFIG_ITEM_FLOAT, name, text, longtext) \
489 vlc_config_set (VLC_CONFIG_VALUE, VLC_CHECKED_TYPE(double, v));
490
491#define add_float_with_range( name, value, min, max, text, longtext ) \
492 add_float( name, value, text, longtext ) \
493 change_float_range( min, max )
494
495#define add_bool( name, v, text, longtext ) \
496 add_typename_inner(CONFIG_ITEM_BOOL, name, text, longtext) \
497 if (v) vlc_config_set (VLC_CONFIG_VALUE, (int64_t)true);
498
499/* For removed option */
500#define add_obsolete_inner( name, type ) \
501 add_type_inner( type ) \
502 vlc_config_set (VLC_CONFIG_NAME, VLC_CHECKED_TYPE(const char *, name)); \
503 vlc_config_set (VLC_CONFIG_REMOVED);
504
505#define add_obsolete_bool( name ) \
506 add_obsolete_inner( name, CONFIG_ITEM_BOOL )
507
508#define add_obsolete_integer( name ) \
509 add_obsolete_inner( name, CONFIG_ITEM_INTEGER )
510
511#define add_obsolete_float( name ) \
512 add_obsolete_inner( name, CONFIG_ITEM_FLOAT )
513
514#define add_obsolete_string( name ) \
515 add_obsolete_inner( name, CONFIG_ITEM_STRING )
516
517/* Modifier macros for the config options (used for fine tuning) */
518
519#define change_short( ch ) \
520 vlc_config_set (VLC_CONFIG_SHORTCUT, VLC_CHECKED_TYPE(char, ch));
521
522#define change_string_list( list, list_text ) \
523 vlc_config_set (VLC_CONFIG_LIST, \
524 ARRAY_SIZE(list), \
525 VLC_CHECKED_TYPE(const char *const *, list), \
526 VLC_CHECKED_TYPE(const char *const *, list_text));
527
528#define change_integer_list( list, list_text ) \
529 vlc_config_set (VLC_CONFIG_LIST, \
530 ARRAY_SIZE(list), \
531 VLC_CHECKED_TYPE(const int *, list), \
532 VLC_CHECKED_TYPE(const char *const *, list_text));
533
534#define change_integer_range( minv, maxv ) \
535 vlc_config_set (VLC_CONFIG_RANGE, VLC_CHECKED_TYPE(int64_t, minv), \
536 VLC_CHECKED_TYPE(int64_t, maxv));
537
538#define change_float_range( minv, maxv ) \
539 vlc_config_set (VLC_CONFIG_RANGE, VLC_CHECKED_TYPE(double, minv), \
540 VLC_CHECKED_TYPE(double, maxv));
541
542/* For options that are saved but hidden from the preferences panel */
543#define change_private() \
544 vlc_config_set (VLC_CONFIG_PRIVATE);
545
546/* For options that cannot be saved in the configuration */
547#define change_volatile() \
548 change_private() \
549 vlc_config_set (VLC_CONFIG_VOLATILE);
550
551#define change_safe() \
552 vlc_config_set (VLC_CONFIG_SAFE);
553
554/* Configuration item choice enumerators */
555#define VLC_CONFIG_INTEGER_ENUM(cb) \
556EXTERN_SYMBOL DLL_SYMBOL \
557int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_int_enum)(const char *name, \
558 int64_t **values, char ***descs) \
559{ \
560 return (cb)(name, values, descs); \
561}
562
563#define VLC_CONFIG_STRING_ENUM(cb) \
564EXTERN_SYMBOL DLL_SYMBOL \
565int CDECL_SYMBOL VLC_SYMBOL(vlc_entry_cfg_str_enum)(const char *name, \
566 char ***values, char ***descs) \
567{ \
568 return (cb)(name, values, descs); \
569}
570
571/* Meta data plugin exports */
572#define VLC_META_EXPORT( name, value ) \
573 EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \
574 VLC_SYMBOL(vlc_entry_ ## name)(void); \
575 EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \
576 VLC_SYMBOL(vlc_entry_ ## name)(void) \
577 { \
578 return value; \
579 }
580
581#define VLC_API_VERSION_EXPORT \
582 VLC_META_EXPORT(api_version, VLC_API_VERSION_STRING)
583
584#define VLC_COPYRIGHT_VIDEOLAN \
585 "\x43\x6f\x70\x79\x72\x69\x67\x68\x74\x20\x28\x43\x29\x20\x74\x68" \
586 "\x65\x20\x56\x69\x64\x65\x6f\x4c\x41\x4e\x20\x56\x4c\x43\x20\x6d" \
587 "\x65\x64\x69\x61\x20\x70\x6c\x61\x79\x65\x72\x20\x64\x65\x76\x65" \
588 "\x6c\x6f\x70\x65\x72\x73"
589#define VLC_LICENSE_LGPL_2_1_PLUS \
590 "\x4c\x69\x63\x65\x6e\x73\x65\x64\x20\x75\x6e\x64\x65\x72\x20\x74" \
591 "\x68\x65\x20\x74\x65\x72\x6d\x73\x20\x6f\x66\x20\x74\x68\x65\x20" \
592 "\x47\x4e\x55\x20\x4c\x65\x73\x73\x65\x72\x20\x47\x65\x6e\x65\x72" \
593 "\x61\x6c\x20\x50\x75\x62\x6c\x69\x63\x20\x4c\x69\x63\x65\x6e\x73" \
594 "\x65\x2c\x20\x76\x65\x72\x73\x69\x6f\x6e\x20\x32\x2e\x31\x20\x6f" \
595 "\x72\x20\x6c\x61\x74\x65\x72\x2e"
596#define VLC_LICENSE_GPL_2_PLUS \
597 "\x4c\x69\x63\x65\x6e\x73\x65\x64\x20\x75\x6e\x64\x65\x72\x20\x74" \
598 "\x68\x65\x20\x74\x65\x72\x6d\x73\x20\x6f\x66\x20\x74\x68\x65\x20" \
599 "\x47\x4e\x55\x20\x47\x65\x6e\x65\x72\x61\x6c\x20\x50\x75\x62\x6c" \
600 "\x69\x63\x20\x4c\x69\x63\x65\x6e\x73\x65\x2c\x20\x76\x65\x72\x73" \
601 "\x69\x6f\x6e\x20\x32\x20\x6f\x72\x20\x6c\x61\x74\x65\x72\x2e"
602#if defined (LIBVLC_INTERNAL_)
603# define VLC_MODULE_COPYRIGHT VLC_COPYRIGHT_VIDEOLAN
604# ifndef VLC_MODULE_LICENSE
605# define VLC_MODULE_LICENSE VLC_LICENSE_LGPL_2_1_PLUS
606# endif
607#endif
608
609#ifdef VLC_MODULE_COPYRIGHT
610# define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT(copyright, VLC_MODULE_COPYRIGHT)
611#else
612# define VLC_COPYRIGHT_EXPORT
613#endif
614#ifdef VLC_MODULE_LICENSE
615# define VLC_LICENSE_EXPORT VLC_META_EXPORT(license, VLC_MODULE_LICENSE)
616#else
617# define VLC_LICENSE_EXPORT
618#endif
619
620#define VLC_METADATA_EXPORTS \
621 VLC_API_VERSION_EXPORT \
622 VLC_COPYRIGHT_EXPORT \
623 VLC_LICENSE_EXPORT
624
625#endif
const char name[16]
Definition httpd.c:1298
static void vlc_entry(void *p)
Definition thread.c:388
Definition configuration.h:30
This file is a collection of common definitions and types.
vlc_config_cat
Definition vlc_plugin.h:152
@ CAT_SOUT
Definition vlc_plugin.h:164
@ CAT_AUDIO
Definition vlc_plugin.h:161
@ CAT_HIDDEN
Definition vlc_plugin.h:156
@ CAT_PLAYLIST
Definition vlc_plugin.h:166
@ CAT_VIDEO
Definition vlc_plugin.h:162
@ CAT_INPUT
Definition vlc_plugin.h:163
@ CAT_ADVANCED
Definition vlc_plugin.h:165
@ CAT_UNKNOWN
Definition vlc_plugin.h:158
@ CAT_INTERFACE
Definition vlc_plugin.h:160
#define VLC_SYMBOL(symbol)
Definition vlc_plugin.h:270
#define DLL_SYMBOL
Definition vlc_plugin.h:298
vlc_module_properties
Definition vlc_plugin.h:36
@ VLC_MODULE_NO_UNLOAD
Definition vlc_plugin.h:48
@ VLC_CONFIG_OLDNAME_OBSOLETE
Definition vlc_plugin.h:89
@ VLC_CONFIG_RANGE
Definition vlc_plugin.h:65
@ VLC_CONFIG_DESC
Definition vlc_plugin.h:95
@ VLC_CONFIG_ADD_ACTION_OBSOLETE
Definition vlc_plugin.h:101
@ VLC_MODULE_CB_OPEN
Definition vlc_plugin.h:46
@ VLC_CONFIG_VALUE
Definition vlc_plugin.h:62
@ VLC_MODULE_HELP
Definition vlc_plugin.h:52
@ VLC_CONFIG_ADVANCED_RESERVED
Definition vlc_plugin.h:68
@ VLC_CONFIG_LIST
Definition vlc_plugin.h:104
@ VLC_MODULE_CPU_REQUIREMENT
Definition vlc_plugin.h:42
@ VLC_MODULE_DESCRIPTION
Definition vlc_plugin.h:51
@ VLC_MODULE_CB_CLOSE
Definition vlc_plugin.h:47
@ VLC_MODULE_SHORTCUT
Definition vlc_plugin.h:43
@ VLC_CONFIG_LIST_OBSOLETE
Definition vlc_plugin.h:98
@ VLC_CONFIG_NAME
Definition vlc_plugin.h:59
@ VLC_MODULE_SCORE
Definition vlc_plugin.h:45
@ VLC_MODULE_NAME
Definition vlc_plugin.h:49
@ VLC_CONFIG_VOLATILE
Definition vlc_plugin.h:71
@ VLC_CONFIG_SAFE
Definition vlc_plugin.h:92
@ VLC_MODULE_CAPABILITY
Definition vlc_plugin.h:44
@ VLC_MODULE_CREATE
Definition vlc_plugin.h:37
@ VLC_CONFIG_SHORTCUT
Definition vlc_plugin.h:86
@ VLC_CONFIG_CAPABILITY
Definition vlc_plugin.h:83
@ VLC_CONFIG_REMOVED
Definition vlc_plugin.h:80
@ VLC_MODULE_TEXTDOMAIN
Definition vlc_plugin.h:53
@ VLC_CONFIG_PERSISTENT_OBSOLETE
Definition vlc_plugin.h:74
@ VLC_MODULE_SHORTNAME
Definition vlc_plugin.h:50
@ VLC_CONFIG_PRIVATE
Definition vlc_plugin.h:77
@ VLC_CONFIG_LIST_CB_OBSOLETE
Definition vlc_plugin.h:108
@ VLC_MODULE_HELP_HTML
Definition vlc_plugin.h:54
@ VLC_CONFIG_CREATE
Definition vlc_plugin.h:38
#define CDECL_SYMBOL
Definition vlc_plugin.h:274
int(* vlc_plugin_cb)(vlc_set_cb, void *)
Plugin entry point prototype.
Definition vlc_plugin.h:306
int(* vlc_set_cb)(void *, void *, int,...)
Definition vlc_plugin.h:303
#define EXTERN_SYMBOL
Definition vlc_plugin.h:249
vlc_config_subcat
Definition vlc_plugin.h:171
@ SUBCAT_VIDEO_GENERAL
Definition vlc_plugin.h:190
@ SUBCAT_PLAYLIST_SD
Definition vlc_plugin.h:216
@ SUBCAT_SOUT_GENERAL
Definition vlc_plugin.h:204
@ SUBCAT_INTERFACE_HOTKEYS
Definition vlc_plugin.h:182
@ SUBCAT_INTERFACE_MAIN
Definition vlc_plugin.h:180
@ SUBCAT_SOUT_PACKETIZER
Definition vlc_plugin.h:208
@ SUBCAT_INPUT_STREAM_FILTER
Definition vlc_plugin.h:202
@ SUBCAT_SOUT_STREAM
Definition vlc_plugin.h:205
@ SUBCAT_INPUT_ACODEC
Definition vlc_plugin.h:200
@ SUBCAT_SOUT_VOD
Definition vlc_plugin.h:209
@ SUBCAT_INPUT_GENERAL
Definition vlc_plugin.h:196
@ SUBCAT_VIDEO_VFILTER
Definition vlc_plugin.h:192
@ SUBCAT_VIDEO_SPLITTER
Definition vlc_plugin.h:194
@ SUBCAT_INTERFACE_GENERAL
Definition vlc_plugin.h:179
@ SUBCAT_SOUT_MUX
Definition vlc_plugin.h:206
@ SUBCAT_AUDIO_RESAMPLER
Definition vlc_plugin.h:188
@ SUBCAT_HIDDEN
Definition vlc_plugin.h:175
@ SUBCAT_SOUT_RENDERER
Definition vlc_plugin.h:210
@ SUBCAT_PLAYLIST_GENERAL
Definition vlc_plugin.h:215
@ SUBCAT_AUDIO_AFILTER
Definition vlc_plugin.h:186
@ SUBCAT_INPUT_VCODEC
Definition vlc_plugin.h:199
@ SUBCAT_INPUT_DEMUX
Definition vlc_plugin.h:198
@ SUBCAT_INTERFACE_CONTROL
Definition vlc_plugin.h:181
@ SUBCAT_AUDIO_VISUAL
Definition vlc_plugin.h:187
@ SUBCAT_SOUT_ACO
Definition vlc_plugin.h:207
@ SUBCAT_UNKNOWN
Definition vlc_plugin.h:177
@ SUBCAT_ADVANCED_MISC
Definition vlc_plugin.h:212
@ SUBCAT_AUDIO_AOUT
Definition vlc_plugin.h:185
@ SUBCAT_INPUT_ACCESS
Definition vlc_plugin.h:197
@ SUBCAT_ADVANCED_NETWORK
Definition vlc_plugin.h:213
@ SUBCAT_VIDEO_SUBPIC
Definition vlc_plugin.h:193
@ SUBCAT_PLAYLIST_EXPORT
Definition vlc_plugin.h:217
@ SUBCAT_INPUT_SCODEC
Definition vlc_plugin.h:201
@ SUBCAT_AUDIO_GENERAL
Definition vlc_plugin.h:184
@ SUBCAT_VIDEO_VOUT
Definition vlc_plugin.h:191