diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2017-11-30 11:11:50 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-12-01 13:22:18 -0800 |
commit | 9131abe2236b4ed1685e76db9921115bcd8f05e3 (patch) | |
tree | 574d0cd596930a0eeee97c24a8ee7ab1add2af1e /lib/ovsdb-idl-provider.h | |
parent | 936cca17923a75968844b43dba22c6e7421dda4b (diff) | |
download | openvswitch-9131abe2236b4ed1685e76db9921115bcd8f05e3.tar.gz |
lib, ovsdb: Adapt headers for C++ usage
This patch adds 'extern "C"' in a couple of header files so that
they can be compiled with C++ compilers.
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/ovsdb-idl-provider.h')
-rw-r--r-- | lib/ovsdb-idl-provider.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ovsdb-idl-provider.h b/lib/ovsdb-idl-provider.h index a3eccb4c0..d15ab1db5 100644 --- a/lib/ovsdb-idl-provider.h +++ b/lib/ovsdb-idl-provider.h @@ -26,6 +26,10 @@ #include "openvswitch/shash.h" #include "uuid.h" +#ifdef __cplusplus +extern "C" { +#endif + /* A local copy of a row in an OVSDB table, replicated from an OVSDB server. * This structure is used as a header for a larger structure that translates * the "struct ovsdb_datum"s into easier-to-use forms, via the ->parse() and @@ -161,4 +165,8 @@ void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *, struct ovsdb_idl_txn *ovsdb_idl_txn_get(const struct ovsdb_idl_row *); +#ifdef __cplusplus +} +#endif + #endif /* ovsdb-idl-provider.h */ |