Module: kamailio
Branch: 5.3
Commit: 5b44b60173cb8c5415144b88090ee0f9884f8f76
URL:
https://github.com/kamailio/kamailio/commit/5b44b60173cb8c5415144b88090ee0f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-01T09:51:20+02:00
presence: increased the array size for rpc cleanup doc
- reformatted the static structure for coherence
(cherry picked from commit 318c6a068916b478f16702c6f05b16eb8b64ac20)
---
Modified: src/modules/presence/presence.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5b44b60173cb8c5415144b88090ee0f…
Patch:
https://github.com/kamailio/kamailio/commit/5b44b60173cb8c5415144b88090ee0f…
---
diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c
index 9679501fe2..3e7185c956 100644
--- a/src/modules/presence/presence.c
+++ b/src/modules/presence/presence.c
@@ -1725,7 +1725,9 @@ void rpc_presence_refresh_watchers(rpc_t *rpc, void *ctx)
}
static const char *rpc_presence_refresh_watchers_doc[2] = {
- "Trigger refresh of watchers", 0};
+ "Trigger refresh of watchers",
+ 0
+};
/*! \brief
* rpc cmd: presence.updateWatchers
@@ -1767,7 +1769,9 @@ void rpc_presence_update_watchers(rpc_t *rpc, void *ctx)
}
static const char *rpc_presence_update_watchers_doc[2] = {
- "Trigger update of watchers", 0};
+ "Trigger update of watchers",
+ 0
+};
void rpc_presence_cleanup(rpc_t *rpc, void *c)
@@ -1782,18 +1786,21 @@ void rpc_presence_cleanup(rpc_t *rpc, void *c)
return;
}
-static const char *rpc_presence_cleanup_doc[2] = {
- "Manually triggers the cleanup functions for the active_watchers, "
- "presentity, and watchers tables.",
- 0};
+static const char *rpc_presence_cleanup_doc[3] = {
+ "Manually triggers the cleanup functions for the active_watchers, "
+ "presentity, and watchers tables.",
+ 0
+};
+
rpc_export_t presence_rpc[] = {
- {"presence.cleanup", rpc_presence_cleanup, rpc_presence_cleanup_doc, 0},
- {"presence.refreshWatchers", rpc_presence_refresh_watchers,
- rpc_presence_refresh_watchers_doc, 0},
- {"presence.updateWatchers", rpc_presence_update_watchers,
- rpc_presence_update_watchers_doc, 0},
- {0, 0, 0, 0}};
+ {"presence.cleanup", rpc_presence_cleanup, rpc_presence_cleanup_doc, 0},
+ {"presence.refreshWatchers", rpc_presence_refresh_watchers,
+ rpc_presence_refresh_watchers_doc, 0},
+ {"presence.updateWatchers", rpc_presence_update_watchers,
+ rpc_presence_update_watchers_doc, 0},
+ {0, 0, 0, 0}
+};
static int presence_init_rpc(void)
{