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

Function context_get_ptr

context.h:192–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static inline void *context_get_ptr(enum osips_context type,
193 context_p ctx, int pos)
194{
195#ifdef DBG_MALLOC
196 if (pos < 0 || pos >= type_sizes[type][CONTEXT_PTR_TYPE]) {
197 LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_PTR_TYPE]);
198 abort();
199 }
200#endif
201
202 return ((void **)(void *)((char *)ctx +
203 type_offsets[type][CONTEXT_PTR_TYPE]))[pos];
204}
205
206#endif /* __CONTEXT_H */

Callers 6

context_destroyFunction · 0.85
b2b_get_contextFunction · 0.85
t_ctx_get_ptrFunction · 0.85
get_new_entitiesFunction · 0.85
b2bl_ctx_get_ptrFunction · 0.85
dlg_ctx_get_ptrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected