From partner.
b->size = 0;
b->l2 = b->l3 = b->l4 = b->l7 = NULL;
b->next = NULL;
- b->private = NULL;
+ b->private_p = NULL;
}
/* Initializes 'b' as an empty ofpbuf with an initial capacity of 'size'
#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 {
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_pull(struct ofpbuf *, size_t);
void *ofpbuf_try_pull(struct ofpbuf *, size_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ofpbuf.h */
if (rconn_is_connected(rc)) {
COVERAGE_INC(rconn_queued);
copy_to_monitor(rc, b);
- b->private = counter;
+ b->private_p = counter;
if (counter) {
rconn_packet_counter_inc(counter);
}
{
int retval = 0;
struct ofpbuf *next = rc->txq.head->next;
- struct rconn_packet_counter *counter = rc->txq.head->private;
+ struct rconn_packet_counter *counter = rc->txq.head->private_p;
retval = vconn_send(rc->vconn, rc->txq.head);
if (retval) {
if (retval != EAGAIN) {
}
while (rc->txq.n > 0) {
struct ofpbuf *b = queue_pop_head(&rc->txq);
- struct rconn_packet_counter *counter = b->private;
+ struct rconn_packet_counter *counter = b->private_p;
if (counter) {
rconn_packet_counter_dec(counter);
}