[asterisk-commits] make ari-stubs so doc periodic jobs can run (asterisk[14])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 20 07:16:15 CDT 2017
George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/5494 )
Change subject: make ari-stubs so doc periodic jobs can run
......................................................................
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: I5b47094b3480ed6a952efe7d45a77111d89b6eca
---
M res/res_ari_applications.c
M res/res_ari_asterisk.c
M res/res_ari_bridges.c
M res/res_ari_channels.c
M res/res_ari_device_states.c
M res/res_ari_endpoints.c
M res/res_ari_events.c
M res/res_ari_mailboxes.c
M res/res_ari_playbacks.c
M res/res_ari_recordings.c
M res/res_ari_sounds.c
11 files changed, 130 insertions(+), 81 deletions(-)
Approvals:
Mark Michelson: Looks good to me, approved
George Joseph: Looks good to me, approved; Verified
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
diff --git a/res/res_ari_applications.c b/res/res_ari_applications.c
index f2b5b8e..478a258 100644
--- a/res/res_ari_applications.c
+++ b/res/res_ari_applications.c
@@ -492,14 +492,6 @@
.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 @@
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,
diff --git a/res/res_ari_asterisk.c b/res/res_ari_asterisk.c
index ae3f10f..f81f647 100644
--- a/res/res_ari_asterisk.c
+++ b/res/res_ari_asterisk.c
@@ -1213,14 +1213,6 @@
.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 @@
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,
diff --git a/res/res_ari_bridges.c b/res/res_ari_bridges.c
index 96aa951..305e70f 100644
--- a/res/res_ari_bridges.c
+++ b/res/res_ari_bridges.c
@@ -1539,14 +1539,6 @@
.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);
@@ -1554,6 +1546,19 @@
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,
diff --git a/res/res_ari_channels.c b/res/res_ari_channels.c
index 6a64552..64acfa9 100644
--- a/res/res_ari_channels.c
+++ b/res/res_ari_channels.c
@@ -2843,14 +2843,6 @@
.children = { &channels_create,&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);
@@ -2858,6 +2850,19 @@
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,
diff --git a/res/res_ari_device_states.c b/res/res_ari_device_states.c
index 3e8dc0f..678e40c 100644
--- a/res/res_ari_device_states.c
+++ b/res/res_ari_device_states.c
@@ -323,14 +323,6 @@
.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 @@
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,
diff --git a/res/res_ari_endpoints.c b/res/res_ari_endpoints.c
index 1843b6d..eee1c84 100644
--- a/res/res_ari_endpoints.c
+++ b/res/res_ari_endpoints.c
@@ -447,14 +447,6 @@
.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 @@
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,
diff --git a/res/res_ari_events.c b/res/res_ari_events.c
index 832708f..42862b6 100644
--- a/res/res_ari_events.c
+++ b/res/res_ari_events.c
@@ -456,7 +456,6 @@
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;
diff --git a/res/res_ari_mailboxes.c b/res/res_ari_mailboxes.c
index 7b384ce..2f6e752 100644
--- a/res/res_ari_mailboxes.c
+++ b/res/res_ari_mailboxes.c
@@ -329,14 +329,6 @@
.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 @@
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,
diff --git a/res/res_ari_playbacks.c b/res/res_ari_playbacks.c
index 1cbd3e3..2329bb0 100644
--- a/res/res_ari_playbacks.c
+++ b/res/res_ari_playbacks.c
@@ -281,14 +281,6 @@
.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 @@
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,
diff --git a/res/res_ari_recordings.c b/res/res_ari_recordings.c
index a6e9a09..4d8bc6f 100644
--- a/res/res_ari_recordings.c
+++ b/res/res_ari_recordings.c
@@ -865,14 +865,6 @@
.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);
@@ -880,6 +872,19 @@
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,
diff --git a/res/res_ari_sounds.c b/res/res_ari_sounds.c
index b7f2e35..c4a5837 100644
--- a/res/res_ari_sounds.c
+++ b/res/res_ari_sounds.c
@@ -211,14 +211,6 @@
.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 @@
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,
--
To view, visit https://gerrit.asterisk.org/5494
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5b47094b3480ed6a952efe7d45a77111d89b6eca
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-commits
mailing list