From a8425c53c5785856cabe80295f0cea0135febdb6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 16 Nov 2009 10:38:14 -0800 Subject: ovsdb: Monitor support. --- ovsdb/column.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ovsdb/column.c') diff --git a/ovsdb/column.c b/ovsdb/column.c index 1e8a2d09d..fc21cdc98 100644 --- a/ovsdb/column.c +++ b/ovsdb/column.c @@ -174,6 +174,19 @@ error: "array of distinct column names expected"); } +struct json * +ovsdb_column_set_to_json(const struct ovsdb_column_set *set) +{ + struct json *json; + size_t i; + + json = json_array_create_empty(); + for (i = 0; i < set->n_columns; i++) { + json_array_add(json, json_string_create(set->columns[i]->name)); + } + return json; +} + void ovsdb_column_set_add(struct ovsdb_column_set *set, const struct ovsdb_column *column) -- cgit v1.2.1