aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_server_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_server_lib.h')
-rw-r--r--src/include/gnunet_server_lib.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h
index f70f28116..1ad2fc8b7 100644
--- a/src/include/gnunet_server_lib.h
+++ b/src/include/gnunet_server_lib.h
@@ -453,8 +453,9 @@ GNUNET_SERVER_client_get_address (struct GNUNET_SERVER_Client *client,
453 * @param client identification of the client; NULL 453 * @param client identification of the client; NULL
454 * for the last call when the server is destroyed 454 * for the last call when the server is destroyed
455 */ 455 */
456typedef void (*GNUNET_SERVER_DisconnectCallback) (void *cls, 456typedef void
457 struct GNUNET_SERVER_Client *client); 457(*GNUNET_SERVER_DisconnectCallback) (void *cls,
458 struct GNUNET_SERVER_Client *client);
458 459
459 460
460/** 461/**
@@ -464,8 +465,9 @@ typedef void (*GNUNET_SERVER_DisconnectCallback) (void *cls,
464 * @param cls closure 465 * @param cls closure
465 * @param client identification of the client 466 * @param client identification of the client
466 */ 467 */
467typedef void (*GNUNET_SERVER_ConnectCallback) (void *cls, 468typedef void
468 struct GNUNET_SERVER_Client *client); 469(*GNUNET_SERVER_ConnectCallback) (void *cls,
470 struct GNUNET_SERVER_Client *client);
469 471
470 472
471/** 473/**
@@ -799,8 +801,9 @@ GNUNET_SERVER_mst_destroy (struct GNUNET_SERVER_MessageStreamTokenizer *mst);
799 * @param client handle to client the tokenzier will be used for 801 * @param client handle to client the tokenzier will be used for
800 * @return handle to custom tokenizer ('mst') 802 * @return handle to custom tokenizer ('mst')
801 */ 803 */
802typedef void* (*GNUNET_SERVER_MstCreateCallback) (void *cls, 804typedef void*
803 struct GNUNET_SERVER_Client *client); 805(*GNUNET_SERVER_MstCreateCallback) (void *cls,
806 struct GNUNET_SERVER_Client *client);
804 807
805 808
806/** 809/**
@@ -809,7 +812,9 @@ typedef void* (*GNUNET_SERVER_MstCreateCallback) (void *cls,
809 * @param cls closure from #GNUNET_SERVER_set_callbacks 812 * @param cls closure from #GNUNET_SERVER_set_callbacks
810 * @param mst custom tokenizer handle 813 * @param mst custom tokenizer handle
811 */ 814 */
812typedef void (*GNUNET_SERVER_MstDestroyCallback) (void *cls, void *mst); 815typedef void
816(*GNUNET_SERVER_MstDestroyCallback) (void *cls,
817 void *mst);
813 818
814 819
815/** 820/**
@@ -828,10 +833,13 @@ typedef void (*GNUNET_SERVER_MstDestroyCallback) (void *cls, void *mst);
828 * #GNUNET_NO if one_shot was set and we have another message ready 833 * #GNUNET_NO if one_shot was set and we have another message ready
829 * #GNUNET_SYSERR if the data stream is corrupt 834 * #GNUNET_SYSERR if the data stream is corrupt
830 */ 835 */
831typedef int (*GNUNET_SERVER_MstReceiveCallback) (void *cls, void *mst, 836typedef int
832 struct GNUNET_SERVER_Client *client, 837(*GNUNET_SERVER_MstReceiveCallback) (void *cls, void *mst,
833 const char *buf, size_t size, 838 struct GNUNET_SERVER_Client *client,
834 int purge, int one_shot); 839 const char *buf,
840 size_t size,
841 int purge,
842 int one_shot);
835 843
836 844
837/** 845/**