projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename UNUSED macro to OVS_UNUSED to avoid naming conflict.
[openvswitch]
/
lib
/
ofpbuf.h
diff --git
a/lib/ofpbuf.h
b/lib/ofpbuf.h
index 06083ae34cdeef608427808bc5eb9be561df4492..259e703cf5c79cad90bf58af25877c914610949f 100644
(file)
--- a/
lib/ofpbuf.h
+++ b/
lib/ofpbuf.h
@@
-19,6
+19,10
@@
#include <stddef.h>
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Buffer for holding arbitrary data. An ofpbuf is automatically reallocated
* as necessary if it grows too large for the available memory. */
struct ofpbuf {
/* Buffer for holding arbitrary data. An ofpbuf is automatically reallocated
* as necessary if it grows too large for the available memory. */
struct ofpbuf {
@@
-34,7
+38,7
@@
struct ofpbuf {
void *l7; /* Application data. */
struct ofpbuf *next; /* Next in a list of ofpbufs. */
void *l7; /* Application data. */
struct ofpbuf *next; /* Next in a list of ofpbufs. */
- void *private
;
/* Private pointer for use by owner. */
+ void *private
_p;
/* Private pointer for use by owner. */
};
void ofpbuf_use(struct ofpbuf *, void *, size_t);
};
void ofpbuf_use(struct ofpbuf *, void *, size_t);
@@
-70,4
+74,8
@@
void ofpbuf_clear(struct ofpbuf *);
void *ofpbuf_pull(struct ofpbuf *, size_t);
void *ofpbuf_try_pull(struct ofpbuf *, size_t);
void *ofpbuf_pull(struct ofpbuf *, size_t);
void *ofpbuf_try_pull(struct ofpbuf *, size_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ofpbuf.h */
#endif /* ofpbuf.h */