data parser CHANGE support for various data types
Support another types of the input data. libyang is now compatible
with pyang's yang2dsdl supporting following types of data:
- data, config, get, getconfig, edit, rpc, rpcreply, notification
Caller can specify the type of the input data as parser option.
This commit changes API by removing 2 functions and modifying
parameters of several other functions. For more details, use script
in doc/ABI/
diff --git a/src/parser.h b/src/parser.h
index 7d2c150..a62d7c2 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -78,6 +78,22 @@
uint8_t flags2, struct lys_module *mod2, const char *name2, unsigned int line);
/**
+ * @brief Get know if the node is part of the RPC's input/output
+ *
+ * @param node Schema node to be examined.
+ * @return 1 for true, 0 for false
+ */
+int lyp_is_rpc(struct lys_node *node);
+
+/**
+ * @brief Check validity of parser options.
+ *
+ * @param options Parser options to be checked.
+ * @retrun 0 for ok, 1 when multiple data types bits are set.
+ */
+int lyp_check_options(int options);
+
+/**
* Store UTF-8 character specified as 4byte integer into the dst buffer.
* Returns number of written bytes (4 max), expects that dst has enough space.
*