static void silc_schedule_task_remove(SilcSchedule schedule, SilcTask task);
static void silc_schedule_dispatch_fd(SilcSchedule schedule);
static void silc_schedule_dispatch_timeout(SilcSchedule schedule,
- bool dispatch_all);
+ SilcBool dispatch_all);
/* Fd task hash table destructor */
scheduler could not be uninitialized. This happens when the scheduler
is still valid and silc_schedule_stop has not been called. */
-bool silc_schedule_uninit(SilcSchedule schedule)
+SilcBool silc_schedule_uninit(SilcSchedule schedule)
{
SILC_LOG_DEBUG(("Uninitializing scheduler"));
tasks are removed here. */
static void silc_schedule_dispatch_timeout(SilcSchedule schedule,
- bool dispatch_all)
+ SilcBool dispatch_all)
{
SilcTask t;
SilcTaskTimeout task;
SilcTask t;
SilcTaskTimeout task;
struct timeval curtime;
- bool dispatch = TRUE;
+ SilcBool dispatch = TRUE;
/* Get the current time */
silc_gettimeofday(&curtime);
/* Runs the scheduler once and then returns. */
-bool silc_schedule_one(SilcSchedule schedule, int timeout_usecs)
+SilcBool silc_schedule_one(SilcSchedule schedule, int timeout_usecs)
{
struct timeval timeout;
int ret;
descriptor to set different iomasks. */
void silc_schedule_set_listen_fd(SilcSchedule schedule, SilcUInt32 fd,
- SilcTaskEvent mask, bool send_events)
+ SilcTaskEvent mask, SilcBool send_events)
{
SilcTaskFd task;