cryptodev: add missing C++ guards
authorBrian Dooley <brian.dooley@intel.com>
Wed, 16 Feb 2022 15:14:56 +0000 (15:14 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 13:47:49 +0000 (14:47 +0100)
Some public header files were missing 'extern "C"' C++ guards,
and couldn't be used by C++ applications. Add the missing guards.

Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers")
Cc: stable@dpdk.org
Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
lib/cryptodev/cryptodev_pmd.h

index 8bbb9ca..2b1ce2d 100644 (file)
@@ -5,6 +5,10 @@
 #ifndef _CRYPTODEV_PMD_H_
 #define _CRYPTODEV_PMD_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** @file
  * RTE Crypto PMD APIs
  *
@@ -636,4 +640,8 @@ RTE_STD_C11 struct rte_cryptodev_asym_session {
        uint8_t sess_private_data[0];
 };
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _CRYPTODEV_PMD_H_ */