eventdev: add missing C++ guards
Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards. Fixes: dc39e2f359b5 ("eventdev: add ring structure for events") 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>
This commit is contained in:
parent
ef64c2f311
commit
2c552933ba
@ -5,6 +5,10 @@
|
||||
#ifndef _RTE_EVENTDEV_PMD_H_
|
||||
#define _RTE_EVENTDEV_PMD_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** @file
|
||||
* RTE Event PMD APIs
|
||||
*
|
||||
@ -1366,4 +1370,8 @@ void
|
||||
event_dev_fp_ops_set(struct rte_event_fp_ops *fp_ops,
|
||||
const struct rte_eventdev *dev);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _RTE_EVENTDEV_PMD_H_ */
|
||||
|
@ -5,6 +5,10 @@
|
||||
#ifndef _RTE_EVENTDEV_PMD_PCI_H_
|
||||
#define _RTE_EVENTDEV_PMD_PCI_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** @file
|
||||
* RTE Eventdev PCI PMD APIs
|
||||
*
|
||||
@ -150,4 +154,8 @@ rte_event_pmd_pci_remove(struct rte_pci_device *pci_dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _RTE_EVENTDEV_PMD_PCI_H_ */
|
||||
|
@ -5,6 +5,10 @@
|
||||
#ifndef _RTE_EVENTDEV_PMD_VDEV_H_
|
||||
#define _RTE_EVENTDEV_PMD_VDEV_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** @file
|
||||
* RTE Eventdev VDEV PMD APIs
|
||||
*
|
||||
@ -99,4 +103,8 @@ rte_event_pmd_vdev_uninit(const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _RTE_EVENTDEV_PMD_VDEV_H_ */
|
||||
|
@ -14,6 +14,10 @@
|
||||
#ifndef _RTE_EVENT_RING_
|
||||
#define _RTE_EVENT_RING_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <rte_common.h>
|
||||
@ -264,4 +268,9 @@ rte_event_ring_get_capacity(const struct rte_event_ring *r)
|
||||
{
|
||||
return rte_ring_get_capacity(&r->r);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user