Module: kamailio
Branch: master
Commit: ec783503d3672a7c395894382de52e50f5fb8b91
URL:
https://github.com/kamailio/kamailio/commit/ec783503d3672a7c395894382de52e5…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-20T13:41:42+01:00
uuid_gflags: reformat exported structures
---
Modified: src/modules/uid_gflags/uid_gflags.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ec783503d3672a7c395894382de52e5…
Patch:
https://github.com/kamailio/kamailio/commit/ec783503d3672a7c395894382de52e5…
---
diff --git a/src/modules/uid_gflags/uid_gflags.c b/src/modules/uid_gflags/uid_gflags.c
index a61c66497e5..9e56845c869 100644
--- a/src/modules/uid_gflags/uid_gflags.c
+++ b/src/modules/uid_gflags/uid_gflags.c
@@ -77,39 +77,40 @@ static avp_list_t *avps_1;
static avp_list_t *avps_2;
static rpc_export_t rpc_methods[];
+/* clang-format off */
static cmd_export_t cmds[] = {
- {"set_ugflag", set_gflag, 1, fixup_int_1, 0,
- REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
- {"reset_ugflag", reset_gflag, 1, fixup_int_1, 0,
- REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
- {"is_ugflag", is_gflag, 1, fixup_int_1, 0,
- REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
- {"flush_ugflags", flush_gflags, 0, 0, 0,
- REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
- {0, 0, 0, 0, 0, 0}};
-
-static param_export_t params[] = {{"initial", PARAM_INT, &initial},
- {"db_url", PARAM_STRING, &db_url},
- {"load_global_attrs", PARAM_INT, &load_global_attrs},
- {"global_attrs_table", PARAM_STRING, &attr_table},
- {"global_attrs_name", PARAM_STRING, &attr_name},
- {"global_attrs_type", PARAM_STRING, &attr_type},
- {"global_attrs_value", PARAM_STRING, &attr_value},
- {"global_attrs_flags", PARAM_STRING, &attr_flags}, {0, 0, 0}};
+ {"set_ugflag", set_gflag, 1, fixup_int_1, 0, REQUEST_ROUTE | FAILURE_ROUTE |
ONREPLY_ROUTE},
+ {"reset_ugflag", reset_gflag, 1, fixup_int_1, 0, REQUEST_ROUTE | FAILURE_ROUTE
| ONREPLY_ROUTE},
+ {"is_ugflag", is_gflag, 1, fixup_int_1, 0, REQUEST_ROUTE | FAILURE_ROUTE |
ONREPLY_ROUTE},
+ {"flush_ugflags", flush_gflags, 0, 0, 0, REQUEST_ROUTE | FAILURE_ROUTE |
ONREPLY_ROUTE},
+ {0, 0, 0, 0, 0, 0}
+};
-struct module_exports exports = {
- "uid_gflags", /* module name */
- DEFAULT_DLFLAGS, /* dlopen flags */
- cmds, /* exported functions */
- params, /* exported parameters */
- rpc_methods, /* exported RPC methods */
- 0, /* exported pseudo-variables */
- 0, /* response handling function*/
- mod_init, /* module init function */
- child_init, /* per-child init function */
- mod_destroy /* module destroy function */
+static param_export_t params[] = {
+ {"initial", PARAM_INT, &initial},
+ {"db_url", PARAM_STRING, &db_url},
+ {"load_global_attrs", PARAM_INT, &load_global_attrs},
+ {"global_attrs_table", PARAM_STRING, &attr_table},
+ {"global_attrs_name", PARAM_STRING, &attr_name},
+ {"global_attrs_type", PARAM_STRING, &attr_type},
+ {"global_attrs_value", PARAM_STRING, &attr_value},
+ {"global_attrs_flags", PARAM_STRING, &attr_flags},
+ {0, 0, 0}
};
+struct module_exports exports = {
+ "uid_gflags", /* module name */
+ DEFAULT_DLFLAGS, /* dlopen flags */
+ cmds, /* exported functions */
+ params, /* exported parameters */
+ rpc_methods, /* exported RPC methods */
+ 0, /* exported pseudo-variables */
+ 0, /* response handling function*/
+ mod_init, /* module init function */
+ child_init, /* per-child init function */
+ mod_destroy /* module destroy function */
+};
+/* clang-format on */
static int init_db(void)
{