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

Function context_put_ptr

context.h:151–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151static inline void context_put_ptr(enum osips_context type, context_p ctx,
152 int pos, void *data)
153{
154#ifdef DBG_MALLOC
155 if (pos < 0 || pos >= type_sizes[type][CONTEXT_PTR_TYPE]) {
156 LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_PTR_TYPE]);
157 abort();
158 }
159#endif
160
161 ((void **)(void *)((char *)ctx + type_offsets[type][CONTEXT_PTR_TYPE]))[pos] = data;
162}
163
164 /****************************** GETTERS ********************************/
165

Callers 9

get_srec_var_newFunction · 0.85
b2b_get_contextFunction · 0.85
t_ctx_put_ptrFunction · 0.85
hep_receive_msgFunction · 0.85
hep_udp_read_reqFunction · 0.85
b2bl_api_initFunction · 0.85
b2bl_entity_newFunction · 0.85
b2bl_ctx_put_ptrFunction · 0.85
dlg_ctx_put_ptrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected