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_PURPLEW_H
31 #define PURPLE_GG_PURPLEW_H
37 * Adds an input handler in purple event loop for http request.
39 * @see purple_input_add
41 * @param http_req Http connection to watch.
42 * @param func The callback function for data.
43 * @param user_data User-specified data.
45 * @return The resulting handle (will be greater than 0).
47 guint
ggp_purplew_http_input_add(struct gg_http
*http_req
,
48 PurpleInputFunction func
, gpointer user_data
);
50 typedef void (*ggp_purplew_request_processing_cancel_cb
)(PurpleConnection
*gc
,
56 ggp_purplew_request_processing_cancel_cb cancel_cb
;
59 } ggp_purplew_request_processing_handle
;
61 ggp_purplew_request_processing_handle
* ggp_purplew_request_processing(
62 PurpleConnection
*gc
, const gchar
*msg
, void *user_data
,
63 ggp_purplew_request_processing_cancel_cb oncancel
);
65 void ggp_purplew_request_processing_done(
66 ggp_purplew_request_processing_handle
*handle
);
68 /* ignores default group */
69 PurpleGroup
* ggp_purplew_buddy_get_group_only(PurpleBuddy
*buddy
);
71 GList
* ggp_purplew_group_get_buddies(PurpleGroup
*group
, PurpleAccount
*account
);
73 /* you must g_free returned list */
74 GList
* ggp_purplew_account_get_groups(PurpleAccount
*account
, gboolean exclusive
);
76 #endif /* PURPLE_GG_PURPLEW_H */