config: on_changed -> on_change
This commit is contained in:
parent
f7c08fdace
commit
cfc77159d8
10
common.c
10
common.c
|
@ -557,7 +557,7 @@ struct config_schema
|
||||||
bool (*validate) (const struct config_item_ *, struct error **e);
|
bool (*validate) (const struct config_item_ *, struct error **e);
|
||||||
|
|
||||||
/// The value has changed
|
/// 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);
|
config_item_move (self, source);
|
||||||
|
|
||||||
// Notify owner about the change so that they can apply it
|
// Notify owner about the change so that they can apply it
|
||||||
if (schema->on_changed)
|
if (schema->on_change)
|
||||||
schema->on_changed (self);
|
schema->on_change (self);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1452,8 +1452,8 @@ config_schema_fix_value
|
||||||
item->type = schema->type;
|
item->type = schema->type;
|
||||||
|
|
||||||
item->schema = schema;
|
item->schema = schema;
|
||||||
if (schema->on_changed)
|
if (schema->on_change)
|
||||||
schema->on_changed (item);
|
schema->on_change (item);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue