Wed, 28 Sep 2016 09:32:19 -0500
Merged in CMaiku/pidgin (pull request #136)
Windows build fixes
|
35617
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
1 | /* $Id$ */ |
| 11360 | 2 | |
| 3 | /* | |
| 4 | * (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl> | |
| 5 | * | |
| 6 | * This program is free software; you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU Lesser General Public License Version | |
| 8 | * 2.1 as published by the Free Software Foundation. | |
| 9 | * | |
| 10 | * This program is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU Lesser General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU Lesser General Public | |
| 16 | * License along with this program; if not, write to the Free Software | |
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, |
| 11360 | 18 | * USA. |
| 19 | */ | |
| 20 | ||
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
21 | /** |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
22 | * \file obsolete.c |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
23 | * |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
24 | * \brief Nieaktualne funkcje |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
25 | * |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
26 | * Plik zawiera definicje funkcji, które są już nieaktualne ze względu |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
27 | * na zmiany w protokole. Programy konsolidowane ze starszych wersjami |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
28 | * bibliotek powinny nadal mieć możliwość działania, mimo ograniczonej |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
29 | * funkcjonalności. |
| 11360 | 30 | */ |
| 31 | ||
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
32 | /** \cond obsolete */ |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
33 | |
| 11360 | 34 | #include <errno.h> |
|
35617
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
35 | #include <string.h> |
| 11360 | 36 | |
| 37 | #include "libgadu.h" | |
|
35617
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
38 | #include "internal.h" |
| 11360 | 39 | |
| 40 | struct gg_http *gg_userlist_get(uin_t uin, const char *passwd, int async) | |
| 41 | { | |
| 42 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_get() is obsolete. use gg_userlist_request() instead!\n"); | |
| 43 | errno = EINVAL; | |
| 44 | return NULL; | |
| 45 | } | |
| 46 | ||
| 47 | int gg_userlist_get_watch_fd(struct gg_http *h) | |
| 48 | { | |
| 49 | errno = EINVAL; | |
| 50 | return -1; | |
| 51 | } | |
| 52 | ||
| 53 | void gg_userlist_get_free(struct gg_http *h) | |
| 54 | { | |
| 55 | ||
| 56 | } | |
| 57 | ||
| 58 | struct gg_http *gg_userlist_put(uin_t uin, const char *password, const char *contacts, int async) | |
| 59 | { | |
| 60 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_put() is obsolete. use gg_userlist_request() instead!\n"); | |
| 61 | errno = EINVAL; | |
| 62 | return NULL; | |
| 63 | } | |
| 64 | ||
| 65 | int gg_userlist_put_watch_fd(struct gg_http *h) | |
| 66 | { | |
| 67 | errno = EINVAL; | |
| 68 | return -1; | |
| 69 | } | |
| 70 | ||
| 71 | void gg_userlist_put_free(struct gg_http *h) | |
| 72 | { | |
| 73 | ||
| 74 | } | |
| 75 | ||
| 76 | struct gg_http *gg_userlist_remove(uin_t uin, const char *passwd, int async) | |
| 77 | { | |
| 78 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_remove() is obsolete. use gg_userlist_request() instead!\n"); | |
| 79 | errno = EINVAL; | |
| 80 | return NULL; | |
| 81 | } | |
| 82 | ||
| 83 | int gg_userlist_remove_watch_fd(struct gg_http *h) | |
| 84 | { | |
| 85 | errno = EINVAL; | |
| 86 | return -1; | |
| 87 | } | |
| 88 | ||
| 89 | void gg_userlist_remove_free(struct gg_http *h) | |
| 90 | { | |
| 91 | ||
| 92 | } | |
| 93 | ||
| 94 | struct gg_http *gg_search(const struct gg_search_request *r, int async) | |
| 95 | { | |
| 96 | gg_debug(GG_DEBUG_MISC, "// gg_search() is obsolete. use gg_search50() instead!\n"); | |
| 97 | errno = EINVAL; | |
| 98 | return NULL; | |
| 99 | } | |
| 100 | ||
| 101 | int gg_search_watch_fd(struct gg_http *h) | |
| 102 | { | |
| 103 | errno = EINVAL; | |
| 104 | return -1; | |
| 105 | } | |
| 106 | ||
| 107 | void gg_search_free(struct gg_http *h) | |
| 108 | { | |
| 109 | ||
| 110 | } | |
| 111 | ||
|
35627
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
112 | const struct gg_search_request *gg_search_request_mode_0(char *nickname, |
|
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
113 | char *first_name, char *last_name, char *city, int gender, |
|
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
114 | int min_birth, int max_birth, int active, int start) |
| 11360 | 115 | { |
| 116 | return NULL; | |
| 117 | } | |
| 118 | ||
| 119 | const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start) | |
| 120 | { | |
| 121 | return NULL; | |
| 122 | } | |
| 123 | ||
| 124 | const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start) | |
| 125 | { | |
| 126 | return NULL; | |
| 127 | } | |
| 128 | ||
| 129 | const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start) | |
| 130 | { | |
| 131 | return NULL; | |
| 132 | } | |
| 133 | ||
| 134 | void gg_search_request_free(struct gg_search_request *r) | |
| 135 | { | |
| 136 | ||
| 137 | } | |
| 138 | ||
| 139 | struct gg_http *gg_register(const char *email, const char *password, int async) | |
| 140 | { | |
| 141 | gg_debug(GG_DEBUG_MISC, "// gg_register() is obsolete. use gg_register3() instead!\n"); | |
| 142 | errno = EINVAL; | |
| 143 | return NULL; | |
| 144 | } | |
| 145 | ||
| 146 | struct gg_http *gg_register2(const char *email, const char *password, const char *qa, int async) | |
| 147 | { | |
| 148 | gg_debug(GG_DEBUG_MISC, "// gg_register2() is obsolete. use gg_register3() instead!\n"); | |
| 149 | errno = EINVAL; | |
| 150 | return NULL; | |
| 151 | } | |
| 152 | ||
| 153 | struct gg_http *gg_unregister(uin_t uin, const char *password, const char *email, int async) | |
| 154 | { | |
| 155 | gg_debug(GG_DEBUG_MISC, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n"); | |
| 156 | errno = EINVAL; | |
| 157 | return NULL; | |
| 158 | } | |
| 159 | ||
| 160 | struct gg_http *gg_unregister2(uin_t uin, const char *password, const char *qa, int async) | |
| 161 | { | |
| 162 | gg_debug(GG_DEBUG_MISC, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n"); | |
| 163 | errno = EINVAL; | |
| 164 | return NULL; | |
| 165 | } | |
| 166 | ||
| 167 | ||
| 168 | struct gg_http *gg_change_passwd(uin_t uin, const char *passwd, const char *newpasswd, const char *newemail, int async) | |
| 169 | { | |
| 170 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 171 | errno = EINVAL; | |
| 172 | return NULL; | |
| 173 | } | |
| 174 | ||
|
35627
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
175 | struct gg_http *gg_change_passwd2(uin_t uin, const char *passwd, |
|
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
176 | const char *newpasswd, const char *email, const char *newemail, |
|
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
177 | int async) |
| 11360 | 178 | { |
| 179 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 180 | errno = EINVAL; | |
| 181 | return NULL; | |
| 182 | } | |
| 183 | ||
| 184 | struct gg_http *gg_change_passwd3(uin_t uin, const char *passwd, const char *newpasswd, const char *qa, int async) | |
| 185 | { | |
| 186 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 187 | errno = EINVAL; | |
| 188 | return NULL; | |
| 189 | } | |
| 190 | ||
| 191 | struct gg_http *gg_remind_passwd(uin_t uin, int async) | |
| 192 | { | |
| 193 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 194 | errno = EINVAL; | |
| 195 | return NULL; | |
| 196 | } | |
| 197 | ||
| 198 | struct gg_http *gg_remind_passwd2(uin_t uin, const char *tokenid, const char *tokenval, int async) | |
| 199 | { | |
| 200 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd2() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 201 | errno = EINVAL; | |
| 202 | return NULL; | |
| 203 | } | |
| 204 | ||
| 205 | struct gg_http *gg_change_info(uin_t uin, const char *passwd, const struct gg_change_info_request *request, int async) | |
| 206 | { | |
| 207 | gg_debug(GG_DEBUG_MISC, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n"); | |
| 208 | errno = EINVAL; | |
| 209 | return NULL; | |
| 210 | } | |
| 211 | ||
|
35627
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
212 | struct gg_change_info_request *gg_change_info_request_new( |
|
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
213 | const char *first_name, const char *last_name, const char *nickname, |
|
fd11790cc4d6
Update internal libgadu to the current version from git
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35617
diff
changeset
|
214 | const char *email, int born, int gender, const char *city) |
| 11360 | 215 | { |
| 216 | return NULL; | |
| 217 | } | |
| 218 | ||
| 219 | void gg_change_info_request_free(struct gg_change_info_request *r) | |
| 220 | { | |
| 221 | ||
| 222 | } | |
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
223 | |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
224 | int gg_resolve(int *fd, int *pid, const char *hostname) |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
225 | { |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
226 | return -1; |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
227 | } |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
228 | |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
229 | void gg_resolve_pthread_cleanup(void *arg, int kill) |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
230 | { |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
231 | |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
232 | } |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
233 | |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
234 | int gg_resolve_pthread(int *fd, void **resolver, const char *hostname) |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
235 | { |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
236 | return -1; |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
237 | } |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
238 | |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
239 | int gg_pubdir50_handle_reply(struct gg_event *e, const char *packet, int length) |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
240 | { |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
241 | return -1; |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
242 | } |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
243 | |
|
35617
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
244 | void gg_login_hash_sha1(const char *password, uint32_t seed, uint8_t *result) |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
245 | { |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
246 | if (gg_login_hash_sha1_2(password, seed, result) != 0) |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
247 | memset(result, 0, 20); |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
248 | } |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
249 | |
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
250 | /** \endcond */ |