Mercurial > pidgin
view plugins/icq/timeout.h @ 1696:c6390c52caca
[gaim-migrate @ 1706]
fun stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 11 Apr 2001 04:33:52 +0000 |
parents | 0ef6603d986e |
children | 8ed70631ed15 |
line wrap: on
line source
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ #ifndef _TIMEOUTMANAGER_H #define _TIMEOUTMANAGER_H #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <time.h> #include "list.h" typedef struct icq_Timeout_s icq_Timeout; typedef void (*icq_TimeoutHandler)(void *data); struct icq_Timeout_s { time_t expire_time; int length; int single_shot; icq_TimeoutHandler handler; void *data; }; int icq_TimeoutCompare(icq_Timeout *t1, icq_Timeout *t2); icq_Timeout *icq_TimeoutNew(int length, icq_TimeoutHandler handler, void *data); void icq_TimeoutDelete(icq_Timeout *timeout); void icq_HandleTimeout(); void icq_TimeoutDoNotify(); extern list *icq_TimeoutList; #endif /* _TIMEOUTMANAGER_H */