Defines | Functions

mod_fix.h File Reference

Generic fixup functions for module function parameter. More...

#include "sr_module.h"
#include "pvar.h"
Include dependency graph for mod_fix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Functions


Detailed Description

(kamailio compatibility)

Definition in file mod_fix.h.


Define Documentation

#define fixup_get_ivalue (   msg,
  fp,
  ival 
)    get_int_fparam(ival, msg, fp)

Note: this macro/function is for kamailio compatibility (please use get_int_fparam() directly in the future)

Parameters:
msg - pointer to the sip message
fp - pointer to the fparam_t
ival - pointer to str, used to store the result
Returns:
0 on success, -1 on error

Definition at line 74 of file mod_fix.h.

Referenced by w_pres_refresh_watchers().

#define fixup_get_svalue (   msg,
  fp,
  sval 
)    get_str_fparam(sval, msg, fp)

Note: this macro/function is for kamailio compatibility (please use get_str_fparam() directly in the future)

Parameters:
msg - pointer to the sip message
fp - pointer to the fparam_t
sval - pointer to str, used to store the result
Returns:
0 on success, -1 on error

Definition at line 62 of file mod_fix.h.

Referenced by cr_do_route(), cr_gp2id(), cr_load_next_domain(), cr_load_user_carrier(), w_compare_ips(), w_compare_pure_ips(), w_ip_type(), w_is_ip(), w_is_ip_rfc1918(), w_is_ipv4(), w_is_ipv6(), w_is_ipv6_reference(), w_is_pure_ip(), w_lookup(), w_pcre_match(), w_pcre_match_group(), w_pres_refresh_watchers(), w_pres_update_watchers(), and w_save3().

#define gparam_t   fparam_t

Note: used only for compatibility with existing kamailio code, please use fparam_t directly in the future.

See also:
fparam_t

Definition at line 46 of file mod_fix.h.


Function Documentation

free_fixup_function mod_fix_get_fixup_free ( fixup_function  f  ) 

free fixup function.

fixup_free* function.

Parameters:
f -fixup function pointer.
Returns:
- pointer to free_fixup function if known, 0 otherwise.

Definition at line 519 of file mod_fix.c.

Referenced by get_fixup_free().

Here is the caller graph for this function: