Wed, 12 Nov 2008 05:14:03 +0000
merge of '77693555855fe9cd3215414f79964dba346cc5fa'
and '19a87e98e5857ad0289f2c760d460f7f1dbbb42d'
|
14253
b63ebf84c42b
This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents:
11360
diff
changeset
|
1 | /* $Id: obsolete.c 16856 2006-08-19 01:13:25Z evands $ */ |
| 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 | |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, | |
| 18 | * USA. | |
| 19 | */ | |
| 20 | ||
| 21 | /* | |
| 22 | * Plik zawiera deklaracje funkcji, które są już nieaktualne ze względu | |
| 23 | * na zmiany w protokole, ale są wymagane przez aplikacje linkowane ze | |
| 24 | * starszymi wersjami bibliotek. | |
| 25 | */ | |
| 26 | ||
| 27 | #include <errno.h> | |
| 28 | ||
| 29 | #include "libgadu.h" | |
| 30 | ||
| 31 | struct gg_http *gg_userlist_get(uin_t uin, const char *passwd, int async) | |
| 32 | { | |
| 33 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_get() is obsolete. use gg_userlist_request() instead!\n"); | |
| 34 | errno = EINVAL; | |
| 35 | return NULL; | |
| 36 | } | |
| 37 | ||
| 38 | int gg_userlist_get_watch_fd(struct gg_http *h) | |
| 39 | { | |
| 40 | errno = EINVAL; | |
| 41 | return -1; | |
| 42 | } | |
| 43 | ||
| 44 | void gg_userlist_get_free(struct gg_http *h) | |
| 45 | { | |
| 46 | ||
| 47 | } | |
| 48 | ||
| 49 | struct gg_http *gg_userlist_put(uin_t uin, const char *password, const char *contacts, int async) | |
| 50 | { | |
| 51 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_put() is obsolete. use gg_userlist_request() instead!\n"); | |
| 52 | errno = EINVAL; | |
| 53 | return NULL; | |
| 54 | } | |
| 55 | ||
| 56 | int gg_userlist_put_watch_fd(struct gg_http *h) | |
| 57 | { | |
| 58 | errno = EINVAL; | |
| 59 | return -1; | |
| 60 | } | |
| 61 | ||
| 62 | void gg_userlist_put_free(struct gg_http *h) | |
| 63 | { | |
| 64 | ||
| 65 | } | |
| 66 | ||
| 67 | struct gg_http *gg_userlist_remove(uin_t uin, const char *passwd, int async) | |
| 68 | { | |
| 69 | gg_debug(GG_DEBUG_MISC, "// gg_userlist_remove() is obsolete. use gg_userlist_request() instead!\n"); | |
| 70 | errno = EINVAL; | |
| 71 | return NULL; | |
| 72 | } | |
| 73 | ||
| 74 | int gg_userlist_remove_watch_fd(struct gg_http *h) | |
| 75 | { | |
| 76 | errno = EINVAL; | |
| 77 | return -1; | |
| 78 | } | |
| 79 | ||
| 80 | void gg_userlist_remove_free(struct gg_http *h) | |
| 81 | { | |
| 82 | ||
| 83 | } | |
| 84 | ||
| 85 | struct gg_http *gg_search(const struct gg_search_request *r, int async) | |
| 86 | { | |
| 87 | gg_debug(GG_DEBUG_MISC, "// gg_search() is obsolete. use gg_search50() instead!\n"); | |
| 88 | errno = EINVAL; | |
| 89 | return NULL; | |
| 90 | } | |
| 91 | ||
| 92 | int gg_search_watch_fd(struct gg_http *h) | |
| 93 | { | |
| 94 | errno = EINVAL; | |
| 95 | return -1; | |
| 96 | } | |
| 97 | ||
| 98 | void gg_search_free(struct gg_http *h) | |
| 99 | { | |
| 100 | ||
| 101 | } | |
| 102 | ||
| 103 | 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) | |
| 104 | { | |
| 105 | return NULL; | |
| 106 | } | |
| 107 | ||
| 108 | const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start) | |
| 109 | { | |
| 110 | return NULL; | |
| 111 | } | |
| 112 | ||
| 113 | const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start) | |
| 114 | { | |
| 115 | return NULL; | |
| 116 | } | |
| 117 | ||
| 118 | const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start) | |
| 119 | { | |
| 120 | return NULL; | |
| 121 | } | |
| 122 | ||
| 123 | void gg_search_request_free(struct gg_search_request *r) | |
| 124 | { | |
| 125 | ||
| 126 | } | |
| 127 | ||
| 128 | struct gg_http *gg_register(const char *email, const char *password, int async) | |
| 129 | { | |
| 130 | gg_debug(GG_DEBUG_MISC, "// gg_register() is obsolete. use gg_register3() instead!\n"); | |
| 131 | errno = EINVAL; | |
| 132 | return NULL; | |
| 133 | } | |
| 134 | ||
| 135 | struct gg_http *gg_register2(const char *email, const char *password, const char *qa, int async) | |
| 136 | { | |
| 137 | gg_debug(GG_DEBUG_MISC, "// gg_register2() is obsolete. use gg_register3() instead!\n"); | |
| 138 | errno = EINVAL; | |
| 139 | return NULL; | |
| 140 | } | |
| 141 | ||
| 142 | struct gg_http *gg_unregister(uin_t uin, const char *password, const char *email, int async) | |
| 143 | { | |
| 144 | gg_debug(GG_DEBUG_MISC, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n"); | |
| 145 | errno = EINVAL; | |
| 146 | return NULL; | |
| 147 | } | |
| 148 | ||
| 149 | struct gg_http *gg_unregister2(uin_t uin, const char *password, const char *qa, int async) | |
| 150 | { | |
| 151 | gg_debug(GG_DEBUG_MISC, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n"); | |
| 152 | errno = EINVAL; | |
| 153 | return NULL; | |
| 154 | } | |
| 155 | ||
| 156 | ||
| 157 | struct gg_http *gg_change_passwd(uin_t uin, const char *passwd, const char *newpasswd, const char *newemail, int async) | |
| 158 | { | |
| 159 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 160 | errno = EINVAL; | |
| 161 | return NULL; | |
| 162 | } | |
| 163 | ||
| 164 | struct gg_http *gg_change_passwd2(uin_t uin, const char *passwd, const char *newpasswd, const char *email, const char *newemail, int async) | |
| 165 | { | |
| 166 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 167 | errno = EINVAL; | |
| 168 | return NULL; | |
| 169 | } | |
| 170 | ||
| 171 | struct gg_http *gg_change_passwd3(uin_t uin, const char *passwd, const char *newpasswd, const char *qa, int async) | |
| 172 | { | |
| 173 | gg_debug(GG_DEBUG_MISC, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n"); | |
| 174 | errno = EINVAL; | |
| 175 | return NULL; | |
| 176 | } | |
| 177 | ||
| 178 | struct gg_http *gg_remind_passwd(uin_t uin, int async) | |
| 179 | { | |
| 180 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 181 | errno = EINVAL; | |
| 182 | return NULL; | |
| 183 | } | |
| 184 | ||
| 185 | struct gg_http *gg_remind_passwd2(uin_t uin, const char *tokenid, const char *tokenval, int async) | |
| 186 | { | |
| 187 | gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd2() is obsolete. use gg_remind_passwd3() instead!\n"); | |
| 188 | errno = EINVAL; | |
| 189 | return NULL; | |
| 190 | } | |
| 191 | ||
| 192 | struct gg_http *gg_change_info(uin_t uin, const char *passwd, const struct gg_change_info_request *request, int async) | |
| 193 | { | |
| 194 | gg_debug(GG_DEBUG_MISC, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n"); | |
| 195 | errno = EINVAL; | |
| 196 | return NULL; | |
| 197 | } | |
| 198 | ||
| 199 | 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) | |
| 200 | { | |
| 201 | return NULL; | |
| 202 | } | |
| 203 | ||
| 204 | void gg_change_info_request_free(struct gg_change_info_request *r) | |
| 205 | { | |
| 206 | ||
| 207 | } |