mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
channelstorage: Rename callbacks that conflict with DEBUG_FD_LEAKS.
DEBUG_FD_LEAKS replaces calls to "open" and "close" with functions that keep track of file descriptors, even when those calls are actually callbacks defined in structures like ast_channelstorage_instance->open and don't touch file descriptors. This causes compilation failures. Those callbacks have been renamed to "open_instance" and "close_instance" respectively. Resolves: #1287
This commit is contained in:
@@ -52,7 +52,7 @@ struct ast_channelstorage_instance *ast_channelstorage_open(
|
||||
{
|
||||
struct ast_channelstorage_instance *storage_instance = NULL;
|
||||
|
||||
storage_instance = storage_driver->open(instance_name);
|
||||
storage_instance = storage_driver->open_instance(instance_name);
|
||||
if (!storage_instance) {
|
||||
ast_log(LOG_ERROR, "Failed to open channel storage driver '%s'\n",
|
||||
storage_driver->driver_name);
|
||||
@@ -64,7 +64,7 @@ struct ast_channelstorage_instance *ast_channelstorage_open(
|
||||
|
||||
void ast_channelstorage_close(struct ast_channelstorage_instance *storage_instance)
|
||||
{
|
||||
CHANNELSTORAGE_API(storage_instance, close);
|
||||
CHANNELSTORAGE_API(storage_instance, close_instance);
|
||||
};
|
||||
|
||||
int channelstorage_exten_cb(void *obj, void *arg, void *data, int flags)
|
||||
|
Reference in New Issue
Block a user