schema compile CHANGE partial support for deviations
Currently supported deviations:
- not-supported
- add - units, must, default
- delete - units, must, default
- replace - units, default
diff --git a/src/tree_schema.h b/src/tree_schema.h
index cb78110..506267d 100644
--- a/src/tree_schema.h
+++ b/src/tree_schema.h
@@ -575,7 +575,9 @@
* 9 LYS_KEY | | |x| | | | | | | | | | | |
* LYS_FENABLED | | | | | | | | | | | |x| | |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- * 10 LYS_SET_DFLT | | |x| | | |x| | | | | | | |
+ * 10 LYS_SET_DFLT | | |x|x| | |x| | | | | | | |
+ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ * 11 LYS_SET_UNITS | | |x|x| | | | | | | | | | |
* ---------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*
*/
@@ -625,10 +627,12 @@
#define LYS_SET_RANGE 0x0080 /**< type's flag for present range substatement */
#define LYS_SET_TYPE 0x0100 /**< type's flag for present type substatement */
#define LYS_SET_REQINST 0x0200 /**< type's flag for present require-instance substatement */
-#define LYS_SET_DFLT 0x0200 /**< flag to mark leaf with own (or refined) default value, not a default value taken from its type, and default
+#define LYS_SET_DFLT 0x0200 /**< flag to mark leaf/leaflist with own (or refined) default value, not a default value taken from its type, and default
cases of choice. This information is important for refines, since it is prohibited to make leafs
with default statement mandatory. In case the default leaf value is taken from type, it is thrown
- away when it is refined to be mandatory node. */
+ away when it is refined to be mandatory node. Similarly it is used for deviations to distinguish
+ between own default or the default values taken from the type. */
+#define LYS_SET_UNITS 0x0400 /**< flag to know if the leaf's/leaflist's units are their own (flag set) or it is taken from the type. */
#define LYS_FLAGS_COMPILED_MASK 0xff /**< mask for flags that maps to the compiled structures */
/** @} */