aboutsummaryrefslogtreecommitdiff
path: root/lib/ovsdb-data.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-06-02 11:08:03 -0700
committerBen Pfaff <blp@nicira.com>2010-06-17 10:30:18 -0700
commitce5a3e38dacd8042dd7c4de7be24aca9c2887103 (patch)
tree2bb4bea16ab54217c2778786ce6737c3e8f36312 /lib/ovsdb-data.h
parent4a0335937fb482e412952a5e05ef738eab9542dc (diff)
ovs-vsctl: Support references among records at creation time.
This makes it easy to create a bunch of records that are all related to each other in a single ovs-vsctl invocation. It adds an example to the ovs-vsctl manpage.
Diffstat (limited to 'lib/ovsdb-data.h')
-rw-r--r--lib/ovsdb-data.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h
index a5c49f97..e12153c9 100644
--- a/lib/ovsdb-data.h
+++ b/lib/ovsdb-data.h
@@ -75,7 +75,8 @@ struct json *ovsdb_atom_to_json(const union ovsdb_atom *,
enum ovsdb_atomic_type);
char *ovsdb_atom_from_string(union ovsdb_atom *,
- const struct ovsdb_base_type *, const char *)
+ const struct ovsdb_base_type *, const char *,
+ struct ovsdb_symbol_table *)
WARN_UNUSED_RESULT;
void ovsdb_atom_to_string(const union ovsdb_atom *, enum ovsdb_atomic_type,
struct ds *);
@@ -142,7 +143,8 @@ struct json *ovsdb_datum_to_json(const struct ovsdb_datum *,
const struct ovsdb_type *);
char *ovsdb_datum_from_string(struct ovsdb_datum *,
- const struct ovsdb_type *, const char *)
+ const struct ovsdb_type *, const char *,
+ struct ovsdb_symbol_table *)
WARN_UNUSED_RESULT;
void ovsdb_datum_to_string(const struct ovsdb_datum *,
const struct ovsdb_type *, struct ds *);
@@ -216,6 +218,7 @@ struct ovsdb_symbol *ovsdb_symbol_table_put(struct ovsdb_symbol_table *,
const struct uuid *, bool used);
struct ovsdb_symbol *ovsdb_symbol_table_insert(struct ovsdb_symbol_table *,
const char *name);
+const char *ovsdb_symbol_table_find_unused(const struct ovsdb_symbol_table *);
/* Tokenization
*