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

Function update_msg_branch_bflags

dset.c:433–445  ·  view source on GitHub ↗

! \brief * Updates SOCKET of an already appended branch */

Source from the content-addressed store, hash-verified

431 * Updates SOCKET of an already appended branch
432 */
433int update_msg_branch_bflags(unsigned int idx, unsigned int val)
434{
435 struct dset_ctx *dsct = get_dset_ctx();
436 struct msg_branch_wrap *br;
437
438 if (!dsct || !dsct->enabled || idx >= dsct->nr_branches)
439 return -1;
440
441 br = dsct->branches + idx;
442
443 br->branch.bflags = val;
444 return 0;
445}
446
447
448#define _post_copy_branch_update(_br) \

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected