From 57d33e07308f35995b80bf8aa6767b1d0382ed02 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Fri, 13 Nov 2026 15:56:13 +0100 Subject: [PATCH 1/5] distro UPDATE fix package dependencies --- distro/pkg/deb/control | 5 +++-- distro/pkg/rpm/libyang.spec | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/distro/pkg/deb/control b/distro/pkg/deb/control index 23bcc01316..cd967faf34 100644 --- a/distro/pkg/deb/control +++ b/distro/pkg/deb/control @@ -8,6 +8,8 @@ Build-Depends: cmake, debhelper (>= 10), libcmocka-dev , libpcre2-dev, + libcbor-dev, + libxxhash-dev, pkg-config Vcs-Browser: https://github.com/CESNET/libyang/tree/master Vcs-Git: https://github.com/CESNET/libyang.git @@ -22,8 +24,7 @@ Description: parser toolkit for IETF YANG data modeling - runtime YANG data modeling language defined by the IETF in RFCs 6020/7950. Package: libyang-dev -Depends: libpcre2-dev, - libyang5 (= ${binary:Version}), +Depends: libyang5 (= ${binary:Version}), ${misc:Depends} Conflicts: libyang2-dev Section: libdevel diff --git a/distro/pkg/rpm/libyang.spec b/distro/pkg/rpm/libyang.spec index 91257f375d..6322c5022a 100644 --- a/distro/pkg/rpm/libyang.spec +++ b/distro/pkg/rpm/libyang.spec @@ -11,6 +11,8 @@ BuildRequires: doxygen BuildRequires: gcc BuildRequires: cmake(cmocka) >= 1.0.1 BuildRequires: pkgconfig(libpcre2-8) >= 10.21 +BuildRequires: libcbor-devel +BuildRequires: xxhash-devel %package modules Summary: YANG modules for libyang @@ -18,7 +20,6 @@ Summary: YANG modules for libyang %package devel Summary: Development files for libyang Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: pcre2-devel %package devel-doc Summary: Documentation of libyang API From e5cfadce2d0917cb2884e49d7250f78165decbc1 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Fri, 13 Nov 2026 15:57:57 +0100 Subject: [PATCH 2/5] actions UPDATE build packages --- .github/workflows/ci.yml | 114 +++++++++++++++++++++++---------------- 1 file changed, 68 insertions(+), 46 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 167ce24fdc..ca91365b04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,21 @@ on: - devel jobs: + git-branch: + name: Get git branch + runs-on: ubuntu-latest + outputs: + branch-name: ${{ steps.get-git-branch.outputs.branch-name }} + steps: + - id: get-git-branch + run: | + if ${{ github.event_name == 'push' }} + then export GIT_BRANCH=`echo ${{ github.ref }} | cut -d'/' -f 3` + else + export GIT_BRANCH=${{ github.base_ref }} + fi + echo "branch-name=$GIT_BRANCH" >> $GITHUB_OUTPUT + build-unix: name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} @@ -25,9 +40,7 @@ jobs: options: "-DENABLE_TESTS=ON", packager: "sudo apt-get", # no expect because stdout seems to be redirected - packages: "libcmocka-dev libxxhash-dev libcbor-dev", - snaps: "", - build-cmd: "make" + packages: "libcmocka-dev libxxhash-dev libcbor-dev" } - { name: "Release, clang", @@ -36,9 +49,7 @@ jobs: cc: "clang", options: "-DENABLE_TESTS=ON", packager: "sudo apt-get", - packages: "libcmocka-dev libxxhash-dev libcbor-dev", - snaps: "", - build-cmd: "make" + packages: "libcmocka-dev libxxhash-dev libcbor-dev" } - { name: "Debug, gcc", @@ -47,9 +58,7 @@ jobs: cc: "gcc", options: "", packager: "sudo apt-get", - packages: "libcmocka-dev libxxhash-dev libcbor-dev uncrustify valgrind", - snaps: "", - build-cmd: "make" + packages: "libcmocka-dev libxxhash-dev libcbor-dev uncrustify valgrind" } - { name: "Debug, clang", @@ -59,9 +68,7 @@ jobs: options: "", packager: "sudo apt-get", # no valgrind because it does not support DWARF5 yet generated by clang 14 - packages: "libcmocka-dev libxxhash-dev libcbor-dev", - snaps: "", - build-cmd: "make" + packages: "libcmocka-dev libxxhash-dev libcbor-dev" } - { name: "Release, macOS, clang", @@ -70,9 +77,7 @@ jobs: cc: "clang", options: "-DENABLE_TESTS=ON -DPATH_EXPECT=", packager: "brew", - packages: "cmocka xxhash tcl-tk libcbor", - snaps: "", - build-cmd: "make" + packages: "cmocka xxhash tcl-tk libcbor" } - { name: "ASAN and UBSAN", @@ -81,20 +86,7 @@ jobs: cc: "clang", options: "-DCMAKE_C_FLAGS=-fsanitize=address,undefined -DENABLE_TESTS=ON -DENABLE_VALGRIND_TESTS=OFF", packager: "sudo apt-get", - packages: "libcmocka-dev libxxhash-dev libcbor-dev", - snaps: "", - build-cmd: "make" - } - - { - name: "DEB Package", - os: "ubuntu-latest", - build-type: "Release", - cc: "gcc", - options: "", - packager: "sudo apt-get", - packages: "cmake debhelper libcmocka-dev libxxhash-dev python3-pip", - snaps: "", - build-cmd: "" + packages: "libcmocka-dev libxxhash-dev libcbor-dev" } steps: @@ -109,19 +101,6 @@ jobs: if ${{ matrix.config.packages != '' }} then ${{ matrix.config.packager }} install ${{ matrix.config.packages }} fi - if ${{ matrix.config.snaps != '' }} - then sudo snap install ${{ matrix.config.snaps }} - fi - - - name: Build-and-install-package - shell: bash - working-directory: ${{ github.workspace }} - run: | - pip install apkg - apkg system-setup - apkg build - apkg install - if: ${{ matrix.config.name == 'DEB Package' }} - name: Configure shell: bash @@ -130,7 +109,6 @@ jobs: mkdir build cd build CC=${{ matrix.config.cc }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.config.build-type }} ${{ matrix.config.options }} .. - if: ${{ matrix.config.name != 'DEB Package' }} - name: Build shell: bash @@ -138,14 +116,12 @@ jobs: run: | export LC_ALL=C.UTF-8 export PATH=/snap/bin:${{ github.workspace }}/coverity-tools/bin:$PATH - ${{ matrix.config.build-cmd }} - if: ${{ matrix.config.name != 'DEB Package' }} + make - name: Test shell: bash working-directory: ${{ github.workspace }}/build run: ctest --output-on-failure - if: ${{ matrix.config.name != 'DEB Package' }} build-windows: name: ${{ matrix.name }} @@ -335,3 +311,49 @@ jobs: cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON .. make ctest --output-on-failure + + build-packages: + name: ${{ matrix.config.name }} + runs-on: ubuntu-latest + needs: git-branch + strategy: + fail-fast: false + matrix: + config: + - { + name: "RPM build, Rocky Linux 9", + image: "rockylinux:9", + pkg-setup: "", + pkg-cmd: "dnf -y --enablerepo=crb --enablerepo=devel install", + pkg-packages: "python3-pip cmake gcc git doxygen libcmocka-devel pcre2-devel libcbor-devel xxhash-devel", + pipx-install: "python3 -m pip install pipx" + } + - { + name: "DEB build, Debian 13", + image: "debian:13", + pkg-setup: "apt-get update -q", + pkg-cmd: "apt-get install -yq", + pkg-packages: "pipx cmake git debhelper pkg-config libcmocka-dev libpcre2-dev libcbor-dev libxxhash-dev", + pipx-install: "" + } + container: + image: ${{ matrix.config.image }} + steps: + - name: Deps-packages + run: | + ${{ matrix.config.pkg-setup }} + ${{ matrix.config.pkg-cmd }} ${{ matrix.config.pkg-packages }} + ${{ matrix.config.pipx-install }} + echo "$HOME/.local/bin" >> $GITHUB_PATH + pipx install apkg + + - name: Clone-repo + run: | + git clone -b ${{ needs.git-branch.outputs.branch-name }} https://github.com/CESNET/libyang.git + + - name: Build-and-install-package + run: | + apkg system-setup + cd libyang + apkg build + apkg install From 64cbcba9797dd0f8b246aa0db4aaa5b6e4b07638 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 16 Nov 2026 09:26:30 +0100 Subject: [PATCH 3/5] lib REFACTOR uninit release warnings --- src/plugins_exts/schema_mount.c | 2 +- src/plugins_types/node_instanceid.c | 2 +- src/tree_schema_common.c | 2 +- tests/utests/basic/test_set.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins_exts/schema_mount.c b/src/plugins_exts/schema_mount.c index 48723f6b98..452c1522b9 100644 --- a/src/plugins_exts/schema_mount.c +++ b/src/plugins_exts/schema_mount.c @@ -1182,7 +1182,7 @@ schema_mount_validate(struct lysc_ext_instance *ext, struct lyd_node *node, cons { LY_ERR ret = LY_SUCCESS; uint32_t i; - struct lyd_node *iter, *ext_data = NULL, *ref_first = NULL, *orig_parent = node->parent, *op_tree; + struct lyd_node *iter, *ext_data = NULL, *ref_first = NULL, *orig_parent = node->parent, *op_tree = NULL; struct lyd_node *ext_diff = NULL, *diff_parent = NULL, *sm_root = NULL; ly_bool ext_data_free = 0; struct ly_set *ref_set = NULL; diff --git a/src/plugins_types/node_instanceid.c b/src/plugins_types/node_instanceid.c index 4346784e6d..630d0c099f 100644 --- a/src/plugins_types/node_instanceid.c +++ b/src/plugins_types/node_instanceid.c @@ -50,7 +50,7 @@ node_instanceid_path2str(const struct ly_path *path, LY_VALUE_FORMAT format, voi LYA_COUNT_T u, v; char *result = NULL, quot; const struct lys_module *mod = NULL, *local_mod = NULL; - struct ly_set *mods; + struct ly_set *mods = NULL; ly_bool inherit_prefix = 0; const char *strval; diff --git a/src/tree_schema_common.c b/src/tree_schema_common.c index 3aa6e65d84..8518b58907 100644 --- a/src/tree_schema_common.c +++ b/src/tree_schema_common.c @@ -66,7 +66,7 @@ lysp_last_revision(const struct lysp_module *pmod, const struct lysp_revision *r { LYA_COUNT_T u; int cmp; - const char *last_revision = NULL, *name, *mod_str; + const char *last_revision = NULL, *name = NULL, *mod_str = NULL; const struct ly_ctx *ctx = NULL; if (!revs) { diff --git a/tests/utests/basic/test_set.c b/tests/utests/basic/test_set.c index 04ea6bc4e9..00b03b7900 100644 --- a/tests/utests/basic/test_set.c +++ b/tests/utests/basic/test_set.c @@ -27,7 +27,7 @@ test_basics(void **UNUSED(state)) char *str; unsigned int u; void *ptr; - uint32_t index; + uint32_t index = 0; /* creation - everything is empty */ assert_int_equal(LY_SUCCESS, ly_set_new(&set)); From d78cf1b7d17bb9e5c3349a41fe615028f4032b02 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 16 Nov 2026 09:43:00 +0100 Subject: [PATCH 4/5] doc UPDATE update invalid references --- src/plugins_exts.h | 432 ++++++++++++++++++++++---------------------- src/plugins_types.h | 5 +- src/tree_schema.h | 2 +- 3 files changed, 219 insertions(+), 220 deletions(-) diff --git a/src/plugins_exts.h b/src/plugins_exts.h index 1831115c22..821cbc109b 100644 --- a/src/plugins_exts.h +++ b/src/plugins_exts.h @@ -132,220 +132,220 @@ extern "C" { enum ly_stmt { LY_STMT_NONE = 0, - LY_STMT_NOTIFICATION = 0x0001, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_notif *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_notif *` */ - LY_STMT_INPUT = 0x0002, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_action_inout *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_action_inout *` */ - LY_STMT_OUTPUT = 0x0004, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_action_inout *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_action_inout *` */ - LY_STMT_ACTION = 0x0008, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_action *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_action *` */ - LY_STMT_RPC = 0x0010, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_action *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_action *` */ - LY_STMT_ANYDATA = 0x0020, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_anydata *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_anydata *` */ - LY_STMT_ANYXML = 0x0040, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_anydata *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_anydata *` */ - LY_STMT_AUGMENT = 0x0080, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_augment *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_CASE = 0x0100, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_case *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_case *` */ - LY_STMT_CHOICE = 0x0200, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_choice *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_choice *` */ - LY_STMT_CONTAINER = 0x0400, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_container *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_container *` */ - LY_STMT_GROUPING = 0x0800, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_grp *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_LEAF = 0x1000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_leaf *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_leaf *` */ - LY_STMT_LEAF_LIST = 0x2000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_leaflist *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_leaflist *` */ - LY_STMT_LIST = 0x4000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_list *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node_list *` */ - LY_STMT_USES = 0x8000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_node_uses *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_node *` */ - - LY_STMT_ARGUMENT = 0x10000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_ext *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_ext *` */ - LY_STMT_BASE = 0x20000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char **`[] - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_ident *` */ - LY_STMT_BELONGS_TO = 0x30000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_submodule *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_BIT = 0x40000, /**< ::lysp_ext_substmt.storage - `struct lysp_type_enum *`[] - ::lysp_ext_instance.parent - `struct lysp_type_enum *` - ::lysc_ext_substmt.storage - `struct lysc_type_bitenum_item *`[] - ::lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ - LY_STMT_CONFIG = 0x50000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `uint16_t *` - ::lysc_ext_substmt.storage - `uint16_t *` - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_CONTACT = 0x60000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_(sub)module *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_DEFAULT = 0x70000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_qname *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_node *`, `struct lysc_type *` (typedef) */ - LY_STMT_DESCRIPTION = 0x80000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - compiled parent statement */ - LY_STMT_DEVIATE = 0x90000, /**< ::lysp_ext_substmt.storage - `struct lysp_deviate *`[] - ::lysp_ext_instance.parent - `struct lysp_deviate *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - not compiled */ - LY_STMT_DEVIATION = 0xA0000, /**< ::lysp_ext_substmt.storage - `struct lysp_deviation *`[] - ::lysp_ext_instance.parent - `struct lysp_deviation *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_ENUM = 0xB0000, /**< ::lysp_ext_substmt.storage - `struct lysp_type_enum *`[] - ::lysp_ext_instance.parent - `struct lysp_type_enum *` - ::lysc_ext_substmt.storage - `struct lysc_type_bitenum_item *`[] - ::lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ - LY_STMT_ERROR_APP_TAG = 0xC0000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - compiled restriction structure */ - LY_STMT_ERROR_MESSAGE = 0xD0000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - compiled restriction structure */ - LY_STMT_EXTENSION = 0xE0000, /**< ::lysp_ext_substmt.storage - `struct lysp_ext *`[] - ::lysp_ext_instance.parent - `struct lysp_ext *` - ::lysc_ext_substmt.storage - not compiled explicitly - ::lysc_ext_instance.parent - `struct lysc_ext *` */ - LY_STMT_EXTENSION_INSTANCE = 0xF0000, /**< ::lysp_ext_substmt.storage - `struct lysp_ext_instance *`[] - ::lysc_ext_substmt.storage - `struct lysc_ext_instance *`[] */ - LY_STMT_FEATURE = 0x100000, /**< ::lysp_ext_substmt.storage - `struct lysp_feature *`[] - ::lysp_ext_instance.parent - `struct lysp_feature *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - not compiled */ - LY_STMT_FRACTION_DIGITS = 0x110000, /**< ::lysp_ext_substmt.storage - `uint8_t *` - ::lysp_ext_instance.parent - `struct lysp_type *` - ::lysc_ext_substmt.storage - `uint8_t *` - ::lysc_ext_instance.parent - `struct lysc_type *` */ - LY_STMT_IDENTITY = 0x120000, /**< ::lysp_ext_substmt.storage - `struct lysp_ident *`[] - ::lysp_ext_instance.parent - `struct lysp_ident *` - ::lysc_ext_substmt.storage - `struct lysc_ident *`[] - ::lysc_ext_instance.parent - `struct lysc_ident *` */ - LY_STMT_IF_FEATURE = 0x130000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_qname *`[] - ::lysc_ext_substmt.storage - no storage, evaluated when compiled - ::lysc_ext_instance.parent - compiled parent statement */ - LY_STMT_IMPORT = 0x140000, /**< ::lysp_ext_substmt.storage - `struct lysp_import *`[] - ::lysp_ext_instance.parent - `struct lysp_import *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - not compiled */ - LY_STMT_INCLUDE = 0x150000, /**< ::lysp_ext_substmt.storage - `struct lysp_include *`[] - ::lysp_ext_instance.parent - `struct lysp_include *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - not compiled */ - LY_STMT_KEY = 0x160000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_node_list *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_node_list *` */ - LY_STMT_LENGTH = 0x170000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_range *` */ - LY_STMT_MANDATORY = 0x180000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `uint16_t *` - ::lysc_ext_substmt.storage - `uint16_t *` - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_MAX_ELEMENTS = 0x190000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `uint32_t *` - ::lysc_ext_substmt.storage - `uint32_t *` - ::lysc_ext_instance.parent - `struct lysc_node_list *` */ - LY_STMT_MIN_ELEMENTS = 0x1A0000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `uint32_t *` - ::lysc_ext_substmt.storage - `uint32_t *` - ::lysc_ext_instance.parent - `struct lysc_node_list *` */ - LY_STMT_MODIFIER = 0x1B0000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_pattern *` */ - LY_STMT_MODULE = 0x1C0000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_module *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_MUST = 0x1D0000, /**< ::lysp_ext_substmt.storage - `struct lysp_restr *`[] - ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage - `struct lysc_must *`[] - ::lysc_ext_instance.parent - `struct lysc_must *` */ - LY_STMT_NAMESPACE = 0x1E0000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_module *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_ORDERED_BY = 0x1F0000, /**< ::lysp_ext_substmt.storage - `uint16_t *` - ::lysp_ext_instance.parent - `struct lysp_node *` - ::lysc_ext_substmt.storage - `uint16_t *` - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_ORGANIZATION = 0x200000, /**< ::lysp_ext_substmt.storage - `const char *` - ::lysp_ext_instance.parent - `struct lysp_(sub)module *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_PATH = 0x210000, /**< ::lysp_ext_substmt.storage - `struct lyxp_expr *` - ::lysp_ext_instance.parent - `struct lysp_type *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_type *` */ - LY_STMT_PATTERN = 0x220000, /**< ::lysp_ext_substmt.storage - `struct lysp_restr *`[] - ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage - `struct lysc_pattern **`[] - ::lysc_ext_instance.parent - `struct lysc_pattern *` */ - LY_STMT_POSITION = 0x230000, /**< ::lysp_ext_substmt.storage - `int64_t *` - ::lysp_ext_instance.parent - `struct lysp_type_enum *` - ::lysc_ext_substmt.storage - `int64_t *` - ::lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ - LY_STMT_PREFIX = 0x240000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_PRESENCE = 0x250000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_node_container *` */ - LY_STMT_RANGE = 0x260000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_restr *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_range *` */ - LY_STMT_REFERENCE = 0x270000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - compiled parent statement */ - LY_STMT_REFINE = 0x280000, /**< ::lysp_ext_substmt.storage - `struct lysp_refine *`[] - ::lysp_ext_instance.parent - `struct lysp_refine *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_node *` */ - LY_STMT_REQUIRE_INSTANCE = 0x290000, /**< ::lysp_ext_substmt.storage - `uint8_t *` - ::lysp_ext_instance.parent - `struct lysp_type *` - ::lysc_ext_substmt.storage - `uint8_t *` - ::lysc_ext_instance.parent - `struct lysc_type *` */ - LY_STMT_REVISION = 0x2A0000, /**< ::lysp_ext_substmt.storage - `struct lysp_revision *`[] - ::lysp_ext_instance.parent - `struct lysp_revision *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - not compiled */ - LY_STMT_REVISION_DATE = 0x2B0000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - not compiled */ - LY_STMT_STATUS = 0x2C0000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `uint16_t *` - ::lysc_ext_substmt.storage - `uint16_t *` - ::lysc_ext_instance.parent - compiled parent statement */ - LY_STMT_SUBMODULE = 0x2D0000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_submodule *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_TYPE = 0x2E0000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_type *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_type *` */ - LY_STMT_TYPEDEF = 0x2F0000, /**< ::lysp_ext_substmt.storage - `struct lysp_tpdf *`[] - ::lysp_ext_instance.parent - `struct lysp_tpdf *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_type *` */ - LY_STMT_UNIQUE = 0x300000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_qname *`[] - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_node_list *` */ - LY_STMT_UNITS = 0x310000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `const char *` - ::lysc_ext_substmt.storage - `const char *` - ::lysc_ext_instance.parent - `struct lysc_node *`, `struct lysc_type *` (typedef) */ - LY_STMT_VALUE = 0x320000, /**< ::lysp_ext_substmt.storage - `int64_t *` - ::lysp_ext_instance.parent - `struct lysp_type_enum *` - ::lysc_ext_substmt.storage - `int64_t *` - ::lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ - LY_STMT_WHEN = 0x330000, /**< ::lysp_ext_substmt.storage and ::lysp_ext_instance.parent - `struct lysp_when *` - ::lysc_ext_substmt.storage and ::lysc_ext_instance.parent - `struct lysc_when *` */ - LY_STMT_YANG_VERSION = 0x340000, /**< ::lysp_ext_substmt.storage - `uint8_t *` - ::lysp_ext_instance.parent - `struct lysp_(sub)module *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_module *` */ - LY_STMT_YIN_ELEMENT = 0x350000, /**< ::lysp_ext_substmt.storage - `uint16_t *` - ::lysp_ext_instance.parent - `struct lysp_ext *` - ::lysc_ext_substmt.storage - not compiled - ::lysc_ext_instance.parent - `struct lysc_ext *` */ + LY_STMT_NOTIFICATION = 0x0001, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_notif *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_notif *` */ + LY_STMT_INPUT = 0x0002, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_action_inout *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_action_inout *` */ + LY_STMT_OUTPUT = 0x0004, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_action_inout *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_action_inout *` */ + LY_STMT_ACTION = 0x0008, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_action *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_action *` */ + LY_STMT_RPC = 0x0010, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_action *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_action *` */ + LY_STMT_ANYDATA = 0x0020, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_anydata *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_anydata *` */ + LY_STMT_ANYXML = 0x0040, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_anydata *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_anydata *` */ + LY_STMT_AUGMENT = 0x0080, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_augment *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_CASE = 0x0100, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_case *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_case *` */ + LY_STMT_CHOICE = 0x0200, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_choice *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_choice *` */ + LY_STMT_CONTAINER = 0x0400, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_container *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_container *` */ + LY_STMT_GROUPING = 0x0800, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_grp *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_LEAF = 0x1000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_leaf *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_leaf *` */ + LY_STMT_LEAF_LIST = 0x2000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_leaflist *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_leaflist *` */ + LY_STMT_LIST = 0x4000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_list *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node_list *` */ + LY_STMT_USES = 0x8000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_node_uses *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_node *` */ + + LY_STMT_ARGUMENT = 0x10000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_ext *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_ext *` */ + LY_STMT_BASE = 0x20000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char **`[] + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_ident *` */ + LY_STMT_BELONGS_TO = 0x30000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_submodule *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_BIT = 0x40000, /**< lysp_ext_substmt.storage - `struct lysp_type_enum *`[] + lysp_ext_instance.parent - `struct lysp_type_enum *` + lysc_ext_substmt.storage - `struct lysc_type_bitenum_item *`[] + lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ + LY_STMT_CONFIG = 0x50000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `uint16_t *` + lysc_ext_substmt.storage - `uint16_t *` + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_CONTACT = 0x60000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_(sub)module *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_DEFAULT = 0x70000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_qname *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_node *`, `struct lysc_type *` (typedef) */ + LY_STMT_DESCRIPTION = 0x80000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - compiled parent statement */ + LY_STMT_DEVIATE = 0x90000, /**< lysp_ext_substmt.storage - `struct lysp_deviate *`[] + lysp_ext_instance.parent - `struct lysp_deviate *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - not compiled */ + LY_STMT_DEVIATION = 0xA0000, /**< lysp_ext_substmt.storage - `struct lysp_deviation *`[] + lysp_ext_instance.parent - `struct lysp_deviation *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_ENUM = 0xB0000, /**< lysp_ext_substmt.storage - `struct lysp_type_enum *`[] + lysp_ext_instance.parent - `struct lysp_type_enum *` + lysc_ext_substmt.storage - `struct lysc_type_bitenum_item *`[] + lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ + LY_STMT_ERROR_APP_TAG = 0xC0000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - compiled restriction structure */ + LY_STMT_ERROR_MESSAGE = 0xD0000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - compiled restriction structure */ + LY_STMT_EXTENSION = 0xE0000, /**< lysp_ext_substmt.storage - `struct lysp_ext *`[] + lysp_ext_instance.parent - `struct lysp_ext *` + lysc_ext_substmt.storage - not compiled explicitly + lysc_ext_instance.parent - `struct lysc_ext *` */ + LY_STMT_EXTENSION_INSTANCE = 0xF0000, /**< lysp_ext_substmt.storage - `struct lysp_ext_instance *`[] + lysc_ext_substmt.storage - `struct lysc_ext_instance *`[] */ + LY_STMT_FEATURE = 0x100000, /**< lysp_ext_substmt.storage - `struct lysp_feature *`[] + lysp_ext_instance.parent - `struct lysp_feature *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - not compiled */ + LY_STMT_FRACTION_DIGITS = 0x110000, /**< lysp_ext_substmt.storage - `uint8_t *` + lysp_ext_instance.parent - `struct lysp_type *` + lysc_ext_substmt.storage - `uint8_t *` + lysc_ext_instance.parent - `struct lysc_type *` */ + LY_STMT_IDENTITY = 0x120000, /**< lysp_ext_substmt.storage - `struct lysp_ident *`[] + lysp_ext_instance.parent - `struct lysp_ident *` + lysc_ext_substmt.storage - `struct lysc_ident *`[] + lysc_ext_instance.parent - `struct lysc_ident *` */ + LY_STMT_IF_FEATURE = 0x130000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_qname *`[] + lysc_ext_substmt.storage - no storage, evaluated when compiled + lysc_ext_instance.parent - compiled parent statement */ + LY_STMT_IMPORT = 0x140000, /**< lysp_ext_substmt.storage - `struct lysp_import *`[] + lysp_ext_instance.parent - `struct lysp_import *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - not compiled */ + LY_STMT_INCLUDE = 0x150000, /**< lysp_ext_substmt.storage - `struct lysp_include *`[] + lysp_ext_instance.parent - `struct lysp_include *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - not compiled */ + LY_STMT_KEY = 0x160000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_node_list *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_node_list *` */ + LY_STMT_LENGTH = 0x170000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_range *` */ + LY_STMT_MANDATORY = 0x180000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `uint16_t *` + lysc_ext_substmt.storage - `uint16_t *` + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_MAX_ELEMENTS = 0x190000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `uint32_t *` + lysc_ext_substmt.storage - `uint32_t *` + lysc_ext_instance.parent - `struct lysc_node_list *` */ + LY_STMT_MIN_ELEMENTS = 0x1A0000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `uint32_t *` + lysc_ext_substmt.storage - `uint32_t *` + lysc_ext_instance.parent - `struct lysc_node_list *` */ + LY_STMT_MODIFIER = 0x1B0000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_pattern *` */ + LY_STMT_MODULE = 0x1C0000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_module *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_MUST = 0x1D0000, /**< lysp_ext_substmt.storage - `struct lysp_restr *`[] + lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage - `struct lysc_must *`[] + lysc_ext_instance.parent - `struct lysc_must *` */ + LY_STMT_NAMESPACE = 0x1E0000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_module *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_ORDERED_BY = 0x1F0000, /**< lysp_ext_substmt.storage - `uint16_t *` + lysp_ext_instance.parent - `struct lysp_node *` + lysc_ext_substmt.storage - `uint16_t *` + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_ORGANIZATION = 0x200000, /**< lysp_ext_substmt.storage - `const char *` + lysp_ext_instance.parent - `struct lysp_(sub)module *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_PATH = 0x210000, /**< lysp_ext_substmt.storage - `struct lyxp_expr *` + lysp_ext_instance.parent - `struct lysp_type *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_type *` */ + LY_STMT_PATTERN = 0x220000, /**< lysp_ext_substmt.storage - `struct lysp_restr *`[] + lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage - `struct lysc_pattern **`[] + lysc_ext_instance.parent - `struct lysc_pattern *` */ + LY_STMT_POSITION = 0x230000, /**< lysp_ext_substmt.storage - `int64_t *` + lysp_ext_instance.parent - `struct lysp_type_enum *` + lysc_ext_substmt.storage - `int64_t *` + lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ + LY_STMT_PREFIX = 0x240000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_PRESENCE = 0x250000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_node_container *` */ + LY_STMT_RANGE = 0x260000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_restr *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_range *` */ + LY_STMT_REFERENCE = 0x270000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - compiled parent statement */ + LY_STMT_REFINE = 0x280000, /**< lysp_ext_substmt.storage - `struct lysp_refine *`[] + lysp_ext_instance.parent - `struct lysp_refine *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_node *` */ + LY_STMT_REQUIRE_INSTANCE = 0x290000, /**< lysp_ext_substmt.storage - `uint8_t *` + lysp_ext_instance.parent - `struct lysp_type *` + lysc_ext_substmt.storage - `uint8_t *` + lysc_ext_instance.parent - `struct lysc_type *` */ + LY_STMT_REVISION = 0x2A0000, /**< lysp_ext_substmt.storage - `struct lysp_revision *`[] + lysp_ext_instance.parent - `struct lysp_revision *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - not compiled */ + LY_STMT_REVISION_DATE = 0x2B0000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - not compiled */ + LY_STMT_STATUS = 0x2C0000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `uint16_t *` + lysc_ext_substmt.storage - `uint16_t *` + lysc_ext_instance.parent - compiled parent statement */ + LY_STMT_SUBMODULE = 0x2D0000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_submodule *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_TYPE = 0x2E0000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_type *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_type *` */ + LY_STMT_TYPEDEF = 0x2F0000, /**< lysp_ext_substmt.storage - `struct lysp_tpdf *`[] + lysp_ext_instance.parent - `struct lysp_tpdf *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_type *` */ + LY_STMT_UNIQUE = 0x300000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_qname *`[] + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_node_list *` */ + LY_STMT_UNITS = 0x310000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `const char *` + lysc_ext_substmt.storage - `const char *` + lysc_ext_instance.parent - `struct lysc_node *`, `struct lysc_type *` (typedef) */ + LY_STMT_VALUE = 0x320000, /**< lysp_ext_substmt.storage - `int64_t *` + lysp_ext_instance.parent - `struct lysp_type_enum *` + lysc_ext_substmt.storage - `int64_t *` + lysc_ext_instance.parent - `struct lysc_type_bitenum_item *` */ + LY_STMT_WHEN = 0x330000, /**< lysp_ext_substmt.storage and lysp_ext_instance.parent - `struct lysp_when *` + lysc_ext_substmt.storage and lysc_ext_instance.parent - `struct lysc_when *` */ + LY_STMT_YANG_VERSION = 0x340000, /**< lysp_ext_substmt.storage - `uint8_t *` + lysp_ext_instance.parent - `struct lysp_(sub)module *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_module *` */ + LY_STMT_YIN_ELEMENT = 0x350000, /**< lysp_ext_substmt.storage - `uint16_t *` + lysp_ext_instance.parent - `struct lysp_ext *` + lysc_ext_substmt.storage - not compiled + lysc_ext_instance.parent - `struct lysc_ext *` */ /* separated from the list of statements * the following tokens are part of the syntax and parsers have to work @@ -956,8 +956,8 @@ LIBYANG_API_DECL LY_ERR lyplg_ext_compiled_print_add_addr(struct ly_ht *addr_ht, /** * @brief Extension plugin implementing various aspects of a YANG extension. * - * Every plugin should have at least either ::parse() or ::compile() callback defined but other than that **all** - * the callbacks are **optional**. + * Every plugin should have at least either ::struct lyplg_ext.parse() or ::struct lyplg_ext.compile() callback defined + * but other than that **all** the callbacks are **optional**. */ struct lyplg_ext { const char *id; /**< plugin identification (mainly for distinguish incompatible versions diff --git a/src/plugins_types.h b/src/plugins_types.h index 8e32b2f8f9..feabb5c930 100644 --- a/src/plugins_types.h +++ b/src/plugins_types.h @@ -83,7 +83,7 @@ struct lysc_type_leafref; * * Usually, all the validation according to the type's restrictions is done in the store callback. However, in case the type * requires some validation referencing other entities in the data tree, the optional validation callback - * ::lyplg_type_validate_clb can be implemented. + * ::lyplg_type_validate_tree_clb can be implemented. * * The stored values can be compared in a specific way by providing ::lyplg_type_compare_clb. In case the best way to compare * the values is to compare their canonical string representations, the ::lyplg_type_compare_simple() function can be used. @@ -122,7 +122,6 @@ struct lysc_type_leafref; * - ::lyplg_type_check_status() * - ::lyplg_type_lypath_check_status() * - ::lyplg_type_identity_isderived() - * - ::lyplg_type_identity_module() * - ::lyplg_type_make_implemented() * - ::lyplg_type_parse_dec64() * - ::lyplg_type_parse_int() @@ -543,7 +542,7 @@ LIBYANG_API_DECL typedef void (*lyplg_type_lyb_size_clb)(const struct lysc_type * @p value_size_bits is always correct. All store functions have to free a dynamically allocated @p value in all * cases (even on error). * - * No unnecessary validation tasks should be performed by this callback and left for ::lyplg_type_validate_clb instead. + * No unnecessary validation tasks should be performed by this callback and left for ::lyplg_type_validate_value_clb instead. * * @param[in] ctx libyang context. * @param[in] type Type of the value being stored. diff --git a/src/tree_schema.h b/src/tree_schema.h index 3d0336d8a3..e6c600619b 100644 --- a/src/tree_schema.h +++ b/src/tree_schema.h @@ -82,7 +82,7 @@ struct lyxp_expr; * it to navigate through the schema tree structure or to obtain various information, we recommend to use the following * macros for the specific actions. * - ::LYSC_TREE_DFS_BEGIN and ::LYSC_TREE_DFS_END to traverse the schema tree (depth-first). - * - ::LY_LIST_FOR and ::LY_ARRAY_FOR as described on @ref howtoStructures page. + * - ::LY_LIST_FOR and ::LYA_FOR as described on @ref howtoStructures page. * * Further information about modules handling can be found on the following pages: * - @subpage howtoSchemaParsers From 58a9d5dd2bf113be2235432758977fe1e03fbb12 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 16 Nov 2026 09:47:00 +0100 Subject: [PATCH 5/5] VERSION bump to version 6.4.27 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a867b12603..4f3da711f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 6) set(LIBYANG_MINOR_VERSION 4) -set(LIBYANG_MICRO_VERSION 26) +set(LIBYANG_MICRO_VERSION 27) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library