From: Tom Everman Date: Wed, 26 May 2010 20:16:14 +0000 (-0700) Subject: flow: Allow flow.h to be included from C++. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c07a87b07a2e19cef8bcae98b1b43125cf8385e3;p=sliver-openvswitch.git flow: Allow flow.h to be included from C++. --- diff --git a/lib/flow.h b/lib/flow.h index 0cfe9e3b7..443ce95a2 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -27,6 +27,10 @@ #include "openvswitch/xflow.h" #include "util.h" +#ifdef __cplusplus +extern "C" { +#endif + struct ds; struct ofp_match; struct ofpbuf; @@ -123,4 +127,8 @@ flow_wildcards_init(struct flow_wildcards *wc, uint32_t wildcards) wc->nw_dst_mask = flow_nw_bits_to_mask(wildcards, OFPFW_NW_DST_SHIFT); } +#ifdef __cplusplus +} +#endif + #endif /* flow.h */