aboutsummaryrefslogtreecommitdiff
path: root/lib/netlink-socket.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-10-14 13:55:00 -0700
committerBen Pfaff <blp@nicira.com>2011-10-14 14:08:44 -0700
commitcc75061af782bb7e99d40e3e00a8eb90b2cbbc51 (patch)
tree2b311310c2fbb74e9a65d398e39d6e97e3815d47 /lib/netlink-socket.h
parentc1c19657f457a908d207a5f8313ea0ea33a4f3f5 (diff)
netlink-socket: New function nl_sock_transact_multiple().
This will be used in an upcoming commit.
Diffstat (limited to 'lib/netlink-socket.h')
-rw-r--r--lib/netlink-socket.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h
index d789f412..7e01acbf 100644
--- a/lib/netlink-socket.h
+++ b/lib/netlink-socket.h
@@ -35,6 +35,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+#include "list.h"
struct ofpbuf;
struct nl_sock;
@@ -63,6 +64,19 @@ short int nl_sock_woke(const struct nl_sock *);
uint32_t nl_sock_pid(const struct nl_sock *);
+/* Batching transactions. */
+struct nl_transaction {
+ /* Filled in by client. */
+ struct ofpbuf *request; /* Request to send. */
+
+ /* Filled in by nl_sock_transact_batch(). */
+ struct ofpbuf *reply; /* Reply (NULL if reply was an error code). */
+ int error; /* Positive errno value, 0 if no error. */
+};
+
+void nl_sock_transact_multiple(struct nl_sock *,
+ struct nl_transaction **, size_t n);
+
/* Table dumping. */
struct nl_dump {
struct nl_sock *sock; /* Socket being dumped. */