2001-11-11 13:59:19 -05:00
|
|
|
#ifndef __SERVERS_IDLE_H
|
|
|
|
#define __SERVERS_IDLE_H
|
|
|
|
|
|
|
|
/* Add new idle command to queue */
|
|
|
|
int server_idle_add_redir(IRC_SERVER_REC *server, const char *cmd,
|
2001-11-12 17:15:04 -05:00
|
|
|
const char *redirect_cmd, int count,
|
|
|
|
const char *arg, int remote,
|
|
|
|
const char *failure_signal, ...);
|
2001-11-11 13:59:19 -05:00
|
|
|
#define server_idle_add(server, cmd) \
|
2001-11-12 17:15:04 -05:00
|
|
|
server_idle_add_redir(server, cmd, NULL, 0, NULL, 0, NULL, NULL)
|
2001-11-11 13:59:19 -05:00
|
|
|
|
|
|
|
/* Add new idle command to first of queue */
|
|
|
|
int server_idle_add_first_redir(IRC_SERVER_REC *server, const char *cmd,
|
2001-11-12 17:15:04 -05:00
|
|
|
const char *redirect_cmd, int count,
|
|
|
|
const char *arg, int remote,
|
|
|
|
const char *failure_signal, ...);
|
2001-11-11 13:59:19 -05:00
|
|
|
#define server_idle_add_first(server, cmd) \
|
2001-11-12 17:15:04 -05:00
|
|
|
server_idle_add_first_redir(server, cmd, NULL, 0, NULL, 0, NULL, NULL)
|
2001-11-11 13:59:19 -05:00
|
|
|
|
|
|
|
/* Add new idle command to specified position of queue */
|
|
|
|
int server_idle_insert_redir(IRC_SERVER_REC *server, const char *cmd, int tag,
|
2001-11-12 17:15:04 -05:00
|
|
|
const char *redirect_cmd, int count,
|
|
|
|
const char *arg, int remote,
|
|
|
|
const char *failure_signal, ...);
|
2001-11-11 13:59:19 -05:00
|
|
|
#define server_idle_insert(server, cmd, tag) \
|
2001-11-12 17:15:04 -05:00
|
|
|
server_idle_insert_redir(server, cmd, tag, NULL, 0, NULL, 0, NULL, NULL)
|
2001-11-11 13:59:19 -05:00
|
|
|
|
|
|
|
/* Check if record is still in queue */
|
|
|
|
int server_idle_find(IRC_SERVER_REC *server, int tag);
|
|
|
|
|
|
|
|
/* Remove record from idle queue */
|
|
|
|
int server_idle_remove(IRC_SERVER_REC *server, int tag);
|
|
|
|
|
|
|
|
void servers_idle_init(void);
|
|
|
|
void servers_idle_deinit(void);
|
|
|
|
|
|
|
|
#endif
|