comparison plugins/icq/icqlib.h @ 1152:201ec77f3a60

[gaim-migrate @ 1162] icq. whoop de doo committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 28 Nov 2000 02:22:42 +0000
parents
children 0a766047b4fd
comparison
equal deleted inserted replaced
1151:428372cc1e39 1152:201ec77f3a60
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 #ifndef _ICQLIB_H_
3 #define _ICQLIB_H_
4
5 #ifdef HAVE_CONFIG_H
6 #include <config.h>
7 #endif
8
9 /* for strdup(), bzero() and snprintf() declarations */
10 #ifndef __USE_BSD
11 #define __USE_BSD 1
12 #define __need_bsd_undef 1
13 #endif
14 #include <string.h>
15 #include <stdio.h>
16 #ifdef __need_bsd_undef
17 #undef __USE_BSD
18 #endif
19
20 #include <sys/types.h>
21
22 #include "util.h"
23 #include "contacts.h"
24
25 BOOL icq_GetServMess(ICQLINK *link, WORD num);
26 void icq_SetServMess(ICQLINK *link, WORD num);
27 void icq_RusConv(const char to[4], char *t_in);
28 void icq_RusConv_n(const char to[4], char *t_in, int len);
29
30 #ifndef _WIN32
31 #ifndef inet_addr
32 extern unsigned long inet_addr(const char *cp);
33 #endif /* inet_addr */
34 #ifndef inet_aton
35 extern int inet_aton(const char *cp, struct in_addr *inp);
36 #endif /* inet_aton */
37 #ifndef inet_ntoa
38 extern char *inet_ntoa(struct in_addr in);
39 #endif /* inet_ntoa */
40 #ifndef strdup
41 extern char *strdup(const char *s);
42 #endif /* strdup */
43 #endif /* _WIN32 */
44
45 #endif /* _ICQLIB_H_ */