bond: fix headers for C++
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Fri, 30 Jan 2015 13:21:11 +0000 (14:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 Feb 2015 11:30:33 +0000 (12:30 +0100)
Add missing declarations to rte_bond_8023ad.h.
Remove 'extern "C"' declarations from bond private header file.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
lib/librte_pmd_bond/rte_eth_bond_8023ad.h
lib/librte_pmd_bond/rte_eth_bond_private.h

index 9adc6aa..ebd0e93 100644 (file)
 
 #include <rte_ether.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Actor/partner states
  */
@@ -211,4 +215,8 @@ int
 rte_eth_bond_8023ad_slave_info(uint8_t port_id, uint8_t slave_id,
                struct rte_eth_bond_8023ad_slave_info *conf);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* RTE_ETH_BOND_8023AD_H_ */
index e01e66b..3da5a9e 100644 (file)
 #ifndef _RTE_ETH_BOND_PRIVATE_H_
 #define _RTE_ETH_BOND_PRIVATE_H_
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <rte_ethdev.h>
 #include <rte_spinlock.h>
 
@@ -276,8 +272,4 @@ int
 bond_ethdev_parse_time_ms_kvarg(const char *key __rte_unused,
                const char *value, void *extra_args);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif