aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_conversation_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-03 13:50:35 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-03 13:50:35 +0000
commit653dc47fa8ab2e2f36c4ca494fcb6510cdc9d46a (patch)
tree2f2dca0370c0713e508fe188eedae1efb8d65671 /src/include/gnunet_conversation_service.h
parent4954b2047093f62c866d145ece0d2304b76a428f (diff)
downloadgnunet-653dc47fa8ab2e2f36c4ca494fcb6510cdc9d46a.tar.gz
gnunet-653dc47fa8ab2e2f36c4ca494fcb6510cdc9d46a.zip
-finishing first round of conversation phone API implementation
Diffstat (limited to 'src/include/gnunet_conversation_service.h')
-rw-r--r--src/include/gnunet_conversation_service.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_conversation_service.h b/src/include/gnunet_conversation_service.h
index 677c40244..d4a48b2b8 100644
--- a/src/include/gnunet_conversation_service.h
+++ b/src/include/gnunet_conversation_service.h
@@ -24,6 +24,10 @@
24 * @author Simon Dieterle 24 * @author Simon Dieterle
25 * @author Andreas Fuchs 25 * @author Andreas Fuchs
26 * @author Christian Grothoff 26 * @author Christian Grothoff
27 *
28 * TODO:
29 * - call waiting
30 * - put on hold
27 */ 31 */
28#ifndef GNUNET_CONVERSATION_SERVICE_H 32#ifndef GNUNET_CONVERSATION_SERVICE_H
29#define GNUNET_CONVERSATION_SERVICE_H 33#define GNUNET_CONVERSATION_SERVICE_H
@@ -232,7 +236,8 @@ GNUNET_CONVERSATION_reject (struct GNUNET_CONVERSATION_Handle *handle);
232 As this is supposed to be a "secure" service, caller ID is of 236 As this is supposed to be a "secure" service, caller ID is of
233 course provided as part of the basic implementation, as only the 237 course provided as part of the basic implementation, as only the
234 CONVERSATION service can know for sure who it is that we are 238 CONVERSATION service can know for sure who it is that we are
235 talking to.x */ 239 talking to.
240 */
236 241
237 242
238#include "gnunet_util_lib.h" 243#include "gnunet_util_lib.h"
@@ -254,6 +259,11 @@ enum GNUNET_CONVERSATION_EventCode
254 * a `const char *`. The caller ID will be a GNS name. 259 * a `const char *`. The caller ID will be a GNS name.
255 */ 260 */
256 GNUNET_CONVERSATION_EC_RING, 261 GNUNET_CONVERSATION_EC_RING,
262
263 /**
264 * The phone is busy. Varargs will be empty.
265 */
266 GNUNET_CONVERSATION_EC_BUSY,
257 267
258 /** 268 /**
259 * We are ready to talk, metadata about the call may be supplied 269 * We are ready to talk, metadata about the call may be supplied
@@ -301,11 +311,13 @@ struct GNUNET_CONVERSATION_Phone;
301 * 311 *
302 * @param cfg configuration for the phone; specifies the phone service and 312 * @param cfg configuration for the phone; specifies the phone service and
303 * which line the phone is to be connected to 313 * which line the phone is to be connected to
314 * @param ego ego to use for name resolution (when determining caller ID)
304 * @param event_handler how to notify the owner of the phone about events 315 * @param event_handler how to notify the owner of the phone about events
305 * @param event_handler_cls closure for @a event_handler 316 * @param event_handler_cls closure for @a event_handler
306 */ 317 */
307struct GNUNET_CONVERSATION_Phone * 318struct GNUNET_CONVERSATION_Phone *
308GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg, 319GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
320 const struct GNUNET_IDENTITY_Ego *ego,
309 GNUNET_CONVERSATION_EventHandler event_handler, 321 GNUNET_CONVERSATION_EventHandler event_handler,
310 void *event_handler_cls); 322 void *event_handler_cls);
311 323