Module: kamailio
Branch: master
Commit: e39420a17a6e1bbd8f1e87d456cc7f50f97781c9
URL: 
https://github.com/kamailio/kamailio/commit/e39420a17a6e1bbd8f1e87d456cc7f50f97781c9

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-12-11T19:16:29+01:00

pua_reginfo: reformat exported structures

---

Modified: src/modules/pua_reginfo/pua_reginfo.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/e39420a17a6e1bbd8f1e87d456cc7f50f97781c9.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e39420a17a6e1bbd8f1e87d456cc7f50f97781c9.patch

---

diff --git a/src/modules/pua_reginfo/pua_reginfo.c 
b/src/modules/pua_reginfo/pua_reginfo.c
index d12b5ed419f..34b9617d597 100644
--- a/src/modules/pua_reginfo/pua_reginfo.c
+++ b/src/modules/pua_reginfo/pua_reginfo.c
@@ -54,34 +54,39 @@ static int domain_fixup(void **param, int param_no);
 /** module functions */
 static int mod_init(void);
 
+/* clang-format off */
 /* Commands */
 static cmd_export_t cmds[] = {
-               {"reginfo_subscribe", (cmd_function)reginfo_subscribe, 1,
-                               fixup_subscribe, 0, REQUEST_ROUTE | 
ONREPLY_ROUTE},
-               {"reginfo_subscribe", (cmd_function)reginfo_subscribe2, 2,
-                               fixup_subscribe, 0, REQUEST_ROUTE | 
ONREPLY_ROUTE},
-               {"reginfo_handle_notify", (cmd_function)reginfo_handle_notify, 
1,
-                               domain_fixup, 0, REQUEST_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
+       {"reginfo_subscribe", (cmd_function)reginfo_subscribe, 1,
+               fixup_subscribe, 0, REQUEST_ROUTE | ONREPLY_ROUTE},
+       {"reginfo_subscribe", (cmd_function)reginfo_subscribe2, 2,
+               fixup_subscribe, 0, REQUEST_ROUTE | ONREPLY_ROUTE},
+       {"reginfo_handle_notify", (cmd_function)reginfo_handle_notify, 1,
+               domain_fixup, 0, REQUEST_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 static param_export_t params[] = {
-               {"default_domain", PARAM_STR, &default_domain},
-               {"outbound_proxy", PARAM_STR, &outbound_proxy},
-               {"server_address", PARAM_STR, &server_address},
-               {"publish_reginfo", PARAM_INT, &publish_reginfo}, {0, 0, 0}};
+       {"default_domain", PARAM_STR, &default_domain},
+       {"outbound_proxy", PARAM_STR, &outbound_proxy},
+       {"server_address", PARAM_STR, &server_address},
+       {"publish_reginfo", PARAM_INT, &publish_reginfo},
+       {0, 0, 0}
+};
 
 struct module_exports exports = {
-               "pua_reginfo",   /* 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 */
+       "pua_reginfo",   /* 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

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to