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

Function isbflagset

dset.c:860–872  ·  view source on GitHub ↗

! \brief * Tests the per branch flags */

Source from the content-addressed store, hash-verified

858 * Tests the per branch flags
859 */
860int isbflagset(struct sip_msg *msg, unsigned int b_idx, unsigned int mask)
861{
862 unsigned int *flags;
863
864 flags = get_ptr_bflags( msg, b_idx );
865#ifdef EXTRA_DEBUG
866 LM_DBG("bflags for %p : (%u, %u)\n", msg, mask, *flags);
867#endif
868 if (flags==0)
869 return -1;
870
871 return ( (*flags) & mask) ? 1 : -1;
872}
873
874
875/*! \brief

Callers 2

w_isbflagsetFunction · 0.85
msg_branch_flag_getFunction · 0.85

Calls 1

get_ptr_bflagsFunction · 0.85

Tested by

no test coverage detected