summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-09 17:04:38 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-09 17:04:38 +0000
commit00a4c6056dba93c98cac687f24d5122acc76ded0 (patch)
tree39a94d2c570ddb02e3798c76ceea041c865031dd /src/include
parent978416c7e201d8261f9ecf512169f384261b1a9a (diff)
downloadskalibs-00a4c6056dba93c98cac687f24d5122acc76ded0.tar.xz
Add unixmessage_unput, for transaction cancellation
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/unixmessage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/skalibs/unixmessage.h b/src/include/skalibs/unixmessage.h
index 3252a50..5451a05 100644
--- a/src/include/skalibs/unixmessage.h
+++ b/src/include/skalibs/unixmessage.h
@@ -75,6 +75,10 @@ extern int unixmessage_put_and_close (unixmessage_sender_t *, unixmessage_t cons
extern int unixmessage_putv_and_close (unixmessage_sender_t *, unixmessage_v_t const *, unsigned char const *) ;
#define unixmessage_putv(b, m) unixmessage_putv_and_close(b, m, unixmessage_bits_closenone)
+extern int unixmessage_unput_and_maybe_drop (unixmessage_sender_t *, int) ;
+#define unixmessage_unput(b) unixmessage_unput_and_maybe_drop((b), 0)
+#define unixmessage_unput_and_drop(b) unixmessage_unput_and_maybe_drop((b), 1)
+
extern unsigned char const *const unixmessage_bits_closenone ;
extern unsigned char const *const unixmessage_bits_closeall ;