diff options
author | Ben Pfaff <blp@nicira.com> | 2009-11-16 10:38:14 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-11-17 16:02:46 -0800 |
commit | a8425c53c5785856cabe80295f0cea0135febdb6 (patch) | |
tree | af060d0fc8cb939e56087a3f90123bbeccac0a38 /ovsdb/column.c | |
parent | 1fd13cde12973420d573af8d161c612a9203b1cd (diff) | |
download | openvswitch-a8425c53c5785856cabe80295f0cea0135febdb6.tar.gz |
ovsdb: Monitor support.
Diffstat (limited to 'ovsdb/column.c')
-rw-r--r-- | ovsdb/column.c | 13 |
1 files changed, 13 insertions, 0 deletions
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) |