3 * Purple is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * Rewritten from scratch during Google Summer of Code 2012
8 * by Tomek Wasilczyk (http://www.wasilczyk.pl).
10 * Previously implemented by:
11 * - Arkadiusz Miskiewicz <misiek@pld.org.pl> - first implementation (2001);
12 * - Bartosz Oler <bartosz@bzimage.us> - reimplemented during GSoC 2005;
13 * - Krzysztof Klinikowski <grommasher@gmail.com> - some parts (2009-2011).
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
30 #ifndef PURPLE_GG_PUBDIR_PRPL_H
31 #define PURPLE_GG_PUBDIR_PRPL_H
38 GGP_PUBDIR_GENDER_UNSPECIFIED
,
39 GGP_PUBDIR_GENDER_FEMALE
,
40 GGP_PUBDIR_GENDER_MALE
,
50 ggp_pubdir_gender gender
;
52 unsigned int province
;
57 typedef struct _ggp_pubdir_search_form ggp_pubdir_search_form
;
59 typedef void (*ggp_pubdir_request_cb
)(PurpleConnection
*gc
, int records_count
,
60 const ggp_pubdir_record
*records
, int next_offset
, void *user_data
);
62 void ggp_pubdir_get_info(PurpleConnection
*gc
, uin_t uin
,
63 ggp_pubdir_request_cb cb
, void *user_data
);
65 void ggp_pubdir_get_info_protocol(PurpleConnection
*gc
, const char *name
);
66 void ggp_pubdir_request_buddy_alias(PurpleConnection
*gc
, PurpleBuddy
*buddy
);
68 void ggp_pubdir_search(PurpleConnection
*gc
,
69 const ggp_pubdir_search_form
*form
);
71 void ggp_pubdir_set_info(PurpleConnection
*gc
);
73 #endif /* PURPLE_GG_PUBDIR_PRPL_H */