-/* Copyright (c) 2009 Nicira Networks
+/* Copyright (c) 2009, 2010 Nicira Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/* Schema for a database table. */
struct ovsdb_table_schema {
char *name;
- char *comment;
bool mutable;
struct shash columns; /* Contains "struct ovsdb_column *"s. */
+ unsigned int max_rows; /* Maximum number of rows. */
};
struct ovsdb_table_schema *ovsdb_table_schema_create(const char *name,
- const char *comment,
- bool mutable);
+ bool mutable,
+ unsigned int max_rows);
+struct ovsdb_table_schema *ovsdb_table_schema_clone(
+ const struct ovsdb_table_schema *);
void ovsdb_table_schema_destroy(struct ovsdb_table_schema *);
struct ovsdb_error *ovsdb_table_schema_from_json(const struct json *,
struct ovsdb_table {
struct ovsdb_table_schema *schema;
+ struct ovsdb_txn_table *txn_table; /* Only if table is in a transaction. */
struct hmap rows; /* Contains "struct ovsdb_row"s. */
};