summaryrefslogtreecommitdiff
path: root/src/core/window-item-rec.h
blob: 7bf5ba5f65bafb5b18ed22f499aff3990cb16e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* WI_ITEM_REC definition, used for inheritance */

int type; /* module_get_uniq_id("CHANNEL/QUERY/xxx", 0) */
int chat_type; /* chat_protocol_lookup(xx) */
GHashTable *module_data;

void *window;
STRUCT_SERVER_REC *server;
char *visible_name;
char *name;
time_t createtime;
int data_level;
char *hilight_color;

void (*destroy)(WI_ITEM_REC *item);

const char *(*get_target)(WI_ITEM_REC *item);
#define window_item_get_target(item) \
	((item)->get_target(item))

#undef STRUCT_SERVER_REC