![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <assert.h>#include <stdlib.h>#include <string.h>#include "debug.h"#include "module.h"#include "utils/list.h"
Go to the source code of this file.
Macros | |
| #define | MOD_NAME "[module] " |
Functions | |
| void | append_message_path (char *buf, int buflen, const enum module_class *modules) |
| void | dump_parents (struct module *node) |
| void | dump_tree (struct module *root_node, int indent) |
| static struct module * | find_child (struct module *node, const char *node_name, int id_num, const char *id_name) |
| struct module * | get_matching_child (struct module *node, const char *const_path) |
| struct module * | get_module (struct module *root, const char *const_path) |
| static const char * | get_module_identifier (struct module *mod) |
| struct module * | get_parent_module (struct module *node) |
| static void | get_receiver_index (char *node_str, int *index, char **name) |
| struct module * | get_root_module (struct module *node) |
| const char * | module_class_name (enum module_class cls) |
| void | module_done (struct module *module_data) |
| bool | module_get_path_str (struct module *mod, char *buf, size_t buflen) |
| void | module_init_default (struct module *module_data) |
| static void | module_mutex_lock (pthread_mutex_t *lock) |
| static void | module_mutex_unlock (pthread_mutex_t *lock) |
| void | module_register (struct module *module_data, struct module *parent) |
Variables | |
| static const char * | module_class_name_pairs [] |
Definition in file module.c.
|
static |
id_num and id_name distinguish in case that the node has more child nodes with the same node_name (the same class). If id_name == NULL, id_num is used.
Definition at line 223 of file module.c.
References module::children, module::cls, module_class_name(), module::name, simple_linked_list_it_destroy(), simple_linked_list_it_init(), and simple_linked_list_it_next().
Referenced by get_matching_child().

|
static |
Definition at line 366 of file module.c.
References module::cls, get_parent_module(), module_class_name(), module_mutex_lock(), module_mutex_unlock(), name, parent, simple_linked_list_it_init(), and simple_linked_list_it_next().
Referenced by module_get_path_str().

|
static |
Parses path element, which might be either in form a single-word item (eg "display") or an array, either indexed by a number, in which case non-zero index will be returned or a module name (module::name member) which would be returned in name return value. Both indexing options are mutually exclusive.
Definition at line 251 of file module.c.
References name.
Referenced by get_matching_child().
|
static |
Definition at line 69 of file module.c.
Referenced by dump_tree(), get_module(), get_module_identifier(), module_done(), and module_register().
|
static |
Definition at line 76 of file module.c.
Referenced by dump_tree(), get_module(), get_module_identifier(), module_done(), and module_register().
|
static |
Definition at line 160 of file module.c.
Referenced by module_class_name().