Problem getting contacts of myspace account

sandeep sandeep at konstantinfo.com
Tue Jul 6 03:17:48 EDT 2010


Hello,

We are getting problem to fetch contacts/friends of myspace user using 
libpurple - nullclient.c

We are using function....

int show_buddy_list_from_active_accounts()
{

        GSList *buddies = NULL;
	PurpleBuddy *buddy;
        int i;

       	for(buddies = purple_blist_get_buddies(); buddies; buddies = buddies-
>next)
	{
		 buddy = buddies->data;
		 PurplePresence *presence = purple_buddy_get_presence(buddy);
		 PurpleStatus *status = purple_presence_get_active_status(presence);
	
		 printf("%s - ", purple_status_get_name(status));
		 printf("%s - ", 
purple_primitive_get_id_from_type(purple_status_type_get_primitive(purple_status_get_type(status))));
		 printf("%s (%s)\n", purple_buddy_get_name(buddy),
		 purple_buddy_get_alias(buddy));

       }


///// some other statements here...............


}

Please suggest the solution we need to use?

Regards,
Sandeep Verma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20100706/1adf451e/attachment-0001.html>


More information about the Devel mailing list