blob: 20ce79cc31a498c9751e62840871e13d3b38458b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef __QUERY_H
#define __QUERY_H
#include "server.h"
typedef struct {
int type;
GHashTable *module_data;
IRC_SERVER_REC *server;
char *nick;
int new_data;
int last_color;
char *address;
char *server_tag;
int unwanted:1; /* TRUE if the other side closed or some error occured (DCC chats!) */
int destroying:1;
} QUERY_REC;
extern GSList *queries;
QUERY_REC *query_create(IRC_SERVER_REC *server, const char *nick, int automatic);
void query_destroy(QUERY_REC *query);
/* Find query by name, if `server' is NULL, search from all servers */
QUERY_REC *query_find(IRC_SERVER_REC *server, const char *nick);
void query_change_server(QUERY_REC *query, IRC_SERVER_REC *server);
void query_init(void);
void query_deinit(void);
#endif
|