diff options
author | Ben Pfaff <blp@nicira.com> | 2013-03-27 09:32:56 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-04-01 13:20:04 -0700 |
commit | 0ea7bec76d804a2c4efccd3dbdaa3e30cf536a5c (patch) | |
tree | a47bff77604f59c9eb8f584b46d0550a57632ee5 /lib/ovsdb-data.h | |
parent | 1600fa6853872e16130366351a2c14f6fa8b547c (diff) | |
download | openvswitch-0ea7bec76d804a2c4efccd3dbdaa3e30cf536a5c.tar.gz |
ovsdb-data: New functions for predicting serialized length of data.
These will be used for the first time in an upcoming commit.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ovsdb-data.h')
-rw-r--r-- | lib/ovsdb-data.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h index 2e31cc5b9..ece167226 100644 --- a/lib/ovsdb-data.h +++ b/lib/ovsdb-data.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc. +/* Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -88,6 +88,8 @@ struct ovsdb_error *ovsdb_atom_from_json(union ovsdb_atom *, WARN_UNUSED_RESULT; struct json *ovsdb_atom_to_json(const union ovsdb_atom *, enum ovsdb_atomic_type); +size_t ovsdb_atom_json_length(const union ovsdb_atom *, + enum ovsdb_atomic_type); char *ovsdb_atom_from_string(union ovsdb_atom *, const struct ovsdb_base_type *, const char *, @@ -163,6 +165,8 @@ struct ovsdb_error *ovsdb_datum_from_json(struct ovsdb_datum *, WARN_UNUSED_RESULT; struct json *ovsdb_datum_to_json(const struct ovsdb_datum *, const struct ovsdb_type *); +size_t ovsdb_datum_json_length(const struct ovsdb_datum *, + const struct ovsdb_type *); char *ovsdb_datum_from_string(struct ovsdb_datum *, const struct ovsdb_type *, const char *, |