jabber

Daniel Atallah daniel.atallah at gmail.com
Tue Sep 16 09:52:48 EDT 2008


2008/9/16  <squeak at poczta.onet.pl>:
> i wrote something like this :
>
>  purple_plugins_init();
>  purple_connections_init();
>  PurplePlugin pp;
>  ZeroMemory( &pp, sizeof(pp) );
>  purple_init_plugin( &pp );//jabber_handle_event
>  PurpleAccount *pa;
>  pa = new PurpleAccount;
>  ZeroMemory( pa, sizeof(PurpleAccount) );
>  pa->alias = "Gizmo";
>  pa->protocol_id = "prpl";
>  pa->username = "ekolowa.1989 at jabber.org";
>  pa->password = "password";
>  PurpleConnection pc;
>  ZeroMemory( &pc, sizeof(pc) );
>  pc.prpl = &pp;
>  pc.account = pa;
>  pc.password = "password";
>  pa->gc = &pc;
>  purple_account_connect( pa );
>
> when i use functions like this :
>  purple_account_set_alias
>  purple_account_set_protocol_id
>  purple_account_set_username
>  purple_account_set_password
> i become an error
>
> what should i do to connect to jabber server

Look at the example nullclient (libpurple/example/nullclient.c) code
to see what a minimal libpurple client looks like.

The above example certainly will not work; you need to let libpurple
do stuff instead of manually assigning random variables.

-D




More information about the Devel mailing list