diff options
author | Corey Farrell <git@cfware.com> | 2015-05-04 17:41:08 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-05-04 20:47:18 -0400 |
commit | df6c1d755f39308c77f3c49ef0f5fa539e627330 (patch) | |
tree | 21f12dd8173c44ce1caa6f3797be062910db2b55 /utils/clicompat.c | |
parent | a8bfa9e10445744581d18819c64729844ae837fb (diff) |
CLI: Enable automatic references to modules.
* Pass module to ast_cli_register and ast_cli_register_multiple.
* Add a module reference before executing any CLI callback, remove
the reference when complete.
ASTERISK-25049 #close
Reported by: Corey Farrell
Change-Id: I7aafc7c9f2b912918f28fe51d51e9e8a755750e3
Diffstat (limited to 'utils/clicompat.c')
-rw-r--r-- | utils/clicompat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/clicompat.c b/utils/clicompat.c index d25a7102e..426dd5cde 100644 --- a/utils/clicompat.c +++ b/utils/clicompat.c @@ -21,8 +21,8 @@ int ast_register_cleanup(void (*func)(void)) return 0; } -int ast_cli_register_multiple(struct ast_cli_entry *e, int len); -int ast_cli_register_multiple(struct ast_cli_entry *e, int len) +int __ast_cli_register_multiple(struct ast_cli_entry *e, int len); +int __ast_cli_register_multiple(struct ast_cli_entry *e, int len) { return 0; } |