Mercurial > pidgin.yaz
view plugins/icq/timeout.h @ 1533:b6fe5cab70d6
[gaim-migrate @ 1543]
whoops. i'm a moron.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 04 Mar 2001 04:32:30 +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 */