1 /* $Id$ */
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 * \file obsolete.c
23 *
24 * \brief Nieaktualne funkcje
25 *
26 * Plik zawiera definicje funkcji, które są już nieaktualne ze względu
27 * na zmiany w protokole. Programy konsolidowane ze starszych wersjami
28 * bibliotek powinny nadal mieć możliwość działania, mimo ograniczonej
29 * funkcjonalności.
30 */
31
32 /** \cond obsolete */
33
34 #include <errno.h>
35 #include <string.h>
36
37 #include "libgadu.h"
38 #include "internal.h"
39
gg_userlist_get(uin_t uin,const char * passwd,int async)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
gg_userlist_get_watch_fd(struct gg_http * h)47 int gg_userlist_get_watch_fd(struct gg_http *h)
48 {
49 errno = EINVAL;
50 return -1;
51 }
52
gg_userlist_get_free(struct gg_http * h)53 void gg_userlist_get_free(struct gg_http *h)
54 {
55
56 }
57
gg_userlist_put(uin_t uin,const char * password,const char * contacts,int async)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
gg_userlist_put_watch_fd(struct gg_http * h)65 int gg_userlist_put_watch_fd(struct gg_http *h)
66 {
67 errno = EINVAL;
68 return -1;
69 }
70
gg_userlist_put_free(struct gg_http * h)71 void gg_userlist_put_free(struct gg_http *h)
72 {
73
74 }
75
gg_userlist_remove(uin_t uin,const char * passwd,int async)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
gg_userlist_remove_watch_fd(struct gg_http * h)83 int gg_userlist_remove_watch_fd(struct gg_http *h)
84 {
85 errno = EINVAL;
86 return -1;
87 }
88
gg_userlist_remove_free(struct gg_http * h)89 void gg_userlist_remove_free(struct gg_http *h)
90 {
91
92 }
93
gg_search(const struct gg_search_request * r,int async)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
gg_search_watch_fd(struct gg_http * h)101 int gg_search_watch_fd(struct gg_http *h)
102 {
103 errno = EINVAL;
104 return -1;
105 }
106
gg_search_free(struct gg_http * h)107 void gg_search_free(struct gg_http *h)
108 {
109
110 }
111
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 const struct gg_search_request *gg_search_request_mode_0(char *nickname,
113 char *first_name, char *last_name, char *city, int gender,
114 int min_birth, int max_birth, int active, int start)
115 {
116 return NULL;
117 }
118
gg_search_request_mode_1(char * email,int active,int start)119 const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start)
120 {
121 return NULL;
122 }
123
gg_search_request_mode_2(char * phone,int active,int start)124 const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start)
125 {
126 return NULL;
127 }
128
gg_search_request_mode_3(uin_t uin,int active,int start)129 const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start)
130 {
131 return NULL;
132 }
133
gg_search_request_free(struct gg_search_request * r)134 void gg_search_request_free(struct gg_search_request *r)
135 {
136
137 }
138
gg_register(const char * email,const char * password,int async)139 struct gg_http *gg_register(const char *email, const char *password, int async)
140 {
141 gg_debug(GG_DEBUG_MISC, "// gg_register() is obsolete. use gg_register3() instead!\n");
142 errno = EINVAL;
143 return NULL;
144 }
145
gg_register2(const char * email,const char * password,const char * qa,int async)146 struct gg_http *gg_register2(const char *email, const char *password, const char *qa, int async)
147 {
148 gg_debug(GG_DEBUG_MISC, "// gg_register2() is obsolete. use gg_register3() instead!\n");
149 errno = EINVAL;
150 return NULL;
151 }
152
gg_unregister(uin_t uin,const char * password,const char * email,int async)153 struct gg_http *gg_unregister(uin_t uin, const char *password, const char *email, int async)
154 {
155 gg_debug(GG_DEBUG_MISC, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n");
156 errno = EINVAL;
157 return NULL;
158 }
159
gg_unregister2(uin_t uin,const char * password,const char * qa,int async)160 struct gg_http *gg_unregister2(uin_t uin, const char *password, const char *qa, int async)
161 {
162 gg_debug(GG_DEBUG_MISC, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n");
163 errno = EINVAL;
164 return NULL;
165 }
166
167
gg_change_passwd(uin_t uin,const char * passwd,const char * newpasswd,const char * newemail,int async)168 struct gg_http *gg_change_passwd(uin_t uin, const char *passwd, const char *newpasswd, const char *newemail, int async)
169 {
170 gg_debug(GG_DEBUG_MISC, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n");
171 errno = EINVAL;
172 return NULL;
173 }
174
gg_change_passwd2(uin_t uin,const char * passwd,const char * newpasswd,const char * email,const char * newemail,int async)175 struct gg_http *gg_change_passwd2(uin_t uin, const char *passwd,
176 const char *newpasswd, const char *email, const char *newemail,
177 int async)
178 {
179 gg_debug(GG_DEBUG_MISC, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n");
180 errno = EINVAL;
181 return NULL;
182 }
183
gg_change_passwd3(uin_t uin,const char * passwd,const char * newpasswd,const char * qa,int async)184 struct gg_http *gg_change_passwd3(uin_t uin, const char *passwd, const char *newpasswd, const char *qa, int async)
185 {
186 gg_debug(GG_DEBUG_MISC, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n");
187 errno = EINVAL;
188 return NULL;
189 }
190
gg_remind_passwd(uin_t uin,int async)191 struct gg_http *gg_remind_passwd(uin_t uin, int async)
192 {
193 gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd() is obsolete. use gg_remind_passwd3() instead!\n");
194 errno = EINVAL;
195 return NULL;
196 }
197
gg_remind_passwd2(uin_t uin,const char * tokenid,const char * tokenval,int async)198 struct gg_http *gg_remind_passwd2(uin_t uin, const char *tokenid, const char *tokenval, int async)
199 {
200 gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd2() is obsolete. use gg_remind_passwd3() instead!\n");
201 errno = EINVAL;
202 return NULL;
203 }
204
gg_change_info(uin_t uin,const char * passwd,const struct gg_change_info_request * request,int async)205 struct gg_http *gg_change_info(uin_t uin, const char *passwd, const struct gg_change_info_request *request, int async)
206 {
207 gg_debug(GG_DEBUG_MISC, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n");
208 errno = EINVAL;
209 return NULL;
210 }
211
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)212 struct gg_change_info_request *gg_change_info_request_new(
213 const char *first_name, const char *last_name, const char *nickname,
214 const char *email, int born, int gender, const char *city)
215 {
216 return NULL;
217 }
218
gg_change_info_request_free(struct gg_change_info_request * r)219 void gg_change_info_request_free(struct gg_change_info_request *r)
220 {
221
222 }
223
gg_resolve(int * fd,int * pid,const char * hostname)224 int gg_resolve(int *fd, int *pid, const char *hostname)
225 {
226 return -1;
227 }
228
gg_resolve_pthread_cleanup(void * arg,int kill)229 void gg_resolve_pthread_cleanup(void *arg, int kill)
230 {
231
232 }
233
gg_resolve_pthread(int * fd,void ** resolver,const char * hostname)234 int gg_resolve_pthread(int *fd, void **resolver, const char *hostname)
235 {
236 return -1;
237 }
238
gg_pubdir50_handle_reply(struct gg_event * e,const char * packet,int length)239 int gg_pubdir50_handle_reply(struct gg_event *e, const char *packet, int length)
240 {
241 return -1;
242 }
243
gg_login_hash_sha1(const char * password,uint32_t seed,uint8_t * result)244 void gg_login_hash_sha1(const char *password, uint32_t seed, uint8_t *result)
245 {
246 if (gg_login_hash_sha1_2(password, seed, result) != 0)
247 memset(result, 0, 20);
248 }
249
250 /** \endcond */
251