Merge with git+ssh://sb@repo.or.cz/srv/git/centerim.git
[centerim.git] / libgadu / obsolete.c
blob2d7e9bbf3ca5c4ce54248ca07c5b786c4489582d
1 /* $Id: obsolete.c,v 1.1 2004/01/26 23:49:45 konst Exp $ */
3 /*
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.
26 #include <errno.h>
28 #include "libgadu.h"
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");
33 errno = EINVAL;
34 return NULL;
37 int gg_userlist_get_watch_fd(struct gg_http *h)
39 errno = EINVAL;
40 return -1;
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");
51 errno = EINVAL;
52 return NULL;
55 int gg_userlist_put_watch_fd(struct gg_http *h)
57 errno = EINVAL;
58 return -1;
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");
69 errno = EINVAL;
70 return NULL;
73 int gg_userlist_remove_watch_fd(struct gg_http *h)
75 errno = EINVAL;
76 return -1;
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");
87 errno = EINVAL;
88 return NULL;
91 int gg_search_watch_fd(struct gg_http *h)
93 errno = EINVAL;
94 return -1;
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)
104 return NULL;
107 const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start)
109 return NULL;
112 const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start)
114 return NULL;
117 const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start)
119 return NULL;
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");
130 errno = EINVAL;
131 return NULL;
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");
137 errno = EINVAL;
138 return NULL;
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");
144 errno = EINVAL;
145 return NULL;
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");
151 errno = EINVAL;
152 return NULL;
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");
159 errno = EINVAL;
160 return NULL;
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");
166 errno = EINVAL;
167 return NULL;
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");
173 errno = EINVAL;
174 return NULL;
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");
180 errno = EINVAL;
181 return NULL;
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");
187 errno = EINVAL;
188 return NULL;
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)
193 return NULL;
196 void gg_change_info_request_free(struct gg_change_info_request *r)