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

Function context_get_int

context.h:166–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 /****************************** GETTERS ********************************/
165
166static inline int context_get_int(enum osips_context type,
167 context_p ctx, int pos)
168{
169#ifdef DBG_MALLOC
170 if (pos < 0 || pos >= type_sizes[type][CONTEXT_INT_TYPE]) {
171 LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_INT_TYPE]);
172 abort();
173 }
174#endif
175
176 return ((int *)ctx)[pos];
177}
178
179static inline str *context_get_str(enum osips_context type,
180 context_p ctx, int pos)

Callers 8

context_destroyFunction · 0.85
get_bl_markerFunction · 0.85
w_replace_fromFunction · 0.85
w_replace_toFunction · 0.85
ctx_pul_getFunction · 0.85
t_ctx_get_intFunction · 0.85
b2bl_ctx_get_intFunction · 0.85
dlg_ctx_get_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected