X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fovsdb-data.h;h=b31aa5d496f07d10ed0cdd0af2ba3f2f58787d31;hb=141f49423d7433b2a82b0de2d101f2dc6e6dbac9;hp=35c4e3075ca10b56852081db599a44506d14fb36;hpb=f85f8ebbfac946c19b3c6eb0f4170f579d0a4d25;p=openvswitch diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h index 35c4e307..b31aa5d4 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 */