libyang  6.4.26
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
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
24 extern "C" {
25 #endif
26 
34 };
35 
42  int32_t major;
43  int32_t minor;
44  int32_t patch;
47  char *build_meta;
48 };
49 
60 LIBYANG_API_DECL const struct lys_ext_instance_semver *lys_semver_get(const struct lys_module *mod,
61  const char **semver_str);
62 
71 LIBYANG_API_DECL const struct lys_ext_instance_semver *lysp_semver_get(const struct lysp_module *pmod,
72  const char **semver_str);
73 
83 LIBYANG_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.
Definition: tree_schema.h:2242
Printable YANG schema tree structure representing YANG module.
Definition: tree_schema.h:1094
libyang support for YANG extensions implementation.
char * pre_release_meta
Definition: semver.h:46
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.
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
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.
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.