From 6188650ce975e287c7c8644927cd5d01e7cc7baa Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 17 Jan 2003 06:40:00 +0000 Subject: rm my lucid experiment --- otk_c/timer.h | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 otk_c/timer.h (limited to 'otk_c/timer.h') diff --git a/otk_c/timer.h b/otk_c/timer.h deleted file mode 100644 index 8e5399ec..00000000 --- a/otk_c/timer.h +++ /dev/null @@ -1,52 +0,0 @@ -// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __timer_h -#define __timer_h - -#include -#include - -#ifdef TIME_WITH_SYS_TIME -# include -# include -#else // !TIME_WITH_SYS_TIME -# ifdef HAVE_SYS_TIME_H -# include -# else // !HAVE_SYS_TIME_H -# include -# endif // HAVE_SYS_TIME_H -#endif // TIME_WITH_SYS_TIME - -extern PyTypeObject OtkTimer_Type; - -//! The data passed to the OtkTimeoutHandler function. -/*! - Note: this is a very useful place to put an object instance, and set the - event handler to a static function in the same class. -*/ -typedef void *OtkTimeoutData; -//! The type of function which can be set as the callback for an OtkTimer -//! firing -typedef void (*OtkTimeoutHandler)(OtkTimeoutData); - -typedef struct OtkTimer { - PyObject_HEAD - OtkTimeoutHandler handler; - OtkTimeoutData data; - Bool recur; - long timeout; - - // don't edit these - Bool timing; - struct timeval start; - struct timeval end; -} OtkTimer; - -PyObject *OtkTimer_New(OtkTimeoutHandler handler, OtkTimeoutData data); - -//! Causes the timer to begin -void OtkTimer_Start(OtkTimer *self); - -//! Causes the timer to stop -void OtkTimer_Stop(OtkTimer *self); - -#endif // __timer_h -- cgit v1.2.3