Crossfire Client, Trunk  R19828
client-types.h
Go to the documentation of this file.
1 
6 #ifndef CLIENT_TYPES_H
7 #define CLIENT_TYPES_H
8 
9 #include "config.h"
10 
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <sys/types.h>
15 #include <time.h>
16 
17 #ifdef HAVE_SYS_TIME_H
18 # include <sys/time.h>
19 #endif
20 
21 #ifdef HAVE_UNISTD_H
22 # include <unistd.h>
23 #endif
24 
25 #ifdef HAVE_FCNTL_H
26 # include <fcntl.h>
27 #endif
28 
29 #include <glib.h>
30 
31 #ifdef WIN32
32 # include <winsock2.h>
33 #endif
34 
35 #ifndef SOL_TCP
36 #define SOL_TCP IPPROTO_TCP
37 #endif
38 
39 #define MAX_BUF 256
40 #define BIG_BUF 1024
41 
42 /* used to register gui callbacks to extended texts
43  * (which are supposed to be handled more friendly than raw text)*/
44 typedef void (*ExtTextManager)(int flag, int type, int subtype, char* message);
45 
46 typedef struct TextManager{
47  int type;
49  struct TextManager* next;
50 } TextManager;
51 
52 #endif
struct TextManager TextManager
void(* ExtTextManager)(int flag, int type, int subtype, char *message)
Definition: client-types.h:44
ExtTextManager callback
Definition: client-types.h:48
struct TextManager * next
Definition: client-types.h:49