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

Function append_opts

modules/rtpproxy/rtpproxy.c:3330–3345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3328};
3329
3330static int
3331append_opts(struct options *op, char ch)
3332{
3333 void *p;
3334
3335 if (op->s.len <= op->oidx) {
3336 p = pkg_realloc(op->s.s, op->oidx + 32);
3337 if (p == NULL) {
3338 return (-1);
3339 }
3340 op->s.s = p;
3341 op->s.len = op->oidx + 32;
3342 }
3343 op->s.s[op->oidx++] = ch;
3344 return (0);
3345}
3346
3347static int
3348append_opts_str(struct options *op, str *s)

Callers 1

rtpproxy_offer_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected