aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_client_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r--src/include/gnunet_client_lib.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h
index 4bac4d5f3..aa32b55ad 100644
--- a/src/include/gnunet_client_lib.h
+++ b/src/include/gnunet_client_lib.h
@@ -59,26 +59,26 @@ struct GNUNET_CLIENT_Connection;
59 * @param handlers handlers for receiving messages, can be NULL 59 * @param handlers handlers for receiving messages, can be NULL
60 * @param error_handler error handler 60 * @param error_handler error handler
61 * @param error_handler_cls closure for the @a error_handler 61 * @param error_handler_cls closure for the @a error_handler
62 * @return the message queue 62 * @return the message queue, NULL on error
63 */ 63 */
64struct GNUNET_MQ_Handle * 64struct GNUNET_MQ_Handle *
65GNUNET_CLIENT_connect2 (const char *service_name, 65GNUNET_CLIENT_connecT (const struct GNUNET_CONFIGURATION_Handle *cfg,
66 const struct GNUNET_CONFIGURATION_Handle *cfg, 66 const char *service_name,
67 const struct GNUNET_MQ_MessageHandler *handlers, 67 const struct GNUNET_MQ_MessageHandler *handlers,
68 GNUNET_MQ_ErrorHandler error_handler, 68 GNUNET_MQ_ErrorHandler error_handler,
69 void *error_handler_cls); 69 void *error_handler_cls);
70 70
71 71
72/** 72/**
73 * Create a message queue for a GNUNET_CLIENT_Connection. 73 * Create a message queue for a GNUNET_CLIENT_Connection.
74 * If handlers are specfied, receive messages from the connection. 74 * If handlers are specfied, receive messages from the connection.
75 * 75 *
76 * @param connection the client connection 76 * @param connection the client connection, taken over and freed by the MQ
77 * @param handlers handlers for receiving messages 77 * @param handlers handlers for receiving messages
78 * @param error_handler error handler 78 * @param error_handler error handler
79 * @param error_handler_cls closure for the @a error_handler 79 * @param error_handler_cls closure for the @a error_handler
80 * @return the message queue 80 * @return the message queue
81 * @deprecated use #GNUNET_CLIENT_connect2 81 * @deprecated use #GNUNET_CLIENT_connecT
82 */ 82 */
83struct GNUNET_MQ_Handle * 83struct GNUNET_MQ_Handle *
84GNUNET_MQ_queue_for_connection_client (struct GNUNET_CLIENT_Connection *connection, 84GNUNET_MQ_queue_for_connection_client (struct GNUNET_CLIENT_Connection *connection,
@@ -189,8 +189,7 @@ GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *client,
189 * @deprecated 189 * @deprecated
190 */ 190 */
191void 191void
192GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle 192GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle *th);
193 *th);
194 193
195 194
196/** 195/**