view src/timeout.hh @ 1494:9225a90ad7dd

make Doctree a non-virtual class Doctree now is a proper class with it's own implementation. StyleEngine no longer needs to provide the Doctree interface itself. This hopefully make the code easier to understand and should also be a bit faster as no virtual methods are involved.
author Johannes Hofmann <>
date Thu, 07 Jan 2010 16:23:05 +0100
parents 6ee11bf9e3ea
line wrap: on
line source
#ifndef __TIMEOUT_HH__
#define __TIMEOUT_HH__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

typedef void (*TimeoutCb_t)(void *data);

void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata);
void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata);
void a_Timeout_remove();

#ifdef __cplusplus
#endif /* __cplusplus */

#endif /* __TIMEOUT_HH__ */