1152
|
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
2 #ifndef _UTIL_H_
|
|
3 #define _UTIL_H_
|
|
4
|
|
5 #ifdef HAVE_CONFIG_H
|
|
6 #include <config.h>
|
|
7 #endif
|
|
8
|
|
9 #include <sys/types.h>
|
|
10
|
|
11 #ifdef _WIN32
|
|
12 #include <winsock.h>
|
|
13 #else
|
|
14 #include <netinet/in.h>
|
|
15 #endif
|
|
16
|
|
17 #include "icqtypes.h"
|
|
18 #include "icq.h"
|
|
19
|
|
20 #ifndef FALSE
|
|
21 #define FALSE 0
|
|
22 #endif
|
|
23
|
|
24 #ifndef TRUE
|
|
25 #define TRUE !FALSE
|
|
26 #endif
|
|
27
|
|
28 void hex_dump(char *data, long size);
|
|
29
|
|
30 WORD Chars_2_Word(unsigned char *buf);
|
|
31 DWORD Chars_2_DW(unsigned char *buf);
|
|
32 void DW_2_Chars(unsigned char *buf, DWORD num);
|
|
33 void Word_2_Chars(unsigned char *buf, WORD num);
|
|
34
|
|
35 const char *icq_ConvertStatus2Str(unsigned long status);
|
|
36
|
|
37 #endif /* _UTIL_H_ */
|