libpurple/protocols/gg/account.h

Fri, 17 Aug 2012 11:00:00 +0200

author
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
date
Fri, 17 Aug 2012 11:00:00 +0200
branch
soc.2012.gg
changeset 33340
5f00ed891179
parent 33310
5d38cff87be2
child 33348
2394cd23ce8f
permissions
-rw-r--r--

Gadu-Gadu: status refactoring - done

#ifndef _GGP_ACCOUNT_H
#define _GGP_ACCOUNT_H

#include <internal.h>

typedef struct
{
	gchar *id;
	gpointer data;
	size_t size;
	int length;
} ggp_account_token;

/**
 * token must be free'd with ggp_account_token_free
 */
typedef void (*ggp_account_token_cb)(PurpleConnection *gc,
	ggp_account_token *token, gpointer user_data);

void ggp_account_token_request(PurpleConnection *gc,
	ggp_account_token_cb callback, void *user_data);
gboolean ggp_account_token_validate(ggp_account_token *token,
	const gchar *value);
void ggp_account_token_free(ggp_account_token *token);


void ggp_account_register(PurpleAccount *account);

void ggp_account_chpass(PurpleConnection *gc);

#endif /* _GGP_ACCOUNT_H */

mercurial