commit | 8bc87f60158c6b59781e6c7e578814d534db27e6 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Wed Sep 02 16:19:05 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Sep 02 16:19:05 2015 +0200 |
tree | 2bd2982c84e13e560721b50f9482dc0ba28e0e0f | |
parent | a3097ed3e0fd7074ab4dc9b82a316d8d1b966c03 [diff] |
schema tree FEATURE add generic function lys_getnext() lys_getnext() is supposed to return next (according to parameters) schema tree node that can be instanciated in a data tree. Simple traversing sibling nodes is useless since schema tree nodes from different tree level can be instanciated on the same data tree level (due to uses, choices, ...).
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
$ cmake . $ make # make install
There are two build modes:
The Debug
mode is currently used as the default one. to switch to the Release
mode, enter at the command line:
$ cmake -D CMAKE_BUILD_TYPE:String="Release" .
Set CC variable:
$ CC=/usr/bin/clang cmake .
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first. For your convenience, this action is available as cclean
target of the Makefile:
$ make cclean $ CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .