Added SILC Thread Queue API
[runtime.git] / apps / irssi / src / core / servers-reconnect.h
1 #ifndef __SERVER_RECONNECT_H
2 #define __SERVER_RECONNECT_H
3
4 /* wait for half an hour before trying to reconnect to host where last
5    connection failed */
6 #define FAILED_RECONNECT_WAIT (60*30)
7
8 typedef struct {
9         int tag;
10         time_t next_connect;
11
12         SERVER_CONNECT_REC *conn;
13 } RECONNECT_REC;
14
15 extern GSList *reconnects;
16
17 void reconnect_save_status(SERVER_CONNECT_REC *conn, SERVER_REC *server);
18 void server_reconnect_destroy(RECONNECT_REC *rec);
19
20 void servers_reconnect_init(void);
21 void servers_reconnect_deinit(void);
22
23 #endif