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

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

ndb_cassandra: reformat exported structures

---

Modified: src/modules/ndb_cassandra/ndb_cassandra.c

---

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

---

diff --git a/src/modules/ndb_cassandra/ndb_cassandra.c 
b/src/modules/ndb_cassandra/ndb_cassandra.c
index eb748c914f9..7de3d608fda 100644
--- a/src/modules/ndb_cassandra/ndb_cassandra.c
+++ b/src/modules/ndb_cassandra/ndb_cassandra.c
@@ -65,31 +65,39 @@ static int cass_insert_f(struct sip_msg *msg, char 
*keyspace,
 static int cass_retrieve_f(struct sip_msg *msg, char *keyspace,
                char *column_family, char *key, char *column, char *value);
 
+/* clang-format off */
 /* Exported functions */
 static cmd_export_t cmds[] = {
-               {"cass_insert", (cmd_function)cass_insert_f, 5, 
fixup_cass_insert, 0,
-                               REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | 
BRANCH_ROUTE},
-               {"cass_retrieve", (cmd_function)cass_retrieve_f, 5, 
fixup_cass_retrieve,
-                               free_fixup_cass_retrieve,
-                               REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | 
BRANCH_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
+       {"cass_insert", (cmd_function)cass_insert_f, 5,
+               fixup_cass_insert, 0,
+               REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {"cass_retrieve", (cmd_function)cass_retrieve_f, 5,
+               fixup_cass_retrieve, free_fixup_cass_retrieve,
+               REQUEST_ROUTE | ONREPLY_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 /* Exported parameters */
 static param_export_t params[] = {
-               {"host", PARAM_STR, &host}, {"port", PARAM_INT, &port}, {0, 0, 
0}};
+       {"host", PARAM_STR, &host},
+       {"port", PARAM_INT, &port},
+       {0, 0, 0}
+};
 
 /* Module interface */
 struct module_exports exports = {
-               "ndb_cassandra", DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds,                                                     /* 
Exported functions */
-               params,                                                   /* 
Exported parameters */
-               0,                                                              
  /* exported RPC methods */
-               0,                                                              
  /* exported pseudo-variables */
-               0,                                                              
  /* response function*/
-               mod_init,                                                 /* 
module initialization function */
-               child_init,                                               /* 
per-child init function */
-               destroy                                                   /* 
destroy function */
+       "ndb_cassandra",
+       DEFAULT_DLFLAGS, /* dlopen flags */
+       cmds,            /* Exported functions */
+       params,          /* Exported parameters */
+       0,               /* exported RPC methods */
+       0,               /* exported pseudo-variables */
+       0,               /* response function*/
+       mod_init,        /* module initialization function */
+       child_init,      /* per-child init function */
+       destroy          /* 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