mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
chatnet config. Moved reading chatnets to core. Lots of other multiprotocol updates. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
35 lines
874 B
C
35 lines
874 B
C
#ifndef __QUERIES_H
|
|
#define __QUERIES_H
|
|
|
|
#include "modules.h"
|
|
|
|
/* Returns QUERY_REC if it's query, NULL if it isn't. */
|
|
#define QUERY(query) \
|
|
MODULE_CHECK_CAST_MODULE(query, QUERY_REC, type, \
|
|
"WINDOW ITEM TYPE", "QUERY")
|
|
|
|
#define IS_QUERY(query) \
|
|
(QUERY(query) ? TRUE : FALSE)
|
|
|
|
#define STRUCT_SERVER_REC SERVER_REC
|
|
struct _QUERY_REC {
|
|
#include "query-rec.h"
|
|
};
|
|
|
|
extern GSList *queries;
|
|
|
|
void query_init(QUERY_REC *query, int automatic);
|
|
void query_destroy(QUERY_REC *query);
|
|
|
|
/* Find query by name, if `server' is NULL, search from all servers */
|
|
QUERY_REC *query_find(SERVER_REC *server, const char *nick);
|
|
|
|
void query_change_nick(QUERY_REC *query, const char *nick);
|
|
void query_change_address(QUERY_REC *query, const char *address);
|
|
void query_change_server(QUERY_REC *query, SERVER_REC *server);
|
|
|
|
void queries_init(void);
|
|
void queries_deinit(void);
|
|
|
|
#endif
|