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

Function bencode_dictionary_get_integer

modules/rtpengine/bencode.h:481–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481static inline long long int bencode_dictionary_get_integer(bencode_item_t *dict, const char *key, long long int defval) {
482 bencode_item_t *val;
483 val = bencode_dictionary_get(dict, key);
484 if (!val || val->type != BENCODE_INTEGER)
485 return defval;
486 return val->value;
487}
488
489static inline bencode_item_t *bencode_decode_expect(bencode_buffer_t *buf, const char *s, int len, bencode_type_t expect) {
490 bencode_item_t *ret;

Callers 4

pv_get_rtpstat_lineFunction · 0.85
rtpengine_playmedia_fFunction · 0.85
rtpengine_stopmedia_fFunction · 0.85
rtpengine_copy_streamsFunction · 0.85

Calls 1

bencode_dictionary_getFunction · 0.85

Tested by

no test coverage detected