Skip to content

Commit 5f5c0a2

Browse files
committed
Register YANG versioning extension plugins
- Add external declarations for plugins_yang_semver and plugins_yang_revisions - Register both plugin sets during library initialization - Add source files to build system (CMakeLists.txt)
1 parent 2cf0cc0 commit 5f5c0a2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ set(libsrc
157157
src/plugins_exts/yangdata.c
158158
src/plugins_exts/schema_mount.c
159159
src/plugins_exts/structure.c
160+
src/plugins_exts/yang_semver.c
161+
src/plugins_exts/yang_revisions.c
160162
src/xml.c
161163
src/xpath.c
162164
src/validation.c

src/plugins.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ extern struct lyplg_ext_record plugins_nacm[];
9898
extern struct lyplg_ext_record plugins_yangdata[];
9999
extern struct lyplg_ext_record plugins_schema_mount[];
100100
extern struct lyplg_ext_record plugins_structure[];
101+
extern struct lyplg_ext_record plugins_yang_semver[];
102+
extern struct lyplg_ext_record plugins_yang_revisions[];
101103

102104
static pthread_mutex_t plugins_guard = PTHREAD_MUTEX_INITIALIZER;
103105

@@ -538,6 +540,8 @@ lyplg_init(ly_bool builtin_type_plugins_only)
538540
LY_CHECK_GOTO(ret = plugins_insert(NULL, LYPLG_EXTENSION, plugins_yangdata), error);
539541
LY_CHECK_GOTO(ret = plugins_insert(NULL, LYPLG_EXTENSION, plugins_schema_mount), error);
540542
LY_CHECK_GOTO(ret = plugins_insert(NULL, LYPLG_EXTENSION, plugins_structure), error);
543+
LY_CHECK_GOTO(ret = plugins_insert(NULL, LYPLG_EXTENSION, plugins_yang_semver), error);
544+
LY_CHECK_GOTO(ret = plugins_insert(NULL, LYPLG_EXTENSION, plugins_yang_revisions), error);
541545
}
542546

543547
#ifndef STATIC

0 commit comments

Comments
 (0)