|
Asterisk - The Open Source Telephony Project GIT-master-80b953f
|
Backend output functions. More...
#include "cdrel.h"
Go to the source code of this file.
Functions | |
| AST_THREADSTORAGE_CUSTOM_SCOPE (custom_buf, NULL, ast_free_ptr, static) | |
| static int | database_writer (struct cdrel_config *config, struct cdrel_values *values) |
| static int | dsv_appender (struct cdrel_config *config, struct cdrel_values *values, struct ast_str **str) |
| static int | dsv_writer (struct cdrel_config *config, struct cdrel_values *values) |
| static int | json_writer (struct cdrel_config *config, struct cdrel_values *values) |
| int | load_writers (void) |
| int | write_record_to_database (struct cdrel_config *config, struct cdrel_values *values) |
| int | write_record_to_file (struct cdrel_config *config, struct ast_str *record) |
Backend output functions.
The writers all take a vector of cdrel_value objects and write them to the output file or database.
Definition in file writers.c.
| AST_THREADSTORAGE_CUSTOM_SCOPE | ( | custom_buf | , |
| NULL | , | ||
| ast_free_ptr | , | ||
| static | |||
| ) |
|
static |
Definition at line 216 of file writers.c.
References config, cdrel_value::values, and write_record_to_database().
Referenced by load_writers().
|
static |
Definition at line 81 of file writers.c.
References ast_assert, ast_str_append(), AST_VECTOR_GET, AST_VECTOR_SIZE, cdrel_type_string, config, str, value, and cdrel_value::values.
Referenced by dsv_writer().
|
static |
Definition at line 108 of file writers.c.
References ast_str_reset(), ast_str_thread_get(), config, dsv_appender(), str, and write_record_to_file().
Referenced by load_writers().
|
static |
Definition at line 135 of file writers.c.
References ast_assert, ast_str_append(), ast_str_set(), ast_str_thread_get(), AST_VECTOR_GET, AST_VECTOR_SIZE, cdrel_type_string, config, str, value, cdrel_value::values, and write_record_to_file().
Referenced by load_writers().
| int load_writers | ( | void | ) |
Definition at line 221 of file writers.c.
References ast_debug, cdrel_backend_writers, cdrel_format_dsv, cdrel_format_json, cdrel_format_sql, database_writer(), dsv_writer(), and json_writer().
Referenced by load_module().
| int write_record_to_database | ( | struct cdrel_config * | config, |
| struct cdrel_values * | values | ||
| ) |
Definition at line 169 of file writers.c.
References ast_assert, ast_debug, ast_log, ast_mutex_lock, ast_mutex_unlock, AST_VECTOR_GET, AST_VECTOR_SIZE, cdrel_type_string, config, LOG_ERROR, RECORD_TYPE_STR, value, and cdrel_value::values.
Referenced by database_writer(), and log_legacy_database_record().
| int write_record_to_file | ( | struct cdrel_config * | config, |
| struct ast_str * | record | ||
| ) |
Definition at line 50 of file writers.c.
References ast_log, ast_mutex_lock, ast_mutex_unlock, ast_str_buffer(), config, errno, LOG_ERROR, out, and RECORD_TYPE_STR.
Referenced by dsv_writer(), json_writer(), and log_legacy_dsv_record().