![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "config_msvc.h"#include "config_file.h"#include <stdio.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Classes | |
| struct | config_file |
Functions | |
| void | config_file_close (struct config_file *s) |
| string | config_file_get_alias (struct config_file *s, const char *req_item_class, const char *requested_name) |
| string | config_file_get_capture_filter_for_alias (struct config_file *s, const char *alias) |
| struct config_file * | config_file_open (const char *name) |
| char * | default_config_file (char *buf, int buf_len) |
| std::list< std::pair< std::string, std::string > > | get_configured_capture_aliases (struct config_file *s) |
| static string | get_nth_word (struct config_file *s, const char *prefix, int index) |
| void config_file_close | ( | struct config_file * | s | ) |
Definition at line 102 of file config_file.cpp.
References config_file::f.
Referenced by vidcap_dispatch_alias().
| string config_file_get_alias | ( | struct config_file * | s, |
| const char * | req_item_class, | ||
| const char * | requested_name ) |
Returns alias for specified class and item name.
Caller must not deallocate returned value. Returned value is valid until corresponding instance of config_file is destroyed.
| s | config_file instance |
| req_item_class | textual representation of configuration file name |
| requested_name | requested alias |
| NULL | if not found |
| pointer | pointer to string representation of the aliased item |
Definition at line 157 of file config_file.cpp.
References get_nth_word().
Referenced by vidcap_dispatch_alias().

| string config_file_get_capture_filter_for_alias | ( | struct config_file * | s, |
| const char * | alias ) |
Definition at line 173 of file config_file.cpp.
References get_nth_word().
Referenced by vidcap_dispatch_alias().

| struct config_file * config_file_open | ( | const char * | name | ) |
Creates config file instance
| name | name of the config file |
Definition at line 87 of file config_file.cpp.
References config_file::f, config_file::file_name, and name.
Referenced by vidcap_dispatch_alias().
| char * default_config_file | ( | char * | buf, |
| int | buf_len ) |
Returns location of default UltraGrid config file
| [out] | buf | buffer to be written to |
| [in] | buf_len | length of the buffer |
| NULL | if path cannot be constructed |
| buf | pointer output buffer pointer - if successfully performed |
Definition at line 67 of file config_file.cpp.
Referenced by vidcap_dispatch_alias().
| std::list< std::pair< std::string, std::string > > get_configured_capture_aliases | ( | struct config_file * | s | ) |
Definition at line 189 of file config_file.cpp.
References description, config_file::f, name, and suffix.
|
static |
Definition at line 112 of file config_file.cpp.
References config_file::f, and suffix.
Referenced by config_file_get_alias(), and config_file_get_capture_filter_for_alias().