MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / is_mod_func_in_expr

Function is_mod_func_in_expr

route_struct.c:611–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609
610
611static int is_mod_func_in_expr(struct expr *e, const char *name, int param_no)
612{
613 if (e->type==ELEM_T) {
614 if (e->left.type==ACTION_O)
615 if (is_mod_func_used((struct action*)e->right.v.data,name,param_no)==1)
616 return 1;
617 } else if (e->type==EXP_T) {
618 if (e->left.v.expr && is_mod_func_in_expr(e->left.v.expr,name,param_no)==1)
619 return 1;
620 if (e->right.v.expr && is_mod_func_in_expr(e->right.v.expr,name,param_no)==1)
621 return 1;
622 }
623 return 0;
624}
625
626
627int is_mod_func_used(struct action *a, const char *name, int param_no)

Callers 1

is_mod_func_usedFunction · 0.85

Calls 1

is_mod_func_usedFunction · 0.85

Tested by

no test coverage detected