libyang
1.0.253
YANG data modeling language library
|
libyang dictionary More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
const char * | lydict_insert (struct ly_ctx *ctx, const char *value, size_t len) |
Insert string into dictionary. If the string is already present, only a reference counter is incremented and no memory allocation is performed. More... | |
const char * | lydict_insert_zc (struct ly_ctx *ctx, char *value) |
Insert string into dictionary - zerocopy version. If the string is already present, only a reference counter is incremented and no memory allocation is performed. This insert function variant avoids duplication of specified value - it is inserted into the dictionary directly. More... | |
void | lydict_remove (struct ly_ctx *ctx, const char *value) |
Remove specified string from the dictionary. It decrement reference counter for the string and if it is zero, the string itself is freed. More... | |
libyang dictionary
This source code is licensed under BSD 3-Clause License (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at
https://opensource.org/licenses/BSD-3-Clause
Definition in file dict.h.