1 /* $Id: obsolete.c,v 1.1 2004/01/26 23:49:45 konst Exp $ */
4 * (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl>
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Plik zawiera deklaracje funkcji, które s± ju¿ nieaktualne ze wzglêdu
22 * na zmiany w protokole, ale s± wymagane przez aplikacje linkowane ze
23 * starszymi wersjami bibliotek.
30 struct gg_http
*gg_userlist_get(uin_t uin
, const char *passwd
, int async
)
32 gg_debug(GG_DEBUG_MISC
, "// gg_userlist_get() is obsolete. use gg_userlist_request() instead!\n");
37 int gg_userlist_get_watch_fd(struct gg_http
*h
)
43 void gg_userlist_get_free(struct gg_http
*h
)
48 struct gg_http
*gg_userlist_put(uin_t uin
, const char *password
, const char *contacts
, int async
)
50 gg_debug(GG_DEBUG_MISC
, "// gg_userlist_put() is obsolete. use gg_userlist_request() instead!\n");
55 int gg_userlist_put_watch_fd(struct gg_http
*h
)
61 void gg_userlist_put_free(struct gg_http
*h
)
66 struct gg_http
*gg_userlist_remove(uin_t uin
, const char *passwd
, int async
)
68 gg_debug(GG_DEBUG_MISC
, "// gg_userlist_remove() is obsolete. use gg_userlist_request() instead!\n");
73 int gg_userlist_remove_watch_fd(struct gg_http
*h
)
79 void gg_userlist_remove_free(struct gg_http
*h
)
84 struct gg_http
*gg_search(const struct gg_search_request
*r
, int async
)
86 gg_debug(GG_DEBUG_MISC
, "// gg_search() is obsolete. use gg_search50() instead!\n");
91 int gg_search_watch_fd(struct gg_http
*h
)
97 void gg_search_free(struct gg_http
*h
)
102 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
)
107 const struct gg_search_request
*gg_search_request_mode_1(char *email
, int active
, int start
)
112 const struct gg_search_request
*gg_search_request_mode_2(char *phone
, int active
, int start
)
117 const struct gg_search_request
*gg_search_request_mode_3(uin_t uin
, int active
, int start
)
122 void gg_search_request_free(struct gg_search_request
*r
)
127 struct gg_http
*gg_register(const char *email
, const char *password
, int async
)
129 gg_debug(GG_DEBUG_MISC
, "// gg_register() is obsolete. use gg_register3() instead!\n");
134 struct gg_http
*gg_register2(const char *email
, const char *password
, const char *qa
, int async
)
136 gg_debug(GG_DEBUG_MISC
, "// gg_register2() is obsolete. use gg_register3() instead!\n");
141 struct gg_http
*gg_unregister(uin_t uin
, const char *password
, const char *email
, int async
)
143 gg_debug(GG_DEBUG_MISC
, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n");
148 struct gg_http
*gg_unregister2(uin_t uin
, const char *password
, const char *qa
, int async
)
150 gg_debug(GG_DEBUG_MISC
, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n");
156 struct gg_http
*gg_change_passwd(uin_t uin
, const char *passwd
, const char *newpasswd
, const char *newemail
, int async
)
158 gg_debug(GG_DEBUG_MISC
, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n");
163 struct gg_http
*gg_change_passwd2(uin_t uin
, const char *passwd
, const char *newpasswd
, const char *email
, const char *newemail
, int async
)
165 gg_debug(GG_DEBUG_MISC
, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n");
170 struct gg_http
*gg_change_passwd3(uin_t uin
, const char *passwd
, const char *newpasswd
, const char *qa
, int async
)
172 gg_debug(GG_DEBUG_MISC
, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n");
177 struct gg_http
*gg_remind_passwd(uin_t uin
, int async
)
179 gg_debug(GG_DEBUG_MISC
, "// gg_remind_passwd() is obsolete. use gg_remind_passwd2() instead!\n");
184 struct gg_http
*gg_change_info(uin_t uin
, const char *passwd
, const struct gg_change_info_request
*request
, int async
)
186 gg_debug(GG_DEBUG_MISC
, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n");
191 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
)
196 void gg_change_info_request_free(struct gg_change_info_request
*r
)