/* copyright 2004: Helge Jensen */ #ifndef HEADER_LIBIDLE_H #define HEADER_LIBIDLE_H #ifdef __cplusplus extern "C" { #endif #ifndef LIBIDLE_DLL # ifdef _WIN32 # define LIBIDLE_DLL __declspec(dllimport) # else # define LIBIDLE_DLL /* not needed */ # endif #endif struct libidle; /* @brief idle-time of computer interface in seconds @arg idle returned from libidle_init() @returns idle-time in seconds */ LIBIDLE_DLL double libidle_time(struct libidle* idle); /* @brief connect to the idle-timer @returns handle to internal libidle datastructure */ LIBIDLE_DLL struct libidle* libidle_init(void); /* @brief disconnect to the idle-timer @arg idle returned from libidle_init() */ LIBIDLE_DLL void libidle_exit(struct libidle* idle); /* @brief forcibly diable libidle @note: on win32 libidle is implemented via a system-wide hook. For debugging it's nice to be able to unhook that. @arg idle returned from libidle_init() */ LIBIDLE_DLL void libidle_disable(struct libidle* idle); #ifdef __cplusplus } #endif #endif /* HEADER_LIBIDLE_H */ /* Local Variables: */ /* mode: C */ /* c-file-style: "stroustrup" */ /* End: */