summaryrefslogtreecommitdiff
path: root/lib/ovsdb-error.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-12-13 11:32:28 -0800
committerBen Pfaff <blp@ovn.org>2017-12-13 11:32:29 -0800
commit3865965dd99325bd7bcd5bd3ab2a5d059dd4832e (patch)
tree53341d4fb9f22465871db4d83b92babb9012b5a2 /lib/ovsdb-error.h
parentdc92f724d4641bcf9fce95db262f314264e473af (diff)
downloadopenvswitch-3865965dd99325bd7bcd5bd3ab2a5d059dd4832e.tar.gz
ovsdb-error: New function ovsdb_error_to_string_free().
This allows slight code simplifications across the tree. Signed-off-by: Ben Pfaff <blp@ovn.org> Tested-by: Yifeng Sun <pkusunyifeng@gmail.com> Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Diffstat (limited to 'lib/ovsdb-error.h')
-rw-r--r--lib/ovsdb-error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ovsdb-error.h b/lib/ovsdb-error.h
index da91b7499..ff9b889a8 100644
--- a/lib/ovsdb-error.h
+++ b/lib/ovsdb-error.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009, 2010, 2011 Nicira, Inc.
+/* Copyright (c) 2009, 2010, 2011, 2016, 2017 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -64,6 +64,7 @@ struct ovsdb_error *ovsdb_error_clone(const struct ovsdb_error *)
OVS_WARN_UNUSED_RESULT;
char *ovsdb_error_to_string(const struct ovsdb_error *);
+char *ovsdb_error_to_string_free(struct ovsdb_error *);
struct json *ovsdb_error_to_json(const struct ovsdb_error *);
const char *ovsdb_error_get_tag(const struct ovsdb_error *);