]> 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:58:27 +0000 (18:58 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 17 Apr 2017 00:58:27 +0000 (18:58 -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: I5b47094b3480ed6a952efe7d45a77111d89b6eca

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 f2b5b8e52aeaa8d68e8adf1f340b94650f0e71d0..478a2581e0835ee144d19c9d248235ff34e013d1 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 ae3f10f3af3a3174e1712981bcde58784798865a..f81f647b1f81631e9ba6397501c18cbd19a65a7f 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 96aa951b5d3466473becf4e79f4272430a10c657..305e70f0d204ca7caf626916e6040e481f6f66e2 100644 (file)
@@ -1539,19 +1539,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 6a64552e0d6b642b53371d2bf6b358def91879b6..64acfa951b58cf6691ef7124a11fa8608bec3afa 100644 (file)
@@ -2843,19 +2843,24 @@ static struct stasis_rest_handlers channels = {
        .children = { &channels_create,&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 3e8dc0f14933d1e581e5a790c875d76395fc4d04..678e40c7147b9113659c6f8a4a16d0e2935bd938 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 1843b6d2f82b8956cadb7c663882098e074f5680..eee1c84b81164b5e12e4c7719a75f705106189a0 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 832708f4d8d293de90f2980f8f9fb2fa7bfd4f55..42862b6dc03255d6d7fb47dac55a639548336030 100644 (file)
@@ -456,7 +456,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 7b384cebf70eb6cb9999c6e553989057dcee0b42..2f6e752123b24a610b584b38ad22667a9d612112 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 1cbd3e30713586171e32ceebde5e68c73bad3755..2329bb0c21ec2a85db060b20eba6febd94540760 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 a6e9a095482f5038fefe1bad224ac3a2d4ac07d4..4d8bc6f9bdcc1c9972249cdd61c7bfcc0894972c 100644 (file)
@@ -865,19 +865,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 b7f2e359bc1d83ad41ba14301e362e5d03700a3a..c4a5837715cc7f46147703d6694181658ac9bca9 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",