Skip to content

Commit

Permalink
siputils: add fixup_free* to exported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Nov 21, 2024
1 parent d598d05 commit 1189f48
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/modules/siputils/siputils.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,20 @@ char *contact_flds_separator = DEFAULT_SEPARATOR;
/* clang-format off */
static cmd_export_t cmds[] = {
{"options_reply", (cmd_function)opt_reply, 0, 0, 0, REQUEST_ROUTE},
{"is_user", (cmd_function)is_user, 1, fixup_spve_null, 0,
{"is_user", (cmd_function)is_user, 1, fixup_spve_null, fixup_free_spve_null,
REQUEST_ROUTE | LOCAL_ROUTE},
{"has_totag", (cmd_function)w_has_totag, 0, 0, 0, ANY_ROUTE},
{"uri_param", (cmd_function)uri_param_1, 1, fixup_spve_null, 0,
{"uri_param", (cmd_function)uri_param_1, 1, fixup_spve_null, fixup_free_spve_null,
REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE},
{"uri_param", (cmd_function)uri_param_2, 2, fixup_spve_spve, 0,
{"uri_param", (cmd_function)uri_param_2, 2, fixup_spve_spve, fixup_free_spve_spve,
REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE},
{"uri_param_any", (cmd_function)w_uri_param_any, 1, fixup_spve_null, 0,
{"uri_param_any", (cmd_function)w_uri_param_any, 1, fixup_spve_null, fixup_free_spve_null,
REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE},
{"add_uri_param", (cmd_function)add_uri_param, 1, fixup_str_null, 0,
{"add_uri_param", (cmd_function)add_uri_param, 1, fixup_str_null, fixup_free_str_null,
REQUEST_ROUTE},
{"get_uri_param", (cmd_function)get_uri_param, 2, fixup_get_uri_param,
free_fixup_get_uri_param, REQUEST_ROUTE | LOCAL_ROUTE},
{"uri_param_rm", (cmd_function)w_uri_param_rm, 1, fixup_spve_null, 0,
{"uri_param_rm", (cmd_function)w_uri_param_rm, 1, fixup_spve_null, fixup_free_spve_null,
REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE},
{"tel2sip", (cmd_function)tel2sip, 3, fixup_tel2sip, 0,
REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | ONREPLY_ROUTE},
Expand All @@ -160,15 +160,15 @@ static cmd_export_t cmds[] = {
REQUEST_ROUTE},
{"decode_contact_header", (cmd_function)decode_contact_header, 0, 0, 0,
REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
{"cmp_uri", (cmd_function)w_cmp_uri, 2, fixup_spve_spve, 0, ANY_ROUTE},
{"cmp_aor", (cmd_function)w_cmp_aor, 2, fixup_spve_spve, 0, ANY_ROUTE},
{"cmp_hdr_name", (cmd_function)w_cmp_hdr_name, 2, fixup_spve_spve, 0,
{"cmp_uri", (cmd_function)w_cmp_uri, 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"cmp_aor", (cmd_function)w_cmp_aor, 2, fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
{"cmp_hdr_name", (cmd_function)w_cmp_hdr_name, 2, fixup_spve_spve, fixup_free_spve_spve,
ANY_ROUTE},
{"is_rpid_user_e164", (cmd_function)is_rpid_user_e164, 0, 0, 0,
REQUEST_ROUTE},
{"append_rpid_hf", (cmd_function)append_rpid_hf, 0, 0, 0,
REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE},
{"append_rpid_hf", (cmd_function)append_rpid_hf_p, 2, fixup_str_str, 0,
{"append_rpid_hf", (cmd_function)append_rpid_hf_p, 2, fixup_str_str, fixup_free_str_str,
REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE},
{"set_uri_user", (cmd_function)set_uri_user, 2, fixup_set_uri,
fixup_free_set_uri, ANY_ROUTE},
Expand All @@ -179,20 +179,20 @@ static cmd_export_t cmds[] = {
{"is_sip", (cmd_function)w_is_sip, 0, 0, 0, ANY_ROUTE},
{"is_http", (cmd_function)w_is_http, 0, 0, 0, ANY_ROUTE},
{"is_gruu", (cmd_function)w_is_gruu, 0, 0, 0, ANY_ROUTE},
{"is_gruu", (cmd_function)w_is_gruu, 1, fixup_spve_null, 0, ANY_ROUTE},
{"is_gruu", (cmd_function)w_is_gruu, 1, fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"is_supported", (cmd_function)w_is_supported, 1, fixup_option, 0,
ANY_ROUTE},
{"is_first_hop", (cmd_function)w_is_first_hop, 0, 0, 0, ANY_ROUTE},
{"is_first_hop", (cmd_function)w_is_first_hop, 1, fixup_igp_null,
fixup_free_igp_null, ANY_ROUTE},
{"is_tel_number", (cmd_function)is_tel_number, 1, fixup_spve_null, 0,
{"is_tel_number", (cmd_function)is_tel_number, 1, fixup_spve_null, fixup_free_spve_null,
ANY_ROUTE},
{"is_numeric", (cmd_function)is_numeric, 1, fixup_spve_null, 0,
{"is_numeric", (cmd_function)is_numeric, 1, fixup_spve_null, fixup_free_spve_null,
ANY_ROUTE},
{"is_alphanum", (cmd_function)ksr_is_alphanum, 1, fixup_spve_null, 0,
{"is_alphanum", (cmd_function)ksr_is_alphanum, 1, fixup_spve_null, fixup_free_spve_null,
ANY_ROUTE},
{"is_alphanumex", (cmd_function)ksr_is_alphanumex, 2, fixup_spve_spve,
0, ANY_ROUTE},
fixup_free_spve_spve, ANY_ROUTE},
{"sip_p_charging_vector", (cmd_function)sip_handle_pcv, 1,
fixup_spve_null, fixup_free_spve_null, ANY_ROUTE},
{"contact_param_encode", (cmd_function)w_contact_param_encode, 2,
Expand Down

0 comments on commit 1189f48

Please sign in to comment.