summaryrefslogtreecommitdiff
path: root/ovsdb/ovsdb.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-27 14:26:47 -0800
committerBen Pfaff <blp@nicira.com>2010-12-27 14:26:47 -0800
commit8159b984dced44851670bd48e204b4e854941a24 (patch)
treefd1c2b8187747cece69b8fe5be114ef127a15773 /ovsdb/ovsdb.h
parent538c6dfab42ec72f916e80f916e858f988d1c48d (diff)
downloadopenvswitch-8159b984dced44851670bd48e204b4e854941a24.tar.gz
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.
Diffstat (limited to 'ovsdb/ovsdb.h')
-rw-r--r--ovsdb/ovsdb.h4
1 files changed, 3 insertions, 1 deletions
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 *);