Module: kamailio Branch: master Commit: fcf8454c982c09c6cc89669b7327d000b5c154d9 URL: https://github.com/kamailio/kamailio/commit/fcf8454c982c09c6cc89669b7327d000b5c154d9
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-11-22T11:05:03+01:00 rtimer: reformat exported structures --- Modified: src/modules/rtimer/rtimer_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/fcf8454c982c09c6cc89669b7327d000b5c154d9.diff Patch: https://github.com/kamailio/kamailio/commit/fcf8454c982c09c6cc89669b7327d000b5c154d9.patch --- diff --git a/src/modules/rtimer/rtimer_mod.c b/src/modules/rtimer/rtimer_mod.c index b5b122a6829..5d2249106d4 100644 --- a/src/modules/rtimer/rtimer_mod.c +++ b/src/modules/rtimer/rtimer_mod.c @@ -80,27 +80,34 @@ void stm_main_timer_exec(unsigned int ticks, void *param); int stm_get_worker(struct sip_msg *msg, pv_param_t *param, pv_value_t *res); static int default_interval = 120; - +/* clang-format off */ static pv_export_t rtimer_pvs[] = { - {{"rtimer_worker", (sizeof("rtimer_worker") - 1)}, PVT_OTHER, - stm_get_worker, 0, 0, 0, 0, 0}, - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; + {{"rtimer_worker", (sizeof("rtimer_worker") - 1)}, PVT_OTHER, + stm_get_worker, 0, 0, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0} +}; static param_export_t params[] = { - {"default_interval", PARAM_INT, &default_interval}, - {"timer", PARAM_STRING | PARAM_USE_FUNC, (void *)stm_t_param}, - {"exec", PARAM_STRING | PARAM_USE_FUNC, (void *)stm_e_param}, - {0, 0, 0}}; - + {"default_interval", PARAM_INT, &default_interval}, + {"timer", PARAM_STRING | PARAM_USE_FUNC, (void *)stm_t_param}, + {"exec", PARAM_STRING | PARAM_USE_FUNC, (void *)stm_e_param}, + {0, 0, 0} +}; /** module exports */ -struct module_exports exports = {"rtimer", DEFAULT_DLFLAGS, /* dlopen flags */ - 0, params, 0, /* exported RPC methods */ - rtimer_pvs, /* exported pseudo-variables */ - 0, mod_init, /* module initialization function */ - child_init, /* per-child init function */ - 0}; - +struct module_exports exports = { + "rtimer", + DEFAULT_DLFLAGS, /* dlopen flags */ + 0, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + rtimer_pvs, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + child_init, /* 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!