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

Function bencode_dictionary_add_str_dup

modules/rtpengine/bencode.h:411–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411static inline bencode_item_t *bencode_dictionary_add_str_dup(bencode_item_t *dict, const char *key, const str *val) {
412 if (!val)
413 return NULL;
414 return bencode_dictionary_add(dict, key, bencode_str_dup(bencode_item_buffer(dict), val));
415}
416
417static inline bencode_item_t *bencode_dictionary_add_integer(bencode_item_t *dict, const char *key, long long int val) {
418 return bencode_dictionary_add(dict, key, bencode_integer(bencode_item_buffer(dict), val));

Callers

nothing calls this directly

Calls 3

bencode_dictionary_addFunction · 0.85
bencode_str_dupFunction · 0.85
bencode_item_bufferFunction · 0.85

Tested by

no test coverage detected