Asterisk - The Open Source Telephony Project GIT-master-7805f28
|
Go to the source code of this file.
Data Structures | |
struct | ast_channelstorage_driver |
struct | ast_channelstorage_instance |
Macros | |
#define | AST_CHANNELSTORAGE_DEFAULT_TYPE "ao2_legacy" |
#define | CHANNELSTORAGE_API(_instance, _func, ...) (_instance)->_func((_instance), ##__VA_ARGS__) |
#define AST_CHANNELSTORAGE_DEFAULT_TYPE "ao2_legacy" |
Definition at line 30 of file channelstorage.h.
#define CHANNELSTORAGE_API | ( | _instance, | |
_func, | |||
... | |||
) | (_instance)->_func((_instance), ##__VA_ARGS__) |
Definition at line 72 of file channelstorage.h.
void ast_channelstorage_close | ( | struct ast_channelstorage_instance * | storage_instance | ) |
Definition at line 65 of file channelstorage.c.
References CHANNELSTORAGE_API, and ast_channelstorage_instance::close.
Referenced by ast_channel_close_storage(), and channels_shutdown().
const struct ast_channelstorage_driver * ast_channelstorage_get_driver | ( | const char * | driver_name | ) |
Definition at line 34 of file channelstorage.c.
References AST_VECTOR_GET, AST_VECTOR_SIZE, ast_channelstorage_driver::driver_name, NULL, and storage_drivers.
Referenced by internal_channel_set_current_storage_driver().
int ast_channelstorage_init | ( | void | ) |
Definition at line 513 of file channelstorage.c.
References ast_register_cleanup(), AST_TEST_REGISTER, and channelstorage_shutdown().
Referenced by ast_channels_init().
struct ast_channelstorage_instance * ast_channelstorage_open | ( | const struct ast_channelstorage_driver * | storage_driver, |
const char * | instance_name | ||
) |
Definition at line 49 of file channelstorage.c.
References ast_log, ast_channelstorage_driver::driver_name, LOG_ERROR, NULL, and ast_channelstorage_driver::open.
Referenced by ast_channel_open_storage().
int ast_channelstorage_register_driver | ( | const struct ast_channelstorage_driver * | driver_name | ) |
Definition at line 25 of file channelstorage.c.
References AST_VECTOR_APPEND, AST_VECTOR_INIT, driver_type, NULL, and storage_drivers.
Referenced by __startup().
struct ast_channel * channelstorage_by_exten | ( | struct ast_channelstorage_instance * | driver, |
const char * | exten, | ||
const char * | context | ||
) |
Definition at line 87 of file channelstorage.c.
References callback(), CHANNELSTORAGE_API, channelstorage_exten_cb(), voicemailpwcheck::context, and ast_channel::exten.
struct ast_channel * channelstorage_by_name_or_uniqueid | ( | struct ast_channelstorage_instance * | driver, |
const char * | name | ||
) |
struct ast_channel * channelstorage_by_name_prefix_or_uniqueid | ( | struct ast_channelstorage_instance * | driver, |
const char * | name, | ||
size_t | name_len | ||
) |
Definition at line 122 of file channelstorage.c.
References CHANNELSTORAGE_API, get_by_name_prefix(), get_by_uniqueid(), name, and NULL.
struct ast_channel * channelstorage_by_uniqueid | ( | struct ast_channelstorage_instance * | driver, |
const char * | uniqueid | ||
) |
Definition at line 152 of file channelstorage.c.
References callback(), CHANNELSTORAGE_API, channelstorage_uniqueid_cb(), NULL, and ast_channel::uniqueid.
int channelstorage_exten_cb | ( | void * | obj, |
void * | arg, | ||
void * | data, | ||
int | flags | ||
) |
Definition at line 70 of file channelstorage.c.
References ao2_lock, ao2_unlock, ast_channel_context(), ast_channel_exten(), CMP_MATCH, CMP_STOP, voicemailpwcheck::context, ast_channel::data, ast_channel::exten, ast_channel::flags, and OBJ_MULTIPLE.
Referenced by channelstorage_by_exten().
int channelstorage_name_cb | ( | void * | obj, |
void * | arg, | ||
void * | data, | ||
int | flags | ||
) |
Definition at line 96 of file channelstorage.c.
References ast_channel_name(), CMP_MATCH, CMP_STOP, ast_channel::data, ast_channel::flags, name, and OBJ_MULTIPLE.
int channelstorage_uniqueid_cb | ( | void * | obj, |
void * | arg, | ||
void * | data, | ||
int | flags | ||
) |
Definition at line 139 of file channelstorage.c.
References ast_channel_uniqueid(), CMP_MATCH, CMP_STOP, and ast_channel::uniqueid.
Referenced by channelstorage_by_uniqueid().