Module: sip-router
Branch: master
Commit: 9cc429b65b86c763bf7a56737fbb61c260030b35
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9cc429b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Sep 13 11:02:21 2011 +0200
textops(k): cleanup of route types for exported functions
- convert to ANY_ROUTE the long list of all route types
- removed non-existing anymore route types
---
modules_k/textops/textops.c | 62 +++++++++++++++++++++---------------------
1 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/modules_k/textops/textops.c b/modules_k/textops/textops.c
index 8c0cdde..f2f89bb 100644
--- a/modules_k/textops/textops.c
+++ b/modules_k/textops/textops.c
@@ -151,64 +151,64 @@ static tr_export_t mod_trans[] = {
static cmd_export_t cmds[]={
{"search", (cmd_function)search_f, 1,
fixup_regexp_null, fixup_free_regexp_null,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"search_body", (cmd_function)search_body_f, 1,
fixup_regexp_null, fixup_free_regexp_null,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"search_append", (cmd_function)search_append_f, 2,
fixup_regexp_none,fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"search_append_body", (cmd_function)search_append_body_f, 2,
fixup_regexp_none, fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"replace", (cmd_function)replace_f, 2,
fixup_regexp_none, fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"replace_body", (cmd_function)replace_body_f, 2,
fixup_regexp_none, fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"replace_all", (cmd_function)replace_all_f, 2,
fixup_regexp_none, fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"replace_body_all", (cmd_function)replace_body_all_f,2,
fixup_regexp_none, fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"replace_body_atonce", (cmd_function)replace_body_atonce_f,2,
fixup_regexpNL_none, fixup_free_regexp_none,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"append_to_reply", (cmd_function)append_to_reply_f, 1,
fixup_spve_null, 0,
- REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|ERROR_ROUTE},
+ REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
{"append_hf", (cmd_function)append_hf_1, 1,
add_header_fixup, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"append_hf", (cmd_function)append_hf_2, 2,
add_header_fixup, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"insert_hf", (cmd_function)insert_hf_1, 1,
add_header_fixup, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"insert_hf", (cmd_function)insert_hf_2, 2,
add_header_fixup, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"append_urihf", (cmd_function)append_urihf, 2,
fixup_str_str, fixup_free_str_str,
REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
{"remove_hf", (cmd_function)remove_hf_f, 1,
hname_fixup, free_hname_fixup,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"remove_hf_re", (cmd_function)remove_hf_re_f, 1,
fixup_regexp_null, fixup_free_regexp_null,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"is_present_hf", (cmd_function)is_present_hf_f, 1,
hname_fixup, free_hname_fixup,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"is_present_hf_re", (cmd_function)is_present_hf_re_f,1,
fixup_regexp_null, fixup_free_regexp_null,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"subst", (cmd_function)subst_f, 1,
fixup_substre, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"subst_uri", (cmd_function)subst_uri_f, 1,
fixup_substre, 0,
REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
@@ -217,13 +217,13 @@ static cmd_export_t cmds[]={
REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
{"subst_body", (cmd_function)subst_body_f, 1,
fixup_substre, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"filter_body", (cmd_function)filter_body_f, 1,
fixup_str_null, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"append_time", (cmd_function)append_time_f, 0,
0, 0,
- REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE },
+ REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
{"set_body", (cmd_function)set_body_f, 2,
fixup_spve_spve, 0,
REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|ONREPLY_ROUTE },
@@ -232,31 +232,31 @@ static cmd_export_t cmds[]={
REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE },
{"is_method", (cmd_function)is_method_f, 1,
fixup_method, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"has_body", (cmd_function)has_body_f, 0,
0, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"has_body", (cmd_function)has_body_f, 1,
fixup_body_type, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"is_privacy", (cmd_function)is_privacy_f, 1,
fixup_privacy, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"cmp_str", (cmd_function)cmp_str_f, 2,
fixup_spve_spve, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"cmp_istr", (cmd_function)cmp_istr_f, 2,
fixup_spve_spve, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"starts_with", (cmd_function)starts_with_f, 2,
fixup_spve_spve, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"is_audio_on_hold", (cmd_function)is_audio_on_hold_f, 0,
0, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"append_time_to_request", (cmd_function)append_time_request_f, 0,
0, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"bind_textops", (cmd_function)bind_textops, 0, 0, 0,
0},