mirror of
https://github.com/openvswitch/ovs
synced 2025-09-03 07:45:30 +00:00
Add extern "C" { ... } to some header files to support usage from C++.
From partner.
This commit is contained in:
@@ -21,6 +21,10 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Generic interface to network devices.
|
/* Generic interface to network devices.
|
||||||
*
|
*
|
||||||
* Currently, there is a single implementation of this interface that supports
|
* Currently, there is a single implementation of this interface that supports
|
||||||
@@ -144,4 +148,8 @@ void netdev_monitor_remove(struct netdev_monitor *, struct netdev *);
|
|||||||
int netdev_monitor_poll(struct netdev_monitor *, char **devnamep);
|
int netdev_monitor_poll(struct netdev_monitor *, char **devnamep);
|
||||||
void netdev_monitor_poll_wait(const struct netdev_monitor *);
|
void netdev_monitor_poll_wait(const struct netdev_monitor *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* netdev.h */
|
#endif /* netdev.h */
|
||||||
|
@@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
#include "hmap.h"
|
#include "hmap.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct shash_node {
|
struct shash_node {
|
||||||
struct hmap_node node;
|
struct hmap_node node;
|
||||||
char *name;
|
char *name;
|
||||||
@@ -48,4 +52,8 @@ struct shash_node *shash_find(const struct shash *, const char *);
|
|||||||
void *shash_find_data(const struct shash *, const char *);
|
void *shash_find_data(const struct shash *, const char *);
|
||||||
struct shash_node *shash_first(const struct shash *);
|
struct shash_node *shash_first(const struct shash *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* shash.h */
|
#endif /* shash.h */
|
||||||
|
@@ -21,6 +21,10 @@
|
|||||||
#include "type-props.h"
|
#include "type-props.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct pollfd;
|
struct pollfd;
|
||||||
struct timeval;
|
struct timeval;
|
||||||
|
|
||||||
@@ -49,4 +53,8 @@ void time_timeval(struct timeval *);
|
|||||||
void time_alarm(unsigned int secs);
|
void time_alarm(unsigned int secs);
|
||||||
int time_poll(struct pollfd *, int n_pollfds, int timeout);
|
int time_poll(struct pollfd *, int n_pollfds, int timeout);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* timeval.h */
|
#endif /* timeval.h */
|
||||||
|
Reference in New Issue
Block a user