mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
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
This commit is contained in:
@@ -605,9 +605,9 @@ struct ast_context *ast_context_find_or_create(struct ast_context **extcontexts,
|
||||
return localized_context_find_or_create(extcontexts, exttable, name, registrar);
|
||||
}
|
||||
|
||||
void ast_cli_register_multiple(void);
|
||||
void __ast_cli_register_multiple(void);
|
||||
|
||||
void ast_cli_register_multiple(void)
|
||||
void __ast_cli_register_multiple(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user