X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.h;h=d9e71d762e43f17f4577f7eb24545704d9a1631f;hb=90887925206f585db65ae8872f197a97543f2860;hp=7fa6ed266784b3332c0d4c8208d10f5eb178601f;hpb=23ff2821fd8b840dfeedcb47aeaed4fd060d73c8;p=openvswitch diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 7fa6ed26..d9e71d76 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -24,6 +24,10 @@ #include "netflow.h" #include "tag.h" +#ifdef __cplusplus +extern "C" { +#endif + struct odp_actions; struct ofhooks; struct ofproto; @@ -72,8 +76,8 @@ void ofproto_set_datapath_id(struct ofproto *, uint64_t datapath_id); void ofproto_set_probe_interval(struct ofproto *, int probe_interval); void ofproto_set_max_backoff(struct ofproto *, int max_backoff); void ofproto_set_desc(struct ofproto *, - const char *manufacturer, const char *hardware, - const char *software, const char *serial, + const char *mfr_desc, const char *hw_desc, + const char *sw_desc, const char *serial_desc, const char *dp_desc); int ofproto_set_in_band(struct ofproto *, bool in_band); int ofproto_set_discovery(struct ofproto *, bool discovery, @@ -127,4 +131,8 @@ struct ofhooks { void ofproto_revalidate(struct ofproto *, tag_type); struct tag_set *ofproto_get_revalidate_set(struct ofproto *); +#ifdef __cplusplus +} +#endif + #endif /* ofproto.h */