libyang
3.13.5
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Toggle main menu visibility
Loading...
Searching...
No Matches
dict.h
Go to the documentation of this file.
1
14
15
#ifndef LY_DICT_H_
16
#define LY_DICT_H_
17
18
#include <stddef.h>
19
#include <stdint.h>
20
#include <string.h>
21
22
#include "
log.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
/* dummy context structure */
29
struct
ly_ctx
;
30
55
64
81
LIBYANG_API_DECL
LY_ERR
lydict_insert
(
const
struct
ly_ctx
*ctx,
const
char
*value,
size_t
len,
const
char
**str_p);
82
100
LIBYANG_API_DECL
LY_ERR
lydict_insert_zc
(
const
struct
ly_ctx
*ctx,
char
*value,
const
char
**str_p);
101
114
LIBYANG_API_DECL
LY_ERR
lydict_remove
(
const
struct
ly_ctx
*ctx,
const
char
*value);
115
126
LIBYANG_API_DECL
LY_ERR
lydict_dup
(
const
struct
ly_ctx
*ctx,
const
char
*value,
const
char
**str_p);
127
129
130
#ifdef __cplusplus
131
}
132
#endif
133
134
#endif
/* LY_DICT_H_ */
ly_ctx
libyang context handler.
lydict_dup
LIBYANG_API_DECL LY_ERR lydict_dup(const struct ly_ctx *ctx, const char *value, const char **str_p)
Duplicate string in dictionary. Only a reference counter is incremented.
lydict_insert
LIBYANG_API_DECL LY_ERR lydict_insert(const struct ly_ctx *ctx, const char *value, size_t len, const char **str_p)
Insert string into dictionary. If the string is already present, only a reference counter is incremen...
lydict_remove
LIBYANG_API_DECL LY_ERR lydict_remove(const struct ly_ctx *ctx, const char *value)
Remove specified string from the dictionary. It decrement reference counter for the string and if it ...
lydict_insert_zc
LIBYANG_API_DECL LY_ERR lydict_insert_zc(const struct ly_ctx *ctx, char *value, const char **str_p)
Insert string into dictionary - zerocopy version. If the string is already present,...
LY_ERR
LY_ERR
libyang's error codes returned by the libyang functions.
Definition
log.h:237
log.h
Logger manipulation routines and error definitions.
src
dict.h
Privacy Policy
Generated on
for libyang by
1.17.0