Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
timeout.cc
Go to the documentation of this file.
1/*
2 * File: timeout.cc
3 *
4 * Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 */
11
16#include <FL/Fl.H>
17#include "timeout.hh"
18
19// C++ functions with C linkage ----------------------------------------------
20
25void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata)
26{
27 Fl::add_timeout(t, cb, cbdata);
28}
29
33void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata)
34{
35 Fl::add_timeout(t, cb, cbdata);
36}
37
42{
43 /* in FLTK, timeouts run one time by default */
44}
45
void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata)
To be called from inside the 'cb' function when it wants to keep running.
Definition timeout.cc:33
void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata)
Hook a one-time timeout function 'cb' after 't' seconds with 'cbdata" as its data.
Definition timeout.cc:25
void a_Timeout_remove()
Stop running a timeout function.
Definition timeout.cc:41
void(* TimeoutCb_t)(void *data)
Definition timeout.hh:8