]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
make ari-stubs so doc periodic jobs can run
authorGeorge Joseph <gjoseph@digium.com>
Mon, 17 Apr 2017 00:54:31 +0000 (18:54 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 17 Apr 2017 00:54:52 +0000 (18:54 -0600)
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

res/res_ari_applications.c
res/res_ari_asterisk.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_ari_device_states.c
res/res_ari_endpoints.c
res/res_ari_events.c
res/res_ari_mailboxes.c
res/res_ari_playbacks.c
res/res_ari_recordings.c
res/res_ari_sounds.c

index ac2c3ba426bb35b9fda4713f3ac1f783e322697c..cb12e84c8cfc37552c647c03f96edc8c410e2891 100644 (file)
@@ -492,19 +492,24 @@ static struct stasis_rest_handlers applications = {
        .children = { &applications_applicationName, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&applications);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&applications);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&applications);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Stasis application resources",
index b1680e300a8a1b02d845e214e683d6e6ba5d43c9..1a574aaaf526da791a2bc6dc6056978ac11d51fc 100644 (file)
@@ -1213,19 +1213,24 @@ static struct stasis_rest_handlers asterisk = {
        .children = { &asterisk_config,&asterisk_info,&asterisk_modules,&asterisk_logging,&asterisk_variable, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&asterisk);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&asterisk);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&asterisk);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Asterisk resources",
index 2889c15152ab8f5419eea659ee7c7358ed47b701..69d4d6ed5da3213c4fcd799aa5d169bac4e61a01 100644 (file)
@@ -1405,19 +1405,24 @@ static struct stasis_rest_handlers bridges = {
        .children = { &bridges_bridgeId, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&bridges);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&bridges);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&bridges);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Bridge resources",
index fca0cef05d48f99870b9ba8f75a757812fdb5953..f59f2063463e13fd862b6707041959d078c5f309 100644 (file)
@@ -2469,19 +2469,24 @@ static struct stasis_rest_handlers channels = {
        .children = { &channels_channelId, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&channels);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&channels);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&channels);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Channel resources",
index cf0b7a9896541c81d08d373e9c064633fea10b83..a3711e6ebf94575997b82559ae17dbed2545bf8a 100644 (file)
@@ -323,19 +323,24 @@ static struct stasis_rest_handlers deviceStates = {
        .children = { &deviceStates_deviceName, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&deviceStates);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&deviceStates);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&deviceStates);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Device state resources",
index 4a5ddd9e2c0f9c5284e46b72e405d505842bdcd4..43d25589833f418600cf2f23066d54598fcb9273 100644 (file)
@@ -447,19 +447,24 @@ static struct stasis_rest_handlers endpoints = {
        .children = { &endpoints_sendMessage,&endpoints_tech, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&endpoints);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&endpoints);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&endpoints);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Endpoint resources",
index 461b3140472d75b5ba1b7078a2283aad06f4a2f8..fd208c57bcc045b8d411adf7f63866964128a876 100644 (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;
index 8e0648b8ab266872e855b1e4f9122d45b90057a1..f85541cf0428edea1149fe8c5ee4e29f7e6737c2 100644 (file)
@@ -329,19 +329,24 @@ static struct stasis_rest_handlers mailboxes = {
        .children = { &mailboxes_mailboxName, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&mailboxes);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&mailboxes);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&mailboxes);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Mailboxes resources",
index a0ebd66a3817f1d9533331fe9b8eee11499729b0..25e211c55177263cbeb8b031c461a16038e38950 100644 (file)
@@ -281,19 +281,24 @@ static struct stasis_rest_handlers playbacks = {
        .children = { &playbacks_playbackId, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&playbacks);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&playbacks);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&playbacks);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Playback control resources",
index bdcf676811377f270b988103a17d4150d3b8c98b..29720a84aa17920e7b02e43310b31569c2b7f181 100644 (file)
@@ -797,19 +797,24 @@ static struct stasis_rest_handlers recordings = {
        .children = { &recordings_stored,&recordings_live, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&recordings);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&recordings);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&recordings);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Recording resources",
index 48fa204c5287fdd534926c2133740a7b9bbbdc7d..6d09d2cbe0418de82338d8cc283e0c18dd6b1f0f 100644 (file)
@@ -211,19 +211,24 @@ static struct stasis_rest_handlers sounds = {
        .children = { &sounds_soundId, }
 };
 
+static int unload_module(void)
+{
+       ast_ari_remove_handler(&sounds);
+       stasis_app_unref();
+       return 0;
+}
+
 static int load_module(void)
 {
        int res = 0;
        stasis_app_ref();
        res |= ast_ari_add_handler(&sounds);
-       return res;
-}
+       if (res) {
+               unload_module();
+               return AST_MODULE_LOAD_DECLINE;
+       }
 
-static int unload_module(void)
-{
-       ast_ari_remove_handler(&sounds);
-       stasis_app_unref();
-       return 0;
+       return AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - Sound resources",