From 8159b984dced44851670bd48e204b4e854941a24 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Dec 2010 14:26:47 -0800 Subject: Implement database schema versioning. As the database schema evolves, it might be useful to have an identifier for the particular version in use. This commit adds that feature. --- ovsdb/ovsdb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ovsdb/ovsdb.h') diff --git a/ovsdb/ovsdb.h b/ovsdb/ovsdb.h index a83412dcd..642f686f0 100644 --- a/ovsdb/ovsdb.h +++ b/ovsdb/ovsdb.h @@ -29,10 +29,12 @@ struct uuid; /* Database schema. */ struct ovsdb_schema { char *name; + char *version; struct shash tables; /* Contains "struct ovsdb_table_schema *"s. */ }; -struct ovsdb_schema *ovsdb_schema_create(const char *name); +struct ovsdb_schema *ovsdb_schema_create(const char *name, + const char *version); struct ovsdb_schema *ovsdb_schema_clone(const struct ovsdb_schema *); void ovsdb_schema_destroy(struct ovsdb_schema *); -- cgit v1.2.1