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

Author: Federico Cabiddu <federico.cabi...@gmail.com>
Committer: Federico Cabiddu <federico.cabi...@gmail.com>
Date: 2024-12-04T09:25:57+01:00

lost: reformat exported structures

---

Modified: src/modules/lost/lost.c

---

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

---

diff --git a/src/modules/lost/lost.c b/src/modules/lost/lost.c
index 13091d9ffc6..692ce57be7f 100644
--- a/src/modules/lost/lost.c
+++ b/src/modules/lost/lost.c
@@ -100,50 +100,54 @@ static int w_lost_query(
 static int w_lost_query_all(struct sip_msg *_m, char *_con, char *_pidf,
                char *_urn, char *_uri, char *_name, char *_err);
 
+/* clang-format off */
 /* Exported functions */
 static cmd_export_t cmds[] = {
-               {"lost_held_query", (cmd_function)w_lost_held_query, 4,
-                               fixup_lost_held_query, 
fixup_free_lost_held_query,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
-               {"lost_held_query", (cmd_function)w_lost_held_query_id, 5,
-                               fixup_lost_held_query_id, 
fixup_free_lost_held_query_id,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
-               {"lost_held_dereference", (cmd_function)w_lost_held_deref, 5,
-                               fixup_lost_held_deref, 
fixup_free_lost_held_deref,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
-               {"lost_query", (cmd_function)w_lost_query, 4, fixup_lost_query,
-                               fixup_free_lost_query,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
-               {"lost_query", (cmd_function)w_lost_query_all, 6, 
fixup_lost_query_all,
-                               fixup_free_lost_query_all,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
+       {"lost_held_query", (cmd_function)w_lost_held_query, 4,
+                       fixup_lost_held_query, fixup_free_lost_held_query,
+                       REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {"lost_held_query", (cmd_function)w_lost_held_query_id, 5,
+                       fixup_lost_held_query_id, fixup_free_lost_held_query_id,
+                       REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {"lost_held_dereference", (cmd_function)w_lost_held_deref, 5,
+                       fixup_lost_held_deref, fixup_free_lost_held_deref,
+                       REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {"lost_query", (cmd_function)w_lost_query, 4, fixup_lost_query,
+                       fixup_free_lost_query,
+                       REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {"lost_query", (cmd_function)w_lost_query_all, 6, fixup_lost_query_all,
+                       fixup_free_lost_query_all,
+                       REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 /* Exported parameters */
 static param_export_t params[] = {{"exact_type", PARAM_INT, &held_exact_type},
-               {"response_time", PARAM_INT, &held_resp_time},
-               {"post_request", PARAM_INT, &held_post_req},
-               {"location_type", PARAM_STR, &held_loc_type},
-               {"recursion", PARAM_INT, &lost_recursion},
-               {"location_profile", PARAM_INT, &lost_profile},
-               {"location_3d", PARAM_INT, &lost_geoloc_3d},
-               {"verbose", PARAM_INT, &lost_verbose},
-               {"geoheader_type", PARAM_INT, &lost_geoloc_type},
-               {"geoheader_order", PARAM_INT, &lost_geoloc_order}, {0, 0, 0}};
+       {"response_time", PARAM_INT, &held_resp_time},
+       {"post_request", PARAM_INT, &held_post_req},
+       {"location_type", PARAM_STR, &held_loc_type},
+       {"recursion", PARAM_INT, &lost_recursion},
+       {"location_profile", PARAM_INT, &lost_profile},
+       {"location_3d", PARAM_INT, &lost_geoloc_3d},
+       {"verbose", PARAM_INT, &lost_verbose},
+       {"geoheader_type", PARAM_INT, &lost_geoloc_type},
+       {"geoheader_order", PARAM_INT, &lost_geoloc_order}, {0, 0, 0}
+};
 
 /* Module interface */
 struct module_exports exports = {
-               "lost",                  /* 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 */
-               child_init,              /* per-child init function */
-               destroy                  /* module destroy function */
+       "lost",                  /* 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 */
+       child_init,              /* per-child init function */
+       destroy                  /* module destroy function */
 };
+/* clang-format on */
 
 /* Module initialization function */
 static int mod_init(void)

_______________________________________________
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