2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-17 14:28:02 +00:00

ofpbuf: Rename ofpbuf "private" member for C++ header compatibility.

From partner.
This commit is contained in:
Ben Pfaff
2010-02-01 09:46:31 -08:00
parent 0b3f40f371
commit d45e9c65c6
3 changed files with 13 additions and 5 deletions

View File

@@ -19,6 +19,10 @@
#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 {
@@ -34,7 +38,7 @@ struct ofpbuf {
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);
@@ -70,4 +74,8 @@ void ofpbuf_clear(struct ofpbuf *);
void *ofpbuf_pull(struct ofpbuf *, size_t);
void *ofpbuf_try_pull(struct ofpbuf *, size_t);
#ifdef __cplusplus
}
#endif
#endif /* ofpbuf.h */