X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fovsdb-data.h;h=a5c49f974e48df6d2e4cbd722fc42f70c3f48106;hb=fb0d597fb64308c60001e3afc9b31eb295dedb6b;hp=063536b220e0a079161bc8bde5c5ce429d7da826;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h index 063536b2..a5c49f97 100644 --- a/lib/ovsdb-data.h +++ b/lib/ovsdb-data.h @@ -122,7 +122,12 @@ void ovsdb_datum_swap(struct ovsdb_datum *, struct ovsdb_datum *); /* Checking and maintaining invariants. */ struct ovsdb_error *ovsdb_datum_sort(struct ovsdb_datum *, - const struct ovsdb_type *); + enum ovsdb_atomic_type key_type) + WARN_UNUSED_RESULT; + +void ovsdb_datum_sort_assert(struct ovsdb_datum *, + enum ovsdb_atomic_type key_type); + struct ovsdb_error *ovsdb_datum_check_constraints( const struct ovsdb_datum *, const struct ovsdb_type *) WARN_UNUSED_RESULT;