X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fovsdb-data.h;h=820a4dbb3a9be3a1ee6268c16798ae8a2f604651;hb=f51c1d9890c84c00950dbe5d174ef2682686bcb3;hp=4f44fd847b7955edee7c4ffb1409e2f437bd1f18;hpb=958ac03a3f785303399316eda76362d26adb09d4;p=openvswitch diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h index 4f44fd84..820a4dbb 100644 --- a/lib/ovsdb-data.h +++ b/lib/ovsdb-data.h @@ -84,6 +84,11 @@ struct ovsdb_error *ovsdb_atom_from_json(union ovsdb_atom *, const struct json *, struct ovsdb_symbol_table *) WARN_UNUSED_RESULT; +struct ovsdb_error *ovsdb_datum_from_json_unique(struct ovsdb_datum *, + const struct ovsdb_type *, + const struct json *, + struct ovsdb_symbol_table *) + WARN_UNUSED_RESULT; struct json *ovsdb_atom_to_json(const union ovsdb_atom *, enum ovsdb_atomic_type); @@ -143,6 +148,10 @@ struct ovsdb_error *ovsdb_datum_sort(struct ovsdb_datum *, void ovsdb_datum_sort_assert(struct ovsdb_datum *, enum ovsdb_atomic_type key_type); +size_t ovsdb_datum_sort_unique(struct ovsdb_datum *, + enum ovsdb_atomic_type key_type, + enum ovsdb_atomic_type value_type); + struct ovsdb_error *ovsdb_datum_check_constraints( const struct ovsdb_datum *, const struct ovsdb_type *) WARN_UNUSED_RESULT;