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

@@ -492,14 +492,6 @@ static struct stasis_rest_handlers applications = {
.children = { &applications_applicationName, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&applications);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&applications);
@@ -507,6 +499,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&applications);
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 - Stasis application resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -1213,14 +1213,6 @@ static struct stasis_rest_handlers asterisk = {
.children = { &asterisk_config,&asterisk_info,&asterisk_modules,&asterisk_logging,&asterisk_variable, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&asterisk);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&asterisk);
@@ -1228,6 +1220,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&asterisk);
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 - Asterisk resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

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,

View File

@@ -2469,14 +2469,6 @@ static struct stasis_rest_handlers channels = {
.children = { &channels_channelId, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&channels);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&channels);
@@ -2484,6 +2476,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&channels);
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 - Channel resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -323,14 +323,6 @@ static struct stasis_rest_handlers deviceStates = {
.children = { &deviceStates_deviceName, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&deviceStates);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&deviceStates);
@@ -338,6 +330,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&deviceStates);
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 - Device state resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -447,14 +447,6 @@ static struct stasis_rest_handlers endpoints = {
.children = { &endpoints_sendMessage,&endpoints_tech, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&endpoints);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&endpoints);
@@ -462,6 +454,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&endpoints);
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 - Endpoint resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -448,7 +448,6 @@ static int load_module(void)
res |= ast_websocket_server_add_protocol2(events.ws_server, protocol);
stasis_app_ref();
res |= ast_ari_add_handler(&events);
if (res) {
unload_module();
return AST_MODULE_LOAD_DECLINE;

View File

@@ -329,14 +329,6 @@ static struct stasis_rest_handlers mailboxes = {
.children = { &mailboxes_mailboxName, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&mailboxes);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&mailboxes);
@@ -344,6 +336,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&mailboxes);
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 - Mailboxes resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -281,14 +281,6 @@ static struct stasis_rest_handlers playbacks = {
.children = { &playbacks_playbackId, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&playbacks);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&playbacks);
@@ -296,6 +288,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&playbacks);
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 - Playback control resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -797,14 +797,6 @@ static struct stasis_rest_handlers recordings = {
.children = { &recordings_stored,&recordings_live, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&recordings);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&recordings);
@@ -812,6 +804,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&recordings);
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 - Recording resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,

View File

@@ -211,14 +211,6 @@ static struct stasis_rest_handlers sounds = {
.children = { &sounds_soundId, }
};
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&sounds);
return res;
}
static int unload_module(void)
{
ast_ari_remove_handler(&sounds);
@@ -226,6 +218,19 @@ static int unload_module(void)
return 0;
}
static int load_module(void)
{
int res = 0;
stasis_app_ref();
res |= ast_ari_add_handler(&sounds);
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 - Sound resources",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,