aboutsummaryrefslogtreecommitdiff
path: root/lib/ovsdb-data.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-12-16 10:49:31 -0800
committerBen Pfaff <blp@nicira.com>2009-12-16 10:56:04 -0800
commite9f8f9367e9e654b9582279608af86ea3744a2a0 (patch)
treecf2e666f93b00d94d673c1569299d8cee0ce8c16 /lib/ovsdb-data.h
parenta105c27b4e24ac0d29ba131eca00793bc3385dca (diff)
ovsdb: Add new "mutation" operation to transactions.
Diffstat (limited to 'lib/ovsdb-data.h')
-rw-r--r--lib/ovsdb-data.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h
index b31aa5d4..3f2d4894 100644
--- a/lib/ovsdb-data.h
+++ b/lib/ovsdb-data.h
@@ -84,6 +84,8 @@ void ovsdb_datum_clone(struct ovsdb_datum *, const struct ovsdb_datum *,
const struct ovsdb_type *);
void ovsdb_datum_destroy(struct ovsdb_datum *, const struct ovsdb_type *);
void ovsdb_datum_swap(struct ovsdb_datum *, struct ovsdb_datum *);
+struct ovsdb_error *ovsdb_datum_sort(struct ovsdb_datum *,
+ const struct ovsdb_type *);
struct ovsdb_error *ovsdb_datum_from_json(struct ovsdb_datum *,
const struct ovsdb_type *,
@@ -108,6 +110,14 @@ bool ovsdb_datum_excludes_all(const struct ovsdb_datum *,
const struct ovsdb_datum *,
const struct ovsdb_type *);
+void ovsdb_datum_union(struct ovsdb_datum *,
+ const struct ovsdb_datum *,
+ const struct ovsdb_type *);
+void ovsdb_datum_subtract(struct ovsdb_datum *a,
+ const struct ovsdb_type *a_type,
+ const struct ovsdb_datum *b,
+ const struct ovsdb_type *b_type);
+
static inline bool
ovsdb_datum_conforms_to_type(const struct ovsdb_datum *datum,
const struct ovsdb_type *type)