Przeglądaj źródła

presence_conference: reformat exported structures

Victor Seva 9 miesięcy temu
rodzic
commit
c28bd51076
1 zmienionych plików z 22 dodań i 16 usunięć
  1. 22 16
      src/modules/presence_conference/presence_conference.c

+ 22 - 16
src/modules/presence_conference/presence_conference.c

@@ -51,30 +51,36 @@ add_event_t pres_add_event;
 int use_partial_states = 0;
 unsigned int pres_conf_default_expires = 3600;
 
+/* presence api bind structure */
+presence_api_t pres;
+
+/* clang-format off */
 /* 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 */
 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 */
 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