Fri, 28 Feb 2014 20:56:22 +0100
Merge release-2.x.y
|
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 | ||
| 112 | const struct gg_search_request *gg_search_request_mode_0(char *nickname, char *first_name, char *last_name, char *city, int gender, int min_birth, int max_birth, int active, int start) | |
| 113 | { | |
| 114 | return NULL; | |
| 115 | } | |
| 116 | ||
| 117 | const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start) | |
| 118 | { | |
| 119 | return NULL; | |
| 120 | } | |
| 121 | ||
| 122 | const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start) | |
| 123 | { | |
| 124 | return NULL; | |
| 125 | } | |
| 126 | ||
| 127 | const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start) | |
| 128 | { | |
| 129 | return NULL; | |
| 130 | } | |
| 131 | ||
| 132 | void gg_search_request_free(struct gg_search_request *r) | |
| 133 | { | |
| 134 | ||
| 135 | } | |
| 136 | ||
| 137 | struct gg_http *gg_register(const char *email, const char *password, int async) | |
| 138 | { | |
| 139 | gg_debug(GG_DEBUG_MISC, "// gg_register() is obsolete. use gg_register3() instead!\n"); | |
| 140 | errno = EINVAL; | |
| 141 | return NULL; | |
| 142 | } | |
| 143 | ||
| 144 | struct gg_http *gg_register2(const char *email, const char *password, const char *qa, int async) | |
| 145 | { | |
| 146 | gg_debug(GG_DEBUG_MISC, "// gg_register2() is obsolete. use gg_register3() instead!\n"); | |
| 147 | errno = EINVAL; | |
| 148 | return NULL; | |
| 149 | } | |
| 150 | ||
| 151 | struct gg_http *gg_unregister(uin_t uin, const char *password, const char *email, int async) | |
| 152 | { | |
| 153 | gg_debug(GG_DEBUG_MISC, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n"); | |
| 154 | errno = EINVAL; | |
| 155 | return NULL; | |
| 156 | } | |
| 157 | ||
| 158 | struct gg_http *gg_unregister2(uin_t uin, const char *password, const char *qa, int async) | |
| 159 | { | |
| 160 | gg_debug(GG_DEBUG_MISC, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n"); | |
| 161 | errno = EINVAL; | |
| 162 | return NULL; | |
| 163 | } | |
| 164 | ||
| 165 | ||
| 166 | struct gg_http *gg_change_passwd(uin_t uin, const char *passwd, const char *newpasswd, const char *newemail, int async) | |
| 167 | { | |
| 168 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 169 | errno = EINVAL; | |
| 170 | return NULL; | |
| 171 | } | |
| 172 | ||
| 173 | struct gg_http *gg_change_passwd2(uin_t uin, const char *passwd, const char *newpasswd, const char *email, const char *newemail, int async) | |
| 174 | { | |
| 175 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 176 | errno = EINVAL; | |
| 177 | return NULL; | |
| 178 | } | |
| 179 | ||
| 180 | struct gg_http *gg_change_passwd3(uin_t uin, const char *passwd, const char *newpasswd, const char *qa, int async) | |
| 181 | { | |
| 182 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 183 | errno = EINVAL; | |
| 184 | return NULL; | |
| 185 | } | |
| 186 | ||
| 187 | struct gg_http *gg_remind_passwd(uin_t uin, int async) | |
| 188 | { | |
| 189 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 190 | errno = EINVAL; | |
| 191 | return NULL; | |
| 192 | } | |
| 193 | ||
| 194 | struct gg_http *gg_remind_passwd2(uin_t uin, const char *tokenid, const char *tokenval, int async) | |
| 195 | { | |
| 196 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd2() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 197 | errno = EINVAL; | |
| 198 | return NULL; | |
| 199 | } | |
| 200 | ||
| 201 | struct gg_http *gg_change_info(uin_t uin, const char *passwd, const struct gg_change_info_request *request, int async) | |
| 202 | { | |
| 203 | gg_debug(GG_DEBUG_MISC, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n"); | |
| 204 | errno = EINVAL; | |
| 205 | return NULL; | |
| 206 | } | |
| 207 | ||
| 208 | struct gg_change_info_request *gg_change_info_request_new(const char *first_name, const char *last_name, const char *nickname, const char *email, int born, int gender, const char *city) | |
| 209 | { | |
| 210 | return NULL; | |
| 211 | } | |
| 212 | ||
| 213 | void gg_change_info_request_free(struct gg_change_info_request *r) | |
| 214 | { | |
| 215 | ||
| 216 | } | |
|
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
|
217 | |
|
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
|
218 | 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
|
219 | { |
|
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
|
220 | 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
|
221 | } |
|
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
|
222 | |
|
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 | 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
|
224 | { |
|
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 | } |
|
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 | 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
|
229 | { |
|
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 | 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
|
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 | 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
|
234 | { |
|
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 | 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
|
236 | } |
|
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 | |
|
35617
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
238 | 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
|
239 | { |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
240 | 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
|
241 | memset(result, 0, 20); |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
242 | } |
|
c9069e0e3c36
Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
31826
diff
changeset
|
243 | |
|
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
|
244 | /** \endcond */ |