![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Go to the source code of this file.
Macros | |
| #define | MK_NAME(A) |
| #define | MK_NAME_REF(A) |
| #define | MK_STATIC(A) |
| This macro causes that this module will be statically linked with UltraGrid. | |
| #define | MK_STATIC_REF(A) |
| #define | NULL_IF_BUILD_LIBRARIES(x) |
| #define | REGISTER_HIDDEN_MODULE(name, info, lclass, abi) |
| #define | REGISTER_MODULE(name, info, lclass, abi) |
| Registers module to global modules' registry. | |
| #define | REGISTER_MODULE_FUNC_FUNCNAME(name, func, lclass, abi, funcname, hidden) |
| #define | REGISTER_MODULE_FUNCNAME(name, info, lclass, abi, funcname, hidden) |
| #define | REGISTER_MODULE_WITH_FUNC(name, func, lclass, abi) |
Functions | |
| std::map< std::string, const void * > | get_libraries_for_class (enum library_class cls, int abi_version, bool include_hidden=true) |
| bool | list_all_modules () |
| void | list_modules (enum library_class, int abi_version, bool full) |
| const void * | load_library (const char *name, enum library_class, int abi_version) |
| void | open_all (const char *pattern, std::list< void * > &libs) |
| void | register_library (const char *name, const void *info, enum library_class, int abi_version, int hidden) |
Definition in file lib_common.h.
| #define MK_NAME | ( | A | ) |
Definition at line 58 of file lib_common.h.
| #define MK_NAME_REF | ( | A | ) |
Definition at line 59 of file lib_common.h.
| #define MK_STATIC | ( | A | ) |
This macro causes that this module will be statically linked with UltraGrid.
Definition at line 44 of file lib_common.h.
| #define MK_STATIC_REF | ( | A | ) |
Definition at line 45 of file lib_common.h.
| #define NULL_IF_BUILD_LIBRARIES | ( | x | ) |
Definition at line 61 of file lib_common.h.
| #define REGISTER_HIDDEN_MODULE | ( | name, | |
| info, | |||
| lclass, | |||
| abi ) |
Similar to REGISTER_MODULE but do not show the module under help of correcponding class (usable for technical or deprecated modules).
Definition at line 156 of file lib_common.h.
| #define REGISTER_MODULE | ( | name, | |
| info, | |||
| lclass, | |||
| abi ) |
Registers module to global modules' registry.
| name | name of the module to be used to load the module (Note that it has to be without quotation marks!) |
| info | pointer to structure with the (class specific) info about module |
| lclass | member of library_class |
| abi | ABI version of info parameter, usually defined per class in appropriate class header (eg. video_display.h) |
Definition at line 144 of file lib_common.h.
Definition at line 120 of file lib_common.h.
| #define REGISTER_MODULE_FUNCNAME | ( | name, | |
| info, | |||
| lclass, | |||
| abi, | |||
| funcname, | |||
| hidden ) |
Placeholder that installs module via constructor for every macro REGISTER_MODULE/REGISTER_MODULE_HIDDEN call
| name | non-quoted module name |
| lclass | class of the module |
| abi | abi version (specific for every class) |
| funcname | unique function name that will be used to register the module (as a constructor) |
| hidden | 0/1 - whether the module should be visible by eg. '-c help' (for technical and deprecated modules), default true |
Definition at line 112 of file lib_common.h.
same as REGISTER_MODULE, but a function is called to get the info structure on run-time allowing to run arbitrary code to do some setup
Definition at line 150 of file lib_common.h.
| enum library_class |
Definition at line 73 of file lib_common.h.
| std::map< std::string, const void * > get_libraries_for_class | ( | enum library_class | cls, |
| int | abi_version, | ||
| bool | include_hidden = true ) |
Definition at line 336 of file lib_common.cpp.
References cls, get_libmap(), LOG, and LOG_LEVEL_WARNING.
Referenced by audio_codec_init_real(), audio_filter_init(), create_filter(), find_best_decompress(), list_modules(), and print_capabilities().

| bool list_all_modules | ( | ) |
| false | if there occurs some problem opening one or more modules, true otherwise |
Definition at line 308 of file lib_common.cpp.
References get_libmap(), lib_errors, library_class_info, SBOLD, and SRED.
Referenced by parse_global_opts(), and parse_options_internal().

| void list_modules | ( | enum library_class | cls, |
| int | abi_version, | ||
| bool | full ) |
Prints list of modules of given class
| full | include hidden modules |
Definition at line 298 of file lib_common.cpp.
References cls, get_libraries_for_class(), and SBOLD.
Referenced by audio_capture_print_help(), audio_playback_help(), capture_filter_init(), video_rxtx::list(), list_video_capture_devices(), list_video_display_devices(), show_compress_help(), and show_vo_postprocess_help().

| const void * load_library | ( | const char * | name, |
| enum | library_class, | ||
| int | abi_version ) |
Definition at line 259 of file lib_common.cpp.
References cls, get_libmap(), lib_errors, library_class_info, LOG, LOG_LEVEL_WARNING, and name.
Referenced by adjust_params(), audio_capture_init(), audio_decoder_init(), audio_playback_init(), video_rxtx::create(), video_rxtx::get_long_name(), init(), ldgm::init(), initialize_video_capture(), initialize_video_display(), tx_init(), and video_decoder_init().

| void open_all | ( | const char * | pattern, |
| std::list< void * > & | libs ) |
Definition at line 176 of file lib_common.cpp.
References lib_errors, MSG, UNUSED, and uv_argv.
Referenced by common_preinit().
| void register_library | ( | const char * | name, |
| const void * | info, | ||
| enum | library_class, | ||
| int | abi_version, | ||
| int | hidden ) |
Definition at line 250 of file lib_common.cpp.
References cls, get_libmap(), LOG, LOG_LEVEL_ERROR, and name.
