mark PurpleImageClass as private
[pidgin-git.git] / libpurple / protocols / gg / account.h
blob39c17b52751959da8a7b680d7bb698dc34400334
1 /* purple
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
5 * source distribution.
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_ACCOUNT_H
31 #define PURPLE_GG_ACCOUNT_H
33 #error "This file is outdated"
35 #include <internal.h>
37 typedef struct
39 gchar *id;
40 gpointer data;
41 size_t size;
42 guint length;
43 } ggp_account_token;
45 /**
46 * token must be free'd with ggp_account_token_free
48 typedef void (*ggp_account_token_cb)(PurpleConnection *gc,
49 ggp_account_token *token, gpointer user_data);
51 void ggp_account_token_request(PurpleConnection *gc,
52 ggp_account_token_cb callback, void *user_data);
53 gboolean ggp_account_token_validate(ggp_account_token *token,
54 const gchar *value);
55 void ggp_account_token_free(ggp_account_token *token);
58 void ggp_account_register(PurpleAccount *account);
60 void ggp_account_chpass(PurpleConnection *gc);
62 #endif /* PURPLE_GG_ACCOUNT_H */