| 820 | /**** Functions to work with the members ****/ |
| 821 | |
| 822 | static 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 | |
| 841 | int setbflag(struct sip_msg *msg, unsigned int b_idx, unsigned int mask) |
| 842 | { |
no outgoing calls
no test coverage detected