|
@@ -51,30 +51,36 @@ add_event_t pres_add_event;
|
|
int use_partial_states = 0;
|
|
int use_partial_states = 0;
|
|
unsigned int pres_conf_default_expires = 3600;
|
|
unsigned int pres_conf_default_expires = 3600;
|
|
|
|
|
|
|
|
+/* presence api bind structure */
|
|
|
|
+presence_api_t pres;
|
|
|
|
+
|
|
|
|
+/* clang-format off */
|
|
/* module exported commands */
|
|
/* module exported commands */
|
|
-static cmd_export_t cmds[] = {{0, 0, 0, 0, 0, 0}};
|
|
|
|
|
|
+static cmd_export_t cmds[] = {
|
|
|
|
+ {0, 0, 0, 0, 0, 0}
|
|
|
|
+};
|
|
|
|
|
|
/* module exported parameters */
|
|
/* module exported parameters */
|
|
static param_export_t params[] = {
|
|
static param_export_t params[] = {
|
|
- {"use_partial_states", PARAM_INT, &use_partial_states},
|
|
|
|
- {"default_expires", PARAM_INT, &pres_conf_default_expires}, {0, 0, 0}};
|
|
|
|
-
|
|
|
|
-/* presence api bind structure */
|
|
|
|
-presence_api_t pres;
|
|
|
|
|
|
+ {"use_partial_states", PARAM_INT, &use_partial_states},
|
|
|
|
+ {"default_expires", PARAM_INT, &pres_conf_default_expires},
|
|
|
|
+ {0, 0, 0}
|
|
|
|
+};
|
|
|
|
|
|
/* module exports */
|
|
/* module exports */
|
|
struct module_exports exports = {
|
|
struct module_exports exports = {
|
|
- "presence_conference", /* module name */
|
|
|
|
- DEFAULT_DLFLAGS, /* dlopen flags */
|
|
|
|
- cmds, /* exported functions */
|
|
|
|
- params, /* exported parameters */
|
|
|
|
- 0, /* RPC method exports */
|
|
|
|
- 0, /* exported pseudo-variables */
|
|
|
|
- 0, /* response handling function */
|
|
|
|
- mod_init, /* module initialization function */
|
|
|
|
- 0, /* per-child init function */
|
|
|
|
- 0 /* module destroy function */
|
|
|
|
|
|
+ "presence_conference", /* module name */
|
|
|
|
+ DEFAULT_DLFLAGS, /* dlopen flags */
|
|
|
|
+ cmds, /* exported functions */
|
|
|
|
+ params, /* exported parameters */
|
|
|
|
+ 0, /* RPC method exports */
|
|
|
|
+ 0, /* exported pseudo-variables */
|
|
|
|
+ 0, /* response handling function */
|
|
|
|
+ mod_init, /* module initialization function */
|
|
|
|
+ 0, /* per-child init function */
|
|
|
|
+ 0 /* module destroy function */
|
|
};
|
|
};
|
|
|
|
+/* clang-format on */
|
|
|
|
|
|
/*
|
|
/*
|
|
* init module function
|
|
* init module function
|