parser REFACTOR unify function naming
diff --git a/src/parser_common.c b/src/parser_common.c
index 5dadecf..0d03229 100644
--- a/src/parser_common.c
+++ b/src/parser_common.c
@@ -360,7 +360,7 @@
}
LY_ERR
-lyd_parse_check_keys(struct lyd_node *node)
+lyd_parser_check_keys(struct lyd_node *node)
{
const struct lysc_node *skey = NULL;
const struct lyd_node *key;
@@ -381,7 +381,7 @@
}
LY_ERR
-lyd_parse_set_data_flags(struct lyd_node *node, struct lyd_meta **meta, struct lyd_ctx *lydctx,
+lyd_parser_set_data_flags(struct lyd_node *node, struct lyd_meta **meta, struct lyd_ctx *lydctx,
struct lysc_ext_instance *ext)
{
struct lyd_meta *meta2, *prev_meta = NULL, *next_meta = NULL;
@@ -3569,7 +3569,7 @@
}
LY_ERR
-lys_parse_ext_instance_stmt(struct lysp_ctx *pctx, struct lysp_ext_substmt *substmt, struct lysp_stmt *stmt)
+lys_parser_ext_instance_stmt(struct lysp_ctx *pctx, struct lysp_ext_substmt *substmt, struct lysp_stmt *stmt)
{
LY_ERR rc = LY_SUCCESS;
diff --git a/src/parser_internal.h b/src/parser_internal.h
index 0c026a0..29680d8 100644
--- a/src/parser_internal.h
+++ b/src/parser_internal.h
@@ -424,7 +424,7 @@
* @return LY_SUCCESS on success.
* @return LY_ENOT on a missing key.
*/
-LY_ERR lyd_parse_check_keys(struct lyd_node *node);
+LY_ERR lyd_parser_check_keys(struct lyd_node *node);
/**
* @brief Set data flags for a newly parsed node.
@@ -435,7 +435,7 @@
* @param[in] ext Extension instance if @p node was parsed for one.
* @return LY_ERR value.
*/
-LY_ERR lyd_parse_set_data_flags(struct lyd_node *node, struct lyd_meta **meta, struct lyd_ctx *lydctx,
+LY_ERR lyd_parser_set_data_flags(struct lyd_node *node, struct lyd_meta **meta, struct lyd_ctx *lydctx,
struct lysc_ext_instance *ext);
/**
@@ -446,6 +446,6 @@
* @param[in] stmt Parsed generic statement to process.
* @return LY_ERR value.
*/
-LY_ERR lys_parse_ext_instance_stmt(struct lysp_ctx *pctx, struct lysp_ext_substmt *substmt, struct lysp_stmt *stmt);
+LY_ERR lys_parser_ext_instance_stmt(struct lysp_ctx *pctx, struct lysp_ext_substmt *substmt, struct lysp_stmt *stmt);
#endif /* LY_PARSER_INTERNAL_H_ */
diff --git a/src/parser_json.c b/src/parser_json.c
index 4a94d03..7f0f2d1 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -671,7 +671,7 @@
}
/* add/correct flags */
- ret = lyd_parse_set_data_flags(node, &node->meta, (struct lyd_ctx *)lydctx, ext);
+ ret = lyd_parser_set_data_flags(node, &node->meta, (struct lyd_ctx *)lydctx, ext);
LY_CHECK_GOTO(ret, cleanup);
break;
}
@@ -857,7 +857,7 @@
LY_CHECK_GOTO(rc, cleanup);
/* add/correct flags */
- rc = lyd_parse_set_data_flags(node, &node->meta, (struct lyd_ctx *)lydctx, NULL);
+ rc = lyd_parser_set_data_flags(node, &node->meta, (struct lyd_ctx *)lydctx, NULL);
LY_CHECK_GOTO(rc, cleanup);
} else {
/* create attribute */
@@ -1434,7 +1434,7 @@
if (snode->nodetype == LYS_LIST) {
/* check all keys exist */
- r = lyd_parse_check_keys(*node);
+ r = lyd_parser_check_keys(*node);
LY_DPARSER_ERR_GOTO(r, rc = r, lydctx, cleanup);
}
@@ -1530,7 +1530,7 @@
LY_CHECK_GOTO(!*node, cleanup);
/* add/correct flags */
- r = lyd_parse_set_data_flags(*node, &(*node)->meta, (struct lyd_ctx *)lydctx, ext);
+ r = lyd_parser_set_data_flags(*node, &(*node)->meta, (struct lyd_ctx *)lydctx, ext);
LY_CHECK_ERR_GOTO(r, rc = r, cleanup);
if (!(lydctx->parse_opts & LYD_PARSE_ONLY)) {
diff --git a/src/parser_xml.c b/src/parser_xml.c
index 34d6fdc..219da8c 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -863,7 +863,7 @@
if (snode->nodetype == LYS_LIST) {
/* check all keys exist */
- r = lyd_parse_check_keys(*node);
+ r = lyd_parser_check_keys(*node);
LY_CHECK_ERR_GOTO(r, rc = r, cleanup);
}
@@ -1107,7 +1107,7 @@
node_parsed:
if (node && snode) {
/* add/correct flags */
- r = lyd_parse_set_data_flags(node, &meta, (struct lyd_ctx *)lydctx, ext);
+ r = lyd_parser_set_data_flags(node, &meta, (struct lyd_ctx *)lydctx, ext);
LY_CHECK_ERR_GOTO(r, rc = r; lyd_free_tree(node), cleanup);
if (!(lydctx->parse_opts & LYD_PARSE_ONLY)) {
diff --git a/src/plugins_exts.c b/src/plugins_exts.c
index 71449ba..af81792 100644
--- a/src/plugins_exts.c
+++ b/src/plugins_exts.c
@@ -67,7 +67,7 @@
continue;
}
- if ((rc = lys_parse_ext_instance_stmt(pctx, &ext->substmts[u], stmt))) {
+ if ((rc = lys_parser_ext_instance_stmt(pctx, &ext->substmts[u], stmt))) {
goto cleanup;
}
}