Mercurial > pidgin.yaz
annotate src/protocols/gg/search.h @ 13047:473d3a454615
[gaim-migrate @ 15408]
15:52:32 <NSA_> In the system tray, the "Custom Status..." should be changed to
"New Status..." to be more consistent.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Thu, 26 Jan 2006 20:54:00 +0000 |
parents | fc464a0abccc |
children | 41747a38a1a8 |
rev | line source |
---|---|
11414 | 1 /** |
2 * @file search.h | |
3 * | |
4 * gaim | |
5 * | |
6 * Copyright (C) 2005 Bartosz Oler <bartosz@bzimage.us> | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 | |
23 | |
24 #ifndef _GAIM_GG_SEARCH_H | |
25 #define _GAIM_GG_SEARCH_H | |
26 | |
27 #include "connection.h" | |
28 | |
29 #include "lib/libgadu.h" | |
30 #include "gg.h" | |
31 | |
32 | |
33 typedef struct { | |
34 | |
35 char *uin; | |
36 char *lastname; | |
37 char *firstname; | |
38 char *nickname; | |
39 char *city; | |
40 char *birthyear; | |
41 char *gender; | |
42 char *active; | |
43 char *offset; | |
44 | |
45 char *last_uin; | |
46 | |
47 } GGPSearchForm; | |
48 | |
49 /** | |
50 * Create a new GGPSearchForm structure, and set the fields | |
51 * to the sane defaults. | |
52 * | |
53 * @return Newly allocated GGPSearchForm. | |
54 */ | |
55 GGPSearchForm * | |
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
12007
diff
changeset
|
56 ggp_search_form_new(void); |
11414 | 57 |
58 /** | |
59 * Initiate a search in the public directory. | |
60 * | |
61 * @param gc GaimConnection. | |
62 * @param form Filled in GGPSearchForm. | |
63 */ | |
64 void | |
65 ggp_search_start(GaimConnection *gc, GGPSearchForm *form); | |
66 | |
67 /* | |
68 * Return converted to the UTF-8 value of the specified field. | |
69 * | |
12007
8724718d387f
[gaim-migrate @ 14300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11414
diff
changeset
|
70 * @param res Public directory look-up result. |
8724718d387f
[gaim-migrate @ 14300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11414
diff
changeset
|
71 * @param num Id of the record. |
8724718d387f
[gaim-migrate @ 14300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11414
diff
changeset
|
72 * @param fileld Name of the field. |
11414 | 73 * |
12007
8724718d387f
[gaim-migrate @ 14300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11414
diff
changeset
|
74 * @return UTF-8 encoded value of the field. |
11414 | 75 */ |
76 char * | |
77 ggp_search_get_result(gg_pubdir50_t res, int num, const char *field); | |
78 | |
79 | |
80 #endif /* _GAIM_GG_SEARCH_H */ | |
81 | |
12007
8724718d387f
[gaim-migrate @ 14300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11414
diff
changeset
|
82 /* vim: set ts=8 sts=0 sw=8 noet: */ |