libyang 6.4.3
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Loading...
Searching...
No Matches
semver.h
Go to the documentation of this file.
1
15#ifndef LY_PLUGINS_EXTS_SEMVER_H_
16#define LY_PLUGINS_EXTS_SEMVER_H_
17
18#include <stdint.h>
19
20#include "plugins_exts.h"
21#include "tree_schema.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
35
49
60LIBYANG_API_DECL const struct lys_ext_instance_semver *lys_semver_get(const struct lys_module *mod,
61 const char **semver_str);
62
71LIBYANG_API_DECL const struct lys_ext_instance_semver *lysp_semver_get(const struct lysp_module *pmod,
72 const char **semver_str);
73
83LIBYANG_API_DECL int lys_semver_cmp(const struct lys_ext_instance_semver *ver1,
84 const struct lys_ext_instance_semver *ver2);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* LY_PLUGINS_EXTS_SEMVER_H_ */
Available YANG schema tree structures representing YANG module.
Printable YANG schema tree structure representing YANG module.
libyang support for YANG extensions implementation.
LIBYANG_API_DECL const struct lys_ext_instance_semver * lysp_semver_get(const struct lysp_module *pmod, const char **semver_str)
Get semantic version of a parsed (sub)module.
LIBYANG_API_DECL const struct lys_ext_instance_semver * lys_semver_get(const struct lys_module *mod, const char **semver_str)
Get semantic version of a module.
lys_ext_instance_semver_compat
COMPAT modifier of semver.
Definition semver.h:30
@ LYS_EXT_SEMVER_COMPAT_NON_COMPATIBLE
Definition semver.h:33
@ LYS_EXT_SEMVER_COMPAT_NONE
Definition semver.h:31
@ LYS_EXT_SEMVER_COMPAT_COMPATIBLE
Definition semver.h:32
enum lys_ext_instance_semver_compat compat
Definition semver.h:45
LIBYANG_API_DECL int lys_semver_cmp(const struct lys_ext_instance_semver *ver1, const struct lys_ext_instance_semver *ver2)
Compare semantic versions ignoring metadata.
Structure with parsed semver version.
Definition semver.h:41
libyang representation of YANG schema trees.