diff options
author | Peter Somogyi <psomogyi@gamax.hu> | 2007-01-03 17:37:47 +0100 |
---|---|---|
committer | Peter Somogyi <psomogyi@gamax.hu> | 2007-01-03 17:37:47 +0100 |
commit | 0397c819388bc55761eeff6986dfc6b205c9f967 (patch) | |
tree | 0c7450e6b4cfcf50dd9171881fb35c97f9d458bd /ctdb/ib/ibwrapper.h | |
parent | 11fb3ef3b552556adb440774b24e5689cbe198bb (diff) | |
download | samba-0397c819388bc55761eeff6986dfc6b205c9f967.tar.gz samba-0397c819388bc55761eeff6986dfc6b205c9f967.tar.xz samba-0397c819388bc55761eeff6986dfc6b205c9f967.zip |
+1 ibw function +1 bugfix
Added ibw_cancel_send_buf to allow not sending the message after an ibw_alloc_send_buf.
Renamed "n" to "len" and changed its type.
(This used to be ctdb commit c8eb66296b99e528781ce05846aa86205830a1a0)
Diffstat (limited to 'ctdb/ib/ibwrapper.h')
-rw-r--r-- | ctdb/ib/ibwrapper.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ctdb/ib/ibwrapper.h b/ctdb/ib/ibwrapper.h index 8934e68d9f..52018cb7cb 100644 --- a/ctdb/ib/ibwrapper.h +++ b/ctdb/ib/ibwrapper.h @@ -185,7 +185,7 @@ int ibw_disconnect(struct ibw_conn *conn); * * Returns 0 on success. */ -int ibw_alloc_send_buf(struct ibw_conn *conn, void **buf, void **key, int n); +int ibw_alloc_send_buf(struct ibw_conn *conn, void **buf, void **key, uint32_t len); /* * Send the message in one @@ -195,7 +195,14 @@ int ibw_alloc_send_buf(struct ibw_conn *conn, void **buf, void **key, int n); * * You mustn't use (buf, key) any more for sending. */ -int ibw_send(struct ibw_conn *conn, void *buf, void *key, int n); +int ibw_send(struct ibw_conn *conn, void *buf, void *key, uint32_t len); + +/* + * Call this after ibw_alloc_send_buf + * when you won't call ibw_send for (buf, key) + * You mustn't use (buf, key) any more. + */ +int ibw_cancel_send_buf(struct ibw_conn *conn, void *buf, void *key); /* * Retrieves the last error |