aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_os_lib.h5
-rw-r--r--src/include/gnunet_scheduler_lib.h16
-rw-r--r--src/include/gnunet_server_lib.h30
3 files changed, 27 insertions, 24 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index 3fa2497d6..1cb01d038 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -572,12 +572,9 @@ GNUNET_OS_process_wait (struct GNUNET_OS_Process *proc);
572 * variable) and raise those signals. 572 * variable) and raise those signals.
573 * 573 *
574 * @param cls closure (unused) 574 * @param cls closure (unused)
575 * @param tc scheduler context (unused)
576 */ 575 */
577void 576void
578GNUNET_OS_install_parent_control_handler (void *cls, 577GNUNET_OS_install_parent_control_handler (void *cls);
579 const struct
580 GNUNET_SCHEDULER_TaskContext *tc);
581 578
582 579
583/** 580/**
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index e93eab41f..d9b63775a 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 Copyright (C) 2009-2015 GNUnet e.V. 3 Copyright (C) 2009-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
@@ -131,8 +131,7 @@ struct GNUNET_SCHEDULER_TaskContext
131 * @param tc context information (why was this task triggered now) 131 * @param tc context information (why was this task triggered now)
132 */ 132 */
133typedef void 133typedef void
134(*GNUNET_SCHEDULER_TaskCallback) (void *cls, 134(*GNUNET_SCHEDULER_TaskCallback) (void *cls);
135 const struct GNUNET_SCHEDULER_TaskContext *tc);
136 135
137 136
138/** 137/**
@@ -200,14 +199,13 @@ GNUNET_SCHEDULER_get_load (enum GNUNET_SCHEDULER_Priority p);
200 199
201 200
202/** 201/**
203 * Obtain the reason code for why the current task was 202 * Obtain the reasoning why the current task was
204 * started. Will return the same value as 203 * started.
205 * the GNUNET_SCHEDULER_TaskContext's reason field.
206 * 204 *
207 * @return reason(s) why the current task is run 205 * @return task context with information why the current task is run
208 */ 206 */
209enum GNUNET_SCHEDULER_Reason 207const struct GNUNET_SCHEDULER_TaskContext *
210GNUNET_SCHEDULER_get_reason (void); 208GNUNET_SCHEDULER_get_task_context (void);
211 209
212 210
213/** 211/**
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/**