summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-02 21:19:12 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-02 21:19:12 +0200
commitcfc77159d818aa5939d9f1753f65bd14fa8085cc (patch)
tree92465984e4b0a4eb93474a177a4c3ce959f81b7f /common.c
parentf7c08fdace3a632f60b225cd2146ee806401203c (diff)
downloadxK-cfc77159d818aa5939d9f1753f65bd14fa8085cc.tar.gz
xK-cfc77159d818aa5939d9f1753f65bd14fa8085cc.tar.xz
xK-cfc77159d818aa5939d9f1753f65bd14fa8085cc.zip
config: on_changed -> on_change
Diffstat (limited to 'common.c')
-rw-r--r--common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common.c b/common.c
index 8d8dcf6..d233b5e 100644
--- a/common.c
+++ b/common.c
@@ -557,7 +557,7 @@ struct config_schema
bool (*validate) (const struct config_item_ *, struct error **e);
/// The value has changed
- void (*on_changed) (struct config_item_ *);
+ void (*on_change) (struct config_item_ *);
};
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -737,8 +737,8 @@ config_item_set_from (struct config_item_ *self, struct config_item_ *source,
config_item_move (self, source);
// Notify owner about the change so that they can apply it
- if (schema->on_changed)
- schema->on_changed (self);
+ if (schema->on_change)
+ schema->on_change (self);
return true;
}
@@ -1452,8 +1452,8 @@ config_schema_fix_value
item->type = schema->type;
item->schema = schema;
- if (schema->on_changed)
- schema->on_changed (item);
+ if (schema->on_change)
+ schema->on_change (item);
}
static void