summaryrefslogtreecommitdiff
path: root/lib/ovsdb-data.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-12-07 11:47:48 -0800
committerBen Pfaff <blp@nicira.com>2009-12-07 17:10:28 -0800
commit2d2d6d4a71776813f8d2fd1af1051f22b836befc (patch)
tree8dd4b479972a5200999b63dbdca9d73a22ec47b3 /lib/ovsdb-data.h
parentf6f8c3ba779e357801ebaefdf8ef8a426ab73ea4 (diff)
downloadopenvswitch-2d2d6d4a71776813f8d2fd1af1051f22b836befc.tar.gz
ovsdb: Implement new "declare" operation.
Diffstat (limited to 'lib/ovsdb-data.h')
-rw-r--r--lib/ovsdb-data.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h
index 35c4e3075..b31aa5d49 100644
--- a/lib/ovsdb-data.h
+++ b/lib/ovsdb-data.h
@@ -118,11 +118,16 @@ ovsdb_datum_conforms_to_type(const struct ovsdb_datum *datum,
/* A table mapping from names to data items. Currently the data items are
* always UUIDs; perhaps this will be expanded in the future. */
+struct ovsdb_symbol {
+ struct uuid uuid; /* The UUID that the symbol represents. */
+ bool used; /* Already used as row UUID? */
+};
+
struct ovsdb_symbol_table *ovsdb_symbol_table_create(void);
void ovsdb_symbol_table_destroy(struct ovsdb_symbol_table *);
-const struct uuid *ovsdb_symbol_table_get(const struct ovsdb_symbol_table *,
- const char *name);
+struct ovsdb_symbol *ovsdb_symbol_table_get(const struct ovsdb_symbol_table *,
+ const char *name);
void ovsdb_symbol_table_put(struct ovsdb_symbol_table *, const char *name,
- const struct uuid *);
+ const struct uuid *, bool used);
#endif /* ovsdb-data.h */