1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
/* coding: UTF-8 */
/* $Id: obsolete.c 854 2009-10-12 21:06:28Z wojtekka $ */
/*
* (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License Version
* 2.1 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
* USA.
*/
/**
* \file obsolete.c
*
* \brief Nieaktualne funkcje
*
* Plik zawiera definicje funkcji, które są już nieaktualne ze względu
* na zmiany w protokole. Programy konsolidowane ze starszych wersjami
* bibliotek powinny nadal mieć możliwość działania, mimo ograniczonej
* funkcjonalności.
*/
/** \cond obsolete */
#include <errno.h>
#include "libgadu.h"
#include "internal.h"
struct gg_http *gg_userlist_get(uin_t uin, const char *passwd, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_userlist_get() is obsolete. use gg_userlist_request() instead!\n");
errno = EINVAL;
return NULL;
}
int gg_userlist_get_watch_fd(struct gg_http *h)
{
errno = EINVAL;
return -1;
}
void gg_userlist_get_free(struct gg_http *h)
{
}
struct gg_http *gg_userlist_put(uin_t uin, const char *password, const char *contacts, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_userlist_put() is obsolete. use gg_userlist_request() instead!\n");
errno = EINVAL;
return NULL;
}
int gg_userlist_put_watch_fd(struct gg_http *h)
{
errno = EINVAL;
return -1;
}
void gg_userlist_put_free(struct gg_http *h)
{
}
struct gg_http *gg_userlist_remove(uin_t uin, const char *passwd, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_userlist_remove() is obsolete. use gg_userlist_request() instead!\n");
errno = EINVAL;
return NULL;
}
int gg_userlist_remove_watch_fd(struct gg_http *h)
{
errno = EINVAL;
return -1;
}
void gg_userlist_remove_free(struct gg_http *h)
{
}
struct gg_http *gg_search(const struct gg_search_request *r, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_search() is obsolete. use gg_search50() instead!\n");
errno = EINVAL;
return NULL;
}
int gg_search_watch_fd(struct gg_http *h)
{
errno = EINVAL;
return -1;
}
void gg_search_free(struct gg_http *h)
{
}
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)
{
return NULL;
}
const struct gg_search_request *gg_search_request_mode_1(char *email, int active, int start)
{
return NULL;
}
const struct gg_search_request *gg_search_request_mode_2(char *phone, int active, int start)
{
return NULL;
}
const struct gg_search_request *gg_search_request_mode_3(uin_t uin, int active, int start)
{
return NULL;
}
void gg_search_request_free(struct gg_search_request *r)
{
}
struct gg_http *gg_register(const char *email, const char *password, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_register() is obsolete. use gg_register3() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_register2(const char *email, const char *password, const char *qa, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_register2() is obsolete. use gg_register3() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_unregister(uin_t uin, const char *password, const char *email, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_unregister() is obsolete. use gg_unregister3() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_unregister2(uin_t uin, const char *password, const char *qa, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_unregister2() is obsolete. use gg_unregister3() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_change_passwd(uin_t uin, const char *passwd, const char *newpasswd, const char *newemail, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_change_passwd() is obsolete. use gg_change_passwd4() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_change_passwd2(uin_t uin, const char *passwd, const char *newpasswd, const char *email, const char *newemail, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_change_passwd2() is obsolete. use gg_change_passwd4() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_change_passwd3(uin_t uin, const char *passwd, const char *newpasswd, const char *qa, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_change_passwd3() is obsolete. use gg_change_passwd4() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_remind_passwd(uin_t uin, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd() is obsolete. use gg_remind_passwd3() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_remind_passwd2(uin_t uin, const char *tokenid, const char *tokenval, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_remind_passwd2() is obsolete. use gg_remind_passwd3() instead!\n");
errno = EINVAL;
return NULL;
}
struct gg_http *gg_change_info(uin_t uin, const char *passwd, const struct gg_change_info_request *request, int async)
{
gg_debug(GG_DEBUG_MISC, "// gg_change_info() is obsolete. use gg_pubdir50() instead\n");
errno = EINVAL;
return NULL;
}
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)
{
return NULL;
}
void gg_change_info_request_free(struct gg_change_info_request *r)
{
}
int gg_resolve(int *fd, int *pid, const char *hostname)
{
return -1;
}
void gg_resolve_pthread_cleanup(void *arg, int kill)
{
}
int gg_resolve_pthread(int *fd, void **resolver, const char *hostname)
{
return -1;
}
int gg_pubdir50_handle_reply(struct gg_event *e, const char *packet, int length)
{
return -1;
}
/** \endcond */
|