Mercurial > pidgin
comparison libpurple/protocols/gg/lib/libgadu.h @ 32672:3828a61c44da
A boring and large patch so I can merge heads.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Dec 2011 08:21:58 +0000 |
parents | 84f72590a319 |
children |
comparison
equal
deleted
inserted
replaced
32671:0e69949b3e61 | 32672:3828a61c44da |
---|---|
31 */ | 31 */ |
32 | 32 |
33 #ifndef __GG_LIBGADU_H | 33 #ifndef __GG_LIBGADU_H |
34 #define __GG_LIBGADU_H | 34 #define __GG_LIBGADU_H |
35 | 35 |
36 #ifdef _WIN32 | 36 #if defined(__cplusplus) || defined(_WIN32) |
37 #pragma pack(push, 1) | 37 #pragma pack(push, 1) |
38 #endif | 38 #endif |
39 | 39 |
40 #ifdef __cplusplus | 40 #ifdef __cplusplus |
41 extern "C" { | 41 extern "C" { |
51 #undef GG_CONFIG_BIGENDIAN | 51 #undef GG_CONFIG_BIGENDIAN |
52 | 52 |
53 /* Defined if this machine has gethostbyname_r(). */ | 53 /* Defined if this machine has gethostbyname_r(). */ |
54 #undef GG_CONFIG_HAVE_GETHOSTBYNAME_R | 54 #undef GG_CONFIG_HAVE_GETHOSTBYNAME_R |
55 | 55 |
56 /* Defined if this machine has _exit(). */ | |
57 #undef GG_CONFIG_HAVE__EXIT | |
58 | |
59 /* Defined if libgadu was compiled and linked with fork support. */ | |
60 #undef GG_CONFIG_HAVE_FORK | |
61 | |
56 /* Defined if libgadu was compiled and linked with pthread support. */ | 62 /* Defined if libgadu was compiled and linked with pthread support. */ |
57 #undef GG_CONFIG_HAVE_PTHREAD | 63 #undef GG_CONFIG_HAVE_PTHREAD |
58 | 64 |
59 /* Defined if pthread resolver is the default one. */ | 65 /* Defined if pthread resolver is the default one. */ |
60 #undef GG_CONFIG_PTHREAD_DEFAULT | 66 #undef GG_CONFIG_PTHREAD_DEFAULT |
92 /* Defined if uintX_t types are defined in <sys/int_types.h>. */ | 98 /* Defined if uintX_t types are defined in <sys/int_types.h>. */ |
93 #undef GG_CONFIG_HAVE_SYS_INT_TYPES_H | 99 #undef GG_CONFIG_HAVE_SYS_INT_TYPES_H |
94 | 100 |
95 /* Defined if uintX_t types are defined in <sys/types.h>. */ | 101 /* Defined if uintX_t types are defined in <sys/types.h>. */ |
96 #undef GG_CONFIG_HAVE_SYS_TYPES_H | 102 #undef GG_CONFIG_HAVE_SYS_TYPES_H |
103 | |
104 #include "libgadu-config.h" | |
97 | 105 |
98 #ifdef GG_CONFIG_HAVE_OPENSSL | 106 #ifdef GG_CONFIG_HAVE_OPENSSL |
99 #include <openssl/ssl.h> | 107 #include <openssl/ssl.h> |
100 #endif | 108 #endif |
101 | 109 |
113 # else | 121 # else |
114 # ifdef GG_CONFIG_HAVE_SYS_TYPES_H | 122 # ifdef GG_CONFIG_HAVE_SYS_TYPES_H |
115 # include <sys/types.h> | 123 # include <sys/types.h> |
116 # else | 124 # else |
117 | 125 |
118 #ifndef __AC_STDINT_H | |
119 #define __AC_STDINT_H | |
120 | |
121 /* ISO C 9X: 7.18 Integer types <stdint.h> */ | 126 /* ISO C 9X: 7.18 Integer types <stdint.h> */ |
122 | 127 |
123 typedef unsigned char uint8_t; | 128 typedef unsigned char uint8_t; |
124 typedef unsigned short uint16_t; | 129 typedef unsigned short uint16_t; |
125 typedef unsigned int uint32_t; | 130 typedef unsigned int uint32_t; |
126 | |
127 #if !defined(__CYGWIN__) && !defined(__SunOS) && !defined(_INCLUDE_HPUX_SOURCE) | |
128 #define __int8_t_defined | |
129 typedef signed char int8_t; | |
130 typedef signed short int16_t; | |
131 typedef signed int int32_t; | |
132 #endif | |
133 | |
134 #endif /* __AC_STDINT_H */ | |
135 | 131 |
136 # endif | 132 # endif |
137 # endif | 133 # endif |
138 # endif | 134 # endif |
139 # endif | 135 # endif |
193 */ | 189 */ |
194 typedef enum { | 190 typedef enum { |
195 GG_RESOLVER_DEFAULT = 0, /**< Domyślny sposób rozwiązywania nazw (jeden z poniższych) */ | 191 GG_RESOLVER_DEFAULT = 0, /**< Domyślny sposób rozwiązywania nazw (jeden z poniższych) */ |
196 GG_RESOLVER_FORK, /**< Rozwiązywanie nazw bazujące na procesach */ | 192 GG_RESOLVER_FORK, /**< Rozwiązywanie nazw bazujące na procesach */ |
197 GG_RESOLVER_PTHREAD, /**< Rozwiązywanie nazw bazujące na wątkach */ | 193 GG_RESOLVER_PTHREAD, /**< Rozwiązywanie nazw bazujące na wątkach */ |
198 GG_RESOLVER_WIN32, | |
199 GG_RESOLVER_CUSTOM, /**< Funkcje rozwiązywania nazw dostarczone przed aplikację */ | 194 GG_RESOLVER_CUSTOM, /**< Funkcje rozwiązywania nazw dostarczone przed aplikację */ |
200 GG_RESOLVER_INVALID = -1 /**< Nieprawidłowy sposób rozwiązywania nazw (wynik \c gg_session_get_resolver) */ | 195 GG_RESOLVER_INVALID = -1 /**< Nieprawidłowy sposób rozwiązywania nazw (wynik \c gg_session_get_resolver) */ |
201 } gg_resolver_t; | 196 } gg_resolver_t; |
202 | 197 |
203 /** | 198 /** |
1440 | 1435 |
1441 /** \endcond */ | 1436 /** \endcond */ |
1442 | 1437 |
1443 int gg_file_hash_sha1(int fd, uint8_t *result) GG_DEPRECATED; | 1438 int gg_file_hash_sha1(int fd, uint8_t *result) GG_DEPRECATED; |
1444 | 1439 |
1445 #undef printf | |
1446 #ifdef __GNUC__ | 1440 #ifdef __GNUC__ |
1447 char *gg_saprintf(const char *format, ...) __attribute__ ((format (printf, 1, 2))) GG_DEPRECATED; | 1441 char *gg_saprintf(const char *format, ...) __attribute__ ((format (printf, 1, 2))) GG_DEPRECATED; |
1448 #else | 1442 #else |
1449 char *gg_saprintf(const char *format, ...) GG_DEPRECATED; | 1443 char *gg_saprintf(const char *format, ...) GG_DEPRECATED; |
1450 #endif | 1444 #endif |
2296 #define GG_DCC7_TIMEOUT_SEND 1800 /* 30 minut */ | 2290 #define GG_DCC7_TIMEOUT_SEND 1800 /* 30 minut */ |
2297 #define GG_DCC7_TIMEOUT_GET 1800 /* 30 minut */ | 2291 #define GG_DCC7_TIMEOUT_GET 1800 /* 30 minut */ |
2298 #define GG_DCC7_TIMEOUT_FILE_ACK 300 /* 5 minut */ | 2292 #define GG_DCC7_TIMEOUT_FILE_ACK 300 /* 5 minut */ |
2299 #define GG_DCC7_TIMEOUT_VOICE_ACK 300 /* 5 minut */ | 2293 #define GG_DCC7_TIMEOUT_VOICE_ACK 300 /* 5 minut */ |
2300 | 2294 |
2301 #ifdef _WIN32 | |
2302 #pragma pack(pop) | |
2303 #endif | |
2304 | |
2305 #ifdef __cplusplus | 2295 #ifdef __cplusplus |
2306 } | 2296 } |
2297 #endif | |
2298 | |
2299 #if defined(__cplusplus) || defined(_WIN32) | |
2300 #pragma pack(pop) | |
2307 #endif | 2301 #endif |
2308 | 2302 |
2309 #endif /* __GG_LIBGADU_H */ | 2303 #endif /* __GG_LIBGADU_H */ |
2310 | 2304 |
2311 /* | 2305 /* |