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

Function get_ptr_bflags

dset.c:822–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820/**** Functions to work with the members ****/
821
822static inline unsigned int* get_ptr_bflags(struct sip_msg *msg,
823 unsigned int b_idx)
824{
825 struct dset_ctx *dsct = get_dset_ctx();
826
827 if (!dsct && b_idx != 0)
828 return NULL;
829
830 if (b_idx == 0) {
831 return &getb0flags(msg);
832 } else {
833 if (b_idx - 1 < dsct->nr_branches) {
834 return &dsct->branches[b_idx - 1].branch.bflags;
835 } else {
836 return 0;
837 }
838 }
839}
840
841int setbflag(struct sip_msg *msg, unsigned int b_idx, unsigned int mask)
842{

Callers 3

setbflagFunction · 0.85
isbflagsetFunction · 0.85
resetbflagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected