Asterisk - The Open Source Telephony Project
18.5.0
|
IAX Firmware Support header file. More...
#include "parser.h"
Go to the source code of this file.
Functions | |
int | iax_firmware_append (struct iax_ie_data *ie_data, const char *device_name, unsigned int block_desc) |
int | iax_firmware_get_version (const char *device_name, uint16_t *version) |
void | iax_firmware_reload (void) |
void | iax_firmware_traverse (const char *prefix, int(*callback)(struct ast_iax2_firmware_header *header, void *user_data), void *user_data) |
void | iax_firmware_unload (void) |
IAX Firmware Support header file.
Definition in file firmware.h.
int iax_firmware_append | ( | struct iax_ie_data * | ie_data, |
const char * | device_name, | ||
unsigned int | block_desc | ||
) |
Definition at line 283 of file firmware.c.
References AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_strlen_zero, bs, ast_iax2_firmware_header::data, ast_iax2_firmware_header::datalen, ast_iax2_firmware_header::devname, iax_firmware::fwh, iax_ie_append(), iax_ie_append_int(), iax_ie_append_raw(), IAX_IE_FWBLOCKDATA, IAX_IE_FWBLOCKDESC, and iax_firmware::list.
Referenced by socket_process_helper().
int iax_firmware_get_version | ( | const char * | device_name, |
uint16_t * | version | ||
) |
Definition at line 263 of file firmware.c.
References AST_LIST_LOCK, AST_LIST_TRAVERSE, AST_LIST_UNLOCK, ast_strlen_zero, ast_iax2_firmware_header::devname, iax_firmware::fwh, iax_firmware::list, NULL, and ast_iax2_firmware_header::version.
Referenced by update_registry().
void iax_firmware_reload | ( | void | ) |
Definition at line 206 of file firmware.c.
References ast_config_AST_DATA_DIR, AST_LIST_LOCK, AST_LIST_REMOVE_CURRENT, AST_LIST_TRAVERSE, AST_LIST_TRAVERSE_SAFE_BEGIN, AST_LIST_TRAVERSE_SAFE_END, AST_LIST_UNLOCK, ast_log, ast_verb, iax_firmware::dead, destroy_firmware(), errno, IAX_FIRMWARE_SUBDIR, iax_firmware::list, LOG_WARNING, NULL, PATH_MAX, and try_firmware().
Referenced by load_module(), and reload_config().
void iax_firmware_traverse | ( | const char * | prefix, |
int(*)(struct ast_iax2_firmware_header *header, void *user_data) | callback, | ||
void * | user_data | ||
) |
void iax_firmware_unload | ( | void | ) |
Definition at line 250 of file firmware.c.
References AST_LIST_LOCK, AST_LIST_REMOVE_CURRENT, AST_LIST_TRAVERSE_SAFE_BEGIN, AST_LIST_TRAVERSE_SAFE_END, AST_LIST_UNLOCK, destroy_firmware(), iax_firmware::list, and NULL.
Referenced by __unload_module().