Fri, 23 Dec 2011 08:21:58 +0000
A boring and large patch so I can merge heads.
|
31826
0f6ab56fbf9d
Update libgadu to 0.11.0 plus local changes; thanks to Tomasz Wasilczyk.
Ethan Blanton <elb@pidgin.im>
parents:
31609
diff
changeset
|
1 | /* $Id: obsolete.c 1082 2011-04-08 17:50:14Z wojtekka $ */ |
| 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> |
| 35 | ||
| 36 | #include "libgadu.h" | |
|
31826
0f6ab56fbf9d
Update libgadu to 0.11.0 plus local changes; thanks to Tomasz Wasilczyk.
Ethan Blanton <elb@pidgin.im>
parents:
31609
diff
changeset
|
37 | #include "libgadu-internal.h" |
| 11360 | 38 | |
| 39 | struct gg_http *gg_userlist_get(uin_t uin, const char *passwd, int async) | |
| 40 | { | |
| 41 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_get() is obsolete. use gg_userlist_request() instead!\n"); | |
| 42 | errno = EINVAL; | |
| 43 | return NULL; | |
| 44 | } | |
| 45 | ||
| 46 | int gg_userlist_get_watch_fd(struct gg_http *h) | |
| 47 | { | |
| 48 | errno = EINVAL; | |
| 49 | return -1; | |
| 50 | } | |
| 51 | ||
| 52 | void gg_userlist_get_free(struct gg_http *h) | |
| 53 | { | |
| 54 | ||
| 55 | } | |
| 56 | ||
| 57 | struct gg_http *gg_userlist_put(uin_t uin, const char *password, const char *contacts, int async) | |
| 58 | { | |
| 59 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_put() is obsolete. use gg_userlist_request() instead!\n"); | |
| 60 | errno = EINVAL; | |
| 61 | return NULL; | |
| 62 | } | |
| 63 | ||
| 64 | int gg_userlist_put_watch_fd(struct gg_http *h) | |
| 65 | { | |
| 66 | errno = EINVAL; | |
| 67 | return -1; | |
| 68 | } | |
| 69 | ||
| 70 | void gg_userlist_put_free(struct gg_http *h) | |
| 71 | { | |
| 72 | ||
| 73 | } | |
| 74 | ||
| 75 | struct gg_http *gg_userlist_remove(uin_t uin, const char *passwd, int async) | |
| 76 | { | |
| 77 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_remove() is obsolete. use gg_userlist_request() instead!\n"); | |
| 78 | errno = EINVAL; | |
| 79 | return NULL; | |
| 80 | } | |
| 81 | ||
| 82 | int gg_userlist_remove_watch_fd(struct gg_http *h) | |
| 83 | { | |
| 84 | errno = EINVAL; | |
| 85 | return -1; | |
| 86 | } | |
| 87 | ||
| 88 | void gg_userlist_remove_free(struct gg_http *h) | |
| 89 | { | |
| 90 | ||
| 91 | } | |
| 92 | ||
| 93 | struct gg_http *gg_search(const struct gg_search_request *r, int async) | |
| 94 | { | |
| 95 | gg_debug(GG_DEBUG_MISC, "// gg_search() is obsolete. use gg_search50() instead!\n"); | |
| 96 | errno = EINVAL; | |
| 97 | return NULL; | |
| 98 | } | |
| 99 | ||
| 100 | int gg_search_watch_fd(struct gg_http *h) | |
| 101 | { | |
| 102 | errno = EINVAL; | |
| 103 | return -1; | |
| 104 | } | |
| 105 | ||
| 106 | void gg_search_free(struct gg_http *h) | |
| 107 | { | |
| 108 | ||
| 109 | } | |
| 110 | ||
| 111 | 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) | |
| 112 | { | |
| 113 | return NULL; | |
| 114 | } | |
| 115 | ||
| 116 | const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start) | |
| 117 | { | |
| 118 | return NULL; | |
| 119 | } | |
| 120 | ||
| 121 | const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start) | |
| 122 | { | |
| 123 | return NULL; | |
| 124 | } | |
| 125 | ||
| 126 | const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start) | |
| 127 | { | |
| 128 | return NULL; | |
| 129 | } | |
| 130 | ||
| 131 | void gg_search_request_free(struct gg_search_request *r) | |
| 132 | { | |
| 133 | ||
| 134 | } | |
| 135 | ||
| 136 | struct gg_http *gg_register(const char *email, const char *password, int async) | |
| 137 | { | |
| 138 | gg_debug(GG_DEBUG_MISC, "// gg_register() is obsolete. use gg_register3() instead!\n"); | |
| 139 | errno = EINVAL; | |
| 140 | return NULL; | |
| 141 | } | |
| 142 | ||
| 143 | struct gg_http *gg_register2(const char *email, const char *password, const char *qa, int async) | |
| 144 | { | |
| 145 | gg_debug(GG_DEBUG_MISC, "// gg_register2() is obsolete. use gg_register3() instead!\n"); | |
| 146 | errno = EINVAL; | |
| 147 | return NULL; | |
| 148 | } | |
| 149 | ||
| 150 | struct gg_http *gg_unregister(uin_t uin, const char *password, const char *email, int async) | |
| 151 | { | |
| 152 | gg_debug(GG_DEBUG_MISC, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n"); | |
| 153 | errno = EINVAL; | |
| 154 | return NULL; | |
| 155 | } | |
| 156 | ||
| 157 | struct gg_http *gg_unregister2(uin_t uin, const char *password, const char *qa, int async) | |
| 158 | { | |
| 159 | gg_debug(GG_DEBUG_MISC, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n"); | |
| 160 | errno = EINVAL; | |
| 161 | return NULL; | |
| 162 | } | |
| 163 | ||
| 164 | ||
| 165 | struct gg_http *gg_change_passwd(uin_t uin, const char *passwd, const char *newpasswd, const char *newemail, int async) | |
| 166 | { | |
| 167 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 168 | errno = EINVAL; | |
| 169 | return NULL; | |
| 170 | } | |
| 171 | ||
| 172 | struct gg_http *gg_change_passwd2(uin_t uin, const char *passwd, const char *newpasswd, const char *email, const char *newemail, int async) | |
| 173 | { | |
| 174 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 175 | errno = EINVAL; | |
| 176 | return NULL; | |
| 177 | } | |
| 178 | ||
| 179 | struct gg_http *gg_change_passwd3(uin_t uin, const char *passwd, const char *newpasswd, const char *qa, int async) | |
| 180 | { | |
| 181 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 182 | errno = EINVAL; | |
| 183 | return NULL; | |
| 184 | } | |
| 185 | ||
| 186 | struct gg_http *gg_remind_passwd(uin_t uin, int async) | |
| 187 | { | |
| 188 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 189 | errno = EINVAL; | |
| 190 | return NULL; | |
| 191 | } | |
| 192 | ||
| 193 | struct gg_http *gg_remind_passwd2(uin_t uin, const char *tokenid, const char *tokenval, int async) | |
| 194 | { | |
| 195 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd2() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 196 | errno = EINVAL; | |
| 197 | return NULL; | |
| 198 | } | |
| 199 | ||
| 200 | struct gg_http *gg_change_info(uin_t uin, const char *passwd, const struct gg_change_info_request *request, int async) | |
| 201 | { | |
| 202 | gg_debug(GG_DEBUG_MISC, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n"); | |
| 203 | errno = EINVAL; | |
| 204 | return NULL; | |
| 205 | } | |
| 206 | ||
| 207 | 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) | |
| 208 | { | |
| 209 | return NULL; | |
| 210 | } | |
| 211 | ||
| 212 | void gg_change_info_request_free(struct gg_change_info_request *r) | |
| 213 | { | |
| 214 | ||
| 215 | } | |
|
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
|
216 | |
|
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 | 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
|
218 | { |
|
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 | 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
|
220 | } |
|
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 | 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
|
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 | |
|
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 | 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
|
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 | 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
|
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 | 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
|
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 | 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
|
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 | |
|
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 | /** \endcond */ |