Module: kamailio Branch: master Commit: 318c6a068916b478f16702c6f05b16eb8b64ac20 URL: https://github.com/kamailio/kamailio/commit/318c6a068916b478f16702c6f05b16eb...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-04-21T09:15:48+02:00
presence: increased the array size for rpc cleanup doc
- reformatted the static structure for coherence
---
Modified: src/modules/presence/presence.c
---
Diff: https://github.com/kamailio/kamailio/commit/318c6a068916b478f16702c6f05b16eb... Patch: https://github.com/kamailio/kamailio/commit/318c6a068916b478f16702c6f05b16eb...
---
diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c index dd9b43f3ea..c0e1912ecd 100644 --- a/src/modules/presence/presence.c +++ b/src/modules/presence/presence.c @@ -1780,7 +1780,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 @@ -1822,7 +1824,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) @@ -1837,18 +1841,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) {