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

Function context_get_str

context.h:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static inline str *context_get_str(enum osips_context type,
180 context_p ctx, int pos)
181{
182#ifdef DBG_MALLOC
183 if (pos < 0 || pos >= type_sizes[type][CONTEXT_STR_TYPE]) {
184 LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_STR_TYPE]);
185 abort();
186 }
187#endif
188
189 return &((str *)(void *)((char *)ctx + type_offsets[type][CONTEXT_STR_TYPE]))[pos];
190}
191
192static inline void *context_get_ptr(enum osips_context type,
193 context_p ctx, int pos)

Callers 4

context_destroyFunction · 0.85
t_ctx_get_strFunction · 0.85
b2bl_ctx_get_strFunction · 0.85
dlg_ctx_get_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected