static void
invalidate_cache(struct ctl_context *ctx)
{
- if (ctx->invalidate_cache) {
- (ctx->invalidate_cache)(ctx);
+ if (ctx->invalidate_cache_cb) {
+ (ctx->invalidate_cache_cb)(ctx);
}
}
\f
ctl_context_init(struct ctl_context *ctx, struct ctl_command *command,
struct ovsdb_idl *idl, struct ovsdb_idl_txn *txn,
struct ovsdb_symbol_table *symtab,
- void (*invalidate_cache)(struct ctl_context *))
+ void (*invalidate_cache_cb)(struct ctl_context *))
{
if (command) {
ctl_context_init_command(ctx, command);
ctx->idl = idl;
ctx->txn = txn;
ctx->symtab = symtab;
- ctx->invalidate_cache = invalidate_cache;
+ ctx->invalidate_cache_cb = invalidate_cache_cb;
}
/* Completes processing of 'command' within 'ctx'. */
/* For implementation with a cache of the contents of the database,
* this function will be called when the database is changed and the
* change makes the cache no longer valid. */
- void (*invalidate_cache)(struct ctl_context *);
+ void (*invalidate_cache_cb)(struct ctl_context *);
/* A command may set this member to true if some prerequisite is not met
* and the caller should wait for something to change and then retry. */