libyang 1.0.184
YANG data modeling language library
user_types.h
Go to the documentation of this file.
1
15#ifndef LY_USER_TYPES_H_
16#define LY_USER_TYPES_H_
17
18#include "libyang.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
33#define LYTYPE_API_VERSION 1
34
39#ifdef STATIC
40#define LYTYPE_VERSION_CHECK
41#else
42#define LYTYPE_VERSION_CHECK int lytype_api_version = LYTYPE_API_VERSION;
43#endif
44
45
59typedef int (*lytype_store_clb)(struct ly_ctx *ctx, const char *type_name, const char **value_str, lyd_val *value,
60 char **err_msg);
61
63 const char *module;
64 const char *revision;
69 const char *name;
71 void (*free_clb)(void *ptr);
72};
73
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* LY_USER_TYPES_H_ */
libyang context handler.
node's value representation
Definition: tree_data.h:94
int(* lytype_store_clb)(struct ly_ctx *ctx, const char *type_name, const char **value_str, lyd_val *value, char **err_msg)
Callback for storing user type values.
Definition: user_types.h:59
The main libyang public header.
const char * revision
Definition: user_types.h:64
const char * module
Definition: user_types.h:63
const char * name
Definition: user_types.h:69
lytype_store_clb store_clb
Definition: user_types.h:70
void(* free_clb)(void *ptr)
Definition: user_types.h:71