]> git.proxmox.com Git - mirror_ovs.git/blame - ovsdb/ovsdb-util.h
netdev-dpdk: Show Rx checksum status when false.
[mirror_ovs.git] / ovsdb / ovsdb-util.h
CommitLineData
40e66ba7
LR
1/* Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef OVSDB_UTIL_H
17#define OVSDB_UTIL_H 1
18
19/* Database access utility functions. */
20struct ovsdb_datum *ovsdb_util_get_datum(struct ovsdb_row *row,
21 const char *column_name,
22 const enum ovsdb_atomic_type keytype,
23 const enum ovsdb_atomic_type valtype,
24 const size_t n_max);
25const char *ovsdb_util_read_map_string_column(const struct ovsdb_row *row,
26 const char *column_name,
27 const char *key);
28const union ovsdb_atom *ovsdb_util_read_column(const struct ovsdb_row *row,
29 const char *column_name,
30 enum ovsdb_atomic_type type);
31bool ovsdb_util_read_integer_column(const struct ovsdb_row *row,
32 const char *column_name,
33 long long int *integerp);
34bool ovsdb_util_read_string_column(const struct ovsdb_row *row,
35 const char *column_name,
36 const char **stringp);
37void ovsdb_util_write_string_string_column(struct ovsdb_row *row,
38 const char *column_name,
39 char **keys, char **values,
40 size_t n);
41bool ovsdb_util_read_bool_column(const struct ovsdb_row *row,
42 const char *column_name,
43 bool *boolp);
44void ovsdb_util_write_bool_column(struct ovsdb_row *row,
45 const char *column_name,
46 bool value);
47
48#endif /* ovsdb/util.h */