returns a string representation of the index (useful for debugging) */
| 75 | |
| 76 | /* returns a string representation of the index (useful for debugging) */ |
| 77 | static 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 | |
| 96 | static inline int sdp_detect_line_sep(str *sdp, char *sep, int *sep_len) |
no outgoing calls
no test coverage detected