make ari-stubs so doc periodic jobs can run

The periodic doc job does a make ari-stubs and checks that
there are no changes before generating the docs.  Since I changed
the mustache template (and the generated code directly) recently
and forgot to regenerate the stubs, the doc job thinks they're out
of date.

Change-Id: Ibd4bc649556615ff714d44534c45b6c2f6aa449d
This commit is contained in:
George Joseph
2017-04-16 18:54:31 -06:00
parent 5e2a8ef94a
commit 4ccaffe644
11 changed files with 130 additions and 81 deletions

View File

@@ -1405,14 +1405,6 @@ static struct stasis_rest_handlers bridges = {
.children = { &bridges_bridgeId, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&bridges);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&bridges);
@@ -1420,6 +1412,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&bridges);
if (res) {
unload_module();
return AST_MODULE_LOAD_DECLINE;
}
return AST_MODULE_LOAD_SUCCESS;
}
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Bridge resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,