libyang  1.0.253
YANG data modeling language library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
dict.h File Reference

libyang dictionary More...

#include <stdint.h>
Include dependency graph for dict.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...
 

Detailed Description

libyang dictionary

Author
Radek Krejci rkrej.nosp@m.ci@c.nosp@m.esnet.nosp@m..cz Copyright (c) 2015 CESNET, z.s.p.o.

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.