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:
George Joseph
2025-07-08 05:42:51 -06:00
parent abdfb5aa87
commit ca7db896e5
4 changed files with 8 additions and 8 deletions

View File

@@ -388,7 +388,7 @@ static void close_instance(struct ast_channelstorage_instance *driver)
static struct ast_channelstorage_instance channelstorage_instance = {
.handle = NULL,
.lock_handle = NULL,
.close = close_instance,
.close_instance = close_instance,
.insert = insert_channel,
.remove = delete_channel,
.rdlock = rdlock,
@@ -446,7 +446,7 @@ static struct ast_channelstorage_instance* get_instance(const char *name)
static struct ast_channelstorage_driver driver_type = {
.driver_name = "cpp_map_name_id",
.open = get_instance,
.open_instance = get_instance,
};
static void __attribute__((constructor)) __startup(void)