pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

timeout.h
Go to the documentation of this file.
1 /*
2 ** timeout.h - Generic timeout code
3 **
4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
5 **
6 ** This program is free software; you can redistribute it and/or
7 ** modify it as you wish - as long as you don't claim that you wrote
8 ** it.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 */
14 
15 #ifndef PIDENTD_TIMEOUT_H
16 #define PIDENTD_TIMEOUT_H
17 
18 #include <time.h>
19 
20 
21 struct timeout
22 {
23  struct timeout *next;
24 
25  time_t when;
26 
27  void (*fun)(void *arg);
28  void *arg;
29 };
30 
31 
32 
33 extern int timeout_init(void);
34 extern struct timeout *timeout_create(int t, void (*fun)(void *arg), void *arg);
35 extern int timeout_reset(struct timeout *tp, int t);
36 extern int timeout_cancel(struct timeout *tp);
37 
38 #endif
timeout::arg
void * arg
Definition: timeout.h:28
timeout_init
int timeout_init(void)
Definition: timeout.c:248
timeout
Definition: timeout.h:21
timeout_reset
int timeout_reset(struct timeout *tp, int t)
Definition: timeout.c:271
timeout_create
struct timeout * timeout_create(int t, void(*fun)(void *arg), void *arg)
Definition: timeout.c:255
timeout::when
time_t when
Definition: timeout.h:25
timeout::next
struct timeout * next
Definition: timeout.h:23
timeout::fun
void(* fun)(void *arg)
Definition: timeout.h:27
timeout_cancel
int timeout_cancel(struct timeout *tp)
Definition: timeout.c:280