Browse code

minor macro additions for kamailio compatibility

Andrei Pelinescu-Onciul authored on 20/11/2008 19:02:05
Showing 3 changed files
... ...
@@ -87,6 +87,7 @@ int log_facility_fixup(void *handle, str *name, void **val);
87 87
 #define LOC_INFO	__FILE__ ":" CT2STR(__LINE__) ": "
88 88
 
89 89
 
90
+#define is_printable(level) (cfg_get(core, core_cfg, debug)>=(level))
90 91
 
91 92
 #ifdef NO_DEBUG
92 93
 	#ifdef __SUNPRO_C
... ...
@@ -152,6 +152,7 @@ typedef int (*param_func_t)( modparam_t type, void* val);
152 152
 #define BRANCH_ROUTE  8  /* Function can be used in branch_route blocks */
153 153
 #define ONSEND_ROUTE 16  /* Function can be used in onsend_route blocks */
154 154
 #define ERROR_ROUTE  32  /* Function can be used in an error route */ 
155
+#define LOCAL_ROUTE  64  /* Function can be used in a local route */
155 156
 
156 157
 /* Macros - used as rank in child_init function */
157 158
 #define PROC_MAIN      0  /* Main ser process */
... ...
@@ -61,9 +61,10 @@ typedef struct stat_export_ {
61 61
 
62 62
 #define get_stat(name)  0
63 63
 #define get_stat_val(v) 0
64
+#define get_stat_var_from_num_code(num_code, in_code) 0
64 65
 #define update_stat(v, n)
65 66
 #define reset_stat(v)
66
-#define if_update_stat (cond, v, n)
67
+#define if_update_stat(cond, v, n)
67 68
 
68 69
 #ifdef STATISTICS
69 70
 #warning "sorry sip-router does not support STATISTICS"