aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_scheduler_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-24 13:51:03 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-24 13:51:03 +0000
commitc77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd (patch)
treeffd025160bc323c4b84a7ab5f431b1419ac39903 /src/include/gnunet_scheduler_lib.h
parent41a801e9f6ddbcf4a8ff5d178482fcd025d5ab05 (diff)
downloadgnunet-c77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd.tar.gz
gnunet-c77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd.zip
-let's not introduce stdbool shortly before the release
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r--src/include/gnunet_scheduler_lib.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index 24e316b47..4da80407c 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -29,8 +29,6 @@
29#ifndef GNUNET_SCHEDULER_LIB_H 29#ifndef GNUNET_SCHEDULER_LIB_H
30#define GNUNET_SCHEDULER_LIB_H 30#define GNUNET_SCHEDULER_LIB_H
31 31
32#include <stdbool.h>
33
34#ifdef __cplusplus 32#ifdef __cplusplus
35extern "C" 33extern "C"
36{ 34{
@@ -476,13 +474,13 @@ GNUNET_SCHEDULER_add_write_net (struct GNUNET_TIME_Relative delay,
476 * socket operation is ready. 474 * socket operation is ready.
477 * 475 *
478 * @param delay when should this operation time out? Use 476 * @param delay when should this operation time out? Use
479 * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" 477 * #GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown"
480 * @param priority priority of the task 478 * @param priority priority of the task
481 * @param fd file-descriptor 479 * @param fd file-descriptor
482 * @param on_read whether to poll the file-descriptor for readability 480 * @param on_read whether to poll the file-descriptor for readability
483 * @param on_write whether to poll the file-descriptor for writability 481 * @param on_write whether to poll the file-descriptor for writability
484 * @param task main function of the task 482 * @param task main function of the task
485 * @param task_cls closure of task 483 * @param task_cls closure of @a task
486 * @return unique task identifier for the job 484 * @return unique task identifier for the job
487 * only valid until "task" is started! 485 * only valid until "task" is started!
488 */ 486 */
@@ -490,7 +488,7 @@ GNUNET_SCHEDULER_TaskIdentifier
490GNUNET_SCHEDULER_add_net_with_priority (struct GNUNET_TIME_Relative delay, 488GNUNET_SCHEDULER_add_net_with_priority (struct GNUNET_TIME_Relative delay,
491 enum GNUNET_SCHEDULER_Priority priority, 489 enum GNUNET_SCHEDULER_Priority priority,
492 struct GNUNET_NETWORK_Handle *fd, 490 struct GNUNET_NETWORK_Handle *fd,
493 bool on_read, bool on_write, 491 int on_read, int on_write,
494 GNUNET_SCHEDULER_Task task, void *task_cls); 492 GNUNET_SCHEDULER_Task task, void *task_cls);
495 493
496/** 494/**
@@ -543,21 +541,21 @@ GNUNET_SCHEDULER_add_write_file (struct GNUNET_TIME_Relative delay,
543 * socket operation is ready. 541 * socket operation is ready.
544 * 542 *
545 * @param delay when should this operation time out? Use 543 * @param delay when should this operation time out? Use
546 * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" 544 * #GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown"
547 * @param priority priority of the task 545 * @param priority priority of the task
548 * @param fd file-descriptor 546 * @param fd file-descriptor
549 * @param on_read whether to poll the file-descriptor for readability 547 * @param on_read whether to poll the file-descriptor for readability
550 * @param on_write whether to poll the file-descriptor for writability 548 * @param on_write whether to poll the file-descriptor for writability
551 * @param task main function of the task 549 * @param task main function of the task
552 * @param task_cls closure of task 550 * @param task_cls closure of @a task
553 * @return unique task identifier for the job 551 * @return unique task identifier for the job
554 * only valid until "task" is started! 552 * only valid until @a task is started!
555 */ 553 */
556GNUNET_SCHEDULER_TaskIdentifier 554GNUNET_SCHEDULER_TaskIdentifier
557GNUNET_SCHEDULER_add_file_with_priority (struct GNUNET_TIME_Relative delay, 555GNUNET_SCHEDULER_add_file_with_priority (struct GNUNET_TIME_Relative delay,
558 enum GNUNET_SCHEDULER_Priority priority, 556 enum GNUNET_SCHEDULER_Priority priority,
559 const struct GNUNET_DISK_FileHandle *fd, 557 const struct GNUNET_DISK_FileHandle *fd,
560 bool on_read, bool on_write, 558 int on_read, int on_write,
561 GNUNET_SCHEDULER_Task task, void *task_cls); 559 GNUNET_SCHEDULER_Task task, void *task_cls);
562 560
563 561