timer.h revision 6fba19689c2a3be1ec04ea7a9210ab428325d415
/*
* Here is where the extensions can get timed on when they load and
* unload. All of the timing is done in here.
*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2004 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef INKSCAPE_EXTENSION_TIMER_H__
#define INKSCAPE_EXTENSION_TIMER_H__
#include <stddef.h>
/** \brief Circularly linked list of all timers */
static ExpirationTimer * timer_list;
/** \brief Which timer was on top when we started the idle loop */
static ExpirationTimer * idle_start;
/** \brief What the current timeout is */
static long timeout;
/** \brief Has the timer been started? */
static bool timer_started;
/** \brief Is this extension locked from being unloaded? */
int locked;
/** \brief Next entry in the list */
/** \brief When this timer expires */
/** \brief What extension this function relates to */
bool expired(void) const;
static bool idle_func (void);
static bool timer_func (void);
virtual ~ExpirationTimer(void);
void touch (void);
/** \brief Set the timeout variable */
};
}; }; /* namespace Inkscape, Extension */
#endif /* INKSCAPE_EXTENSION_TIMER_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :