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

Function bencode_dictionary_get_expect

modules/rtpengine/bencode.h:501–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501static inline bencode_item_t *bencode_dictionary_get_expect(bencode_item_t *dict, const char *key, bencode_type_t expect) {
502 bencode_item_t *ret;
503 ret = bencode_dictionary_get(dict, key);
504 if (!ret || ret->type != expect)
505 return NULL;
506 return ret;
507}
508static inline str *bencode_collapse_str(bencode_item_t *root, str *out) {
509 out->s = bencode_collapse(root, &out->len);
510 return out;

Callers 5

pv_get_rtpstat_lineFunction · 0.85
pv_handle_rtpstatFunction · 0.85
rtpengine_copy_streamsFunction · 0.85

Calls 1

bencode_dictionary_getFunction · 0.85

Tested by

no test coverage detected