![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <iostream>#include <map>#include "debug.h"#include "host.h"#include "lib_common.h"#include "utils/color_out.h"
Go to the source code of this file.
Classes | |
| struct | ci_less |
| struct | ci_less::nocase_compare |
| struct | lib_info |
| struct | library_class_info_t |
Macros | |
| #define | MOD_NAME "[lib] " |
Functions | |
| static auto & | get_libmap () |
| map< string, const void * > | get_libraries_for_class (enum library_class cls, int abi_version, bool include_hidden) |
| bool | list_all_modules () |
| void | list_modules (enum library_class cls, int abi_version, bool full) |
| const void * | load_library (const char *name, enum library_class cls, int abi_version) |
| void | open_all (const char *pattern, list< void * > &libs) |
| void | register_library (const char *name, const void *data, enum library_class cls, int abi_version, int hidden) |
Variables | |
| static map< string, string > | lib_errors |
| const map< enum library_class, library_class_info_t > | library_class_info |
Definition in file lib_common.cpp.
| #define MOD_NAME "[lib] " |
Definition at line 58 of file lib_common.cpp.
|
static |
Definition at line 242 of file lib_common.cpp.
Referenced by get_libraries_for_class(), list_all_modules(), load_library(), and register_library().
| map< string, const void * > get_libraries_for_class | ( | enum library_class | cls, |
| int | abi_version, | ||
| bool | include_hidden ) |
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 | cls, | ||
| 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, |
| 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 * | data, | ||
| enum library_class | cls, | ||
| int | abi_version, | ||
| int | hidden ) |
Definition at line 250 of file lib_common.cpp.
References cls, get_libmap(), LOG, LOG_LEVEL_ERROR, and name.

|
static |
Definition at line 81 of file lib_common.cpp.
Referenced by list_all_modules(), load_library(), and open_all().
| const map<enum library_class, library_class_info_t> library_class_info |
Definition at line 67 of file lib_common.cpp.
Referenced by list_all_modules(), and load_library().