Skip to content

Commit

Permalink
context MAINTENANCE make context const
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed May 9, 2019
1 parent d26ed89 commit 15b1308
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ ly_ctx_info(struct ly_ctx *ctx)
}

API const struct lys_node *
ly_ctx_get_node(struct ly_ctx *ctx, const struct lys_node *start, const char *nodeid, int output)
ly_ctx_get_node(const struct ly_ctx *ctx, const struct lys_node *start, const char *nodeid, int output)
{
const struct lys_node *node;

Expand Down
2 changes: 1 addition & 1 deletion src/libyang.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ const struct lys_submodule *ly_ctx_get_submodule2(const struct lys_module *main_
* @param[in] output Search operation output instead input.
* @return Resolved schema node or NULL.
*/
const struct lys_node *ly_ctx_get_node(struct ly_ctx *ctx, const struct lys_node *start, const char *data_path, int output);
const struct lys_node *ly_ctx_get_node(const struct ly_ctx *ctx, const struct lys_node *start, const char *data_path, int output);

/**
* @brief Get schema node according to the given schema path (see @ref howtoxpath).
Expand Down
2 changes: 1 addition & 1 deletion src/resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,7 @@ resolve_json_schema_list_predicate(const char *predicate, const struct lys_node_

/* cannot return LYS_GROUPING, LYS_AUGMENT, LYS_USES, logs directly */
const struct lys_node *
resolve_json_nodeid(const char *nodeid, struct ly_ctx *ctx, const struct lys_node *start, int output)
resolve_json_nodeid(const char *nodeid, const struct ly_ctx *ctx, const struct lys_node *start, int output)
{
char *str;
const char *name, *mod_name, *id, *backup_mod_name = NULL, *yang_data_name = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/resolve.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int resolve_choice_default_schema_nodeid(const char *nodeid, const struct lys_no
int resolve_absolute_schema_nodeid(const char *nodeid, const struct lys_module *module, int ret_nodetype,
const struct lys_node **ret);

const struct lys_node *resolve_json_nodeid(const char *nodeid, struct ly_ctx *ctx, const struct lys_node *start, int output);
const struct lys_node *resolve_json_nodeid(const char *nodeid, const struct ly_ctx *ctx, const struct lys_node *start, int output);

struct lyd_node *resolve_partial_json_data_nodeid(const char *nodeid, const char *llist_value, struct lyd_node *start,
int options, int *parsed);
Expand Down

0 comments on commit 15b1308

Please sign in to comment.