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

Function IDX_STR

sdp_ops.c:77–93  ·  view source on GitHub ↗

returns a string representation of the index (useful for debugging) */

Source from the content-addressed store, hash-verified

75
76/* returns a string representation of the index (useful for debugging) */
77static inline char *IDX_STR(struct sdp_pv_idx *idx)
78{
79#define idx_buf_cnt 4
80 static char buf[idx_buf_cnt][20];
81 static int buf_idx;
82 char *p;
83
84 p = buf[buf_idx];
85 buf_idx = (buf_idx+1) % idx_buf_cnt;
86
87 if (!idx->is_pv_idx)
88 sprintf(p, "%d", idx->idx);
89 else
90 sprintf(p, "pv type %d", idx->idx_pv.type);
91
92 return p;
93}
94
95
96static inline int sdp_detect_line_sep(str *sdp, char *sep, int *sep_len)

Callers 2

pv_parse_sdp_line_nameFunction · 0.85
pv_parse_sdp_stream_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected