aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dv_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-05 14:17:50 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-05 14:17:50 +0000
commit439fed4dda3de557a37de85c08be9ac29746e6b7 (patch)
tree0a7d0941cd3991fea4aeba26fe9e66d2f456fc8d /src/include/gnunet_dv_service.h
parent1f3219c222bb206e02a793e6c7d48ccc3045d604 (diff)
downloadgnunet-439fed4dda3de557a37de85c08be9ac29746e6b7.tar.gz
gnunet-439fed4dda3de557a37de85c08be9ac29746e6b7.zip
-reworking DV to use new MQ API
Diffstat (limited to 'src/include/gnunet_dv_service.h')
-rw-r--r--src/include/gnunet_dv_service.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/include/gnunet_dv_service.h b/src/include/gnunet_dv_service.h
index f58311f74..bc5927517 100644
--- a/src/include/gnunet_dv_service.h
+++ b/src/include/gnunet_dv_service.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2013 GNUnet e.V. 3 Copyright (C) 2013, 2016 GNUnet e.V.
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -153,27 +153,12 @@ struct GNUNET_DV_TransmitHandle;
153 * @param sh service handle 153 * @param sh service handle
154 * @param target intended recpient 154 * @param target intended recpient
155 * @param msg message payload 155 * @param msg message payload
156 * @param cb function to invoke when done
157 * @param cb_cls closure for 'cb'
158 * @return handle to cancel the operation 156 * @return handle to cancel the operation
159 */ 157 */
160struct GNUNET_DV_TransmitHandle * 158void
161GNUNET_DV_send (struct GNUNET_DV_ServiceHandle *sh, 159GNUNET_DV_send (struct GNUNET_DV_ServiceHandle *sh,
162 const struct GNUNET_PeerIdentity *target, 160 const struct GNUNET_PeerIdentity *target,
163 const struct GNUNET_MessageHeader *msg, 161 const struct GNUNET_MessageHeader *msg);
164 GNUNET_DV_MessageSentCallback cb,
165 void *cb_cls);
166
167
168/**
169 * Abort send operation (naturally, the message may have
170 * already been transmitted; this only stops the 'cb'
171 * from being called again).
172 *
173 * @param th send operation to cancel
174 */
175void
176GNUNET_DV_send_cancel (struct GNUNET_DV_TransmitHandle *th);
177 162
178 163
179#endif 164#endif