yanglint REFACTOR renaming feature_schema
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 71a0639..fee2b81 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -245,11 +245,11 @@
}
}
-static struct schema_features *
+static struct yl_schema_features *
get_features_not_applied(const struct ly_set *fset)
{
for (uint32_t u = 0; u < fset->count; ++u) {
- struct schema_features *sf = fset->objs[u];
+ struct yl_schema_features *sf = fset->objs[u];
if (!sf->applied) {
return sf;
@@ -304,7 +304,7 @@
static int
apply_features(struct ly_set *schema_features, struct ly_ctx *ctx)
{
- struct schema_features *sf;
+ struct yl_schema_features *sf;
struct lys_module *mod;
/* check that all specified features were applied, apply now if possible */
diff --git a/tools/lint/yl_schema_features.c b/tools/lint/yl_schema_features.c
index 52c75e7..0caac17 100644
--- a/tools/lint/yl_schema_features.c
+++ b/tools/lint/yl_schema_features.c
@@ -27,7 +27,7 @@
void
yl_schema_features_free(void *flist)
{
- struct schema_features *rec = (struct schema_features *)flist;
+ struct yl_schema_features *rec = (struct yl_schema_features *)flist;
if (rec) {
free(rec->mod_name);
@@ -46,7 +46,7 @@
{
/* get features list for this module */
for (uint32_t u = 0; u < fset->count; ++u) {
- struct schema_features *sf = (struct schema_features *)fset->objs[u];
+ struct yl_schema_features *sf = (struct yl_schema_features *)fset->objs[u];
if (!strcmp(module, sf->mod_name)) {
/* matched module - explicitly set features */
@@ -63,7 +63,7 @@
int
parse_features(const char *fstring, struct ly_set *fset)
{
- struct schema_features *rec;
+ struct yl_schema_features *rec;
uint32_t count;
char *p, **fp;
diff --git a/tools/lint/yl_schema_features.h b/tools/lint/yl_schema_features.h
index b697dcc..7c96ba8 100644
--- a/tools/lint/yl_schema_features.h
+++ b/tools/lint/yl_schema_features.h
@@ -25,7 +25,7 @@
/**
* @brief Storage for the list of the features (their names) in a specific YANG module.
*/
-struct schema_features {
+struct yl_schema_features {
char *mod_name;
char **features;
uint8_t applied;