diff options
author | Corey Farrell <git@cfware.com> | 2015-05-04 15:26:37 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-05-04 20:47:01 -0400 |
commit | a8bfa9e10445744581d18819c64729844ae837fb (patch) | |
tree | ea238e819c3440409df3027cd3c703394753c015 /main/parking.c | |
parent | ce21776aae2866f3c611f172c4d38fb53e806dcf (diff) |
Modules: Make ast_module_info->self available to auxiliary sources.
ast_module_info->self is often needed to register items with the core. Many
modules have ad-hoc code to make this pointer available to auxiliary sources.
This change updates the module build process to make the needed information
available to all sources in a module.
ASTERISK-25056 #close
Reported by: Corey Farrell
Change-Id: I18c8cd58fbcb1b708425f6757becaeca9fa91815
Diffstat (limited to 'main/parking.c')
-rw-r--r-- | main/parking.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/main/parking.c b/main/parking.c index 25fdfe8f3..61a48960d 100644 --- a/main/parking.c +++ b/main/parking.c @@ -134,8 +134,8 @@ int ast_parking_park_bridge_channel(struct ast_bridge_channel *parkee, const cha return -1; } - if (table->module_info) { - SCOPED_MODULE_USE(table->module_info->self); + if (table->module) { + SCOPED_MODULE_USE(table->module); return table->parking_park_bridge_channel(parkee, parkee_uuid, parker_uuid, app_data); } @@ -153,8 +153,8 @@ int ast_parking_blind_transfer_park(struct ast_bridge_channel *parker, return -1; } - if (table->module_info) { - SCOPED_MODULE_USE(table->module_info->self); + if (table->module) { + SCOPED_MODULE_USE(table->module); return table->parking_blind_transfer_park(parker, context, exten, parked_channel_cb, parked_channel_data); } @@ -170,8 +170,8 @@ int ast_parking_park_call(struct ast_bridge_channel *parker, char *exten, size_t return -1; } - if (table->module_info) { - SCOPED_MODULE_USE(table->module_info->self); + if (table->module) { + SCOPED_MODULE_USE(table->module); return table->parking_park_call(parker, exten, length); } @@ -187,8 +187,8 @@ int ast_parking_is_exten_park(const char *context, const char *exten) return -1; } - if (table->module_info) { - SCOPED_MODULE_USE(table->module_info->self); + if (table->module) { + SCOPED_MODULE_USE(table->module); return table->parking_is_exten_park(context, exten); } |