plugin development
NIK
nik.anonim at list.ru
Sat Jan 8 10:15:39 EST 2011
hy.
right now i'm writing codin a plugin for pidgin in C. I want to view all history of my account with all buddies.so far, i have smthing like this:
/////////////////////////////////////////////////////////////////////////////////////
buddies=purple_blist_get_buddies ();
for (temp = buddies; temp != NULL; tmep = temp->next)
{
PurpleBlistNode *node = temp->data;
PurpleBlistNode *prev = purple_blist_node_get_sibling_prev(node);
PurpleBlistNode *next = purple_blist_node_get_sibling_next(node);
if (node->type==PURPLE_BLIST_BUDDY_NODE)
{
b= (PurpleBuddy*)node;
//conv=purple_find_conversation_with_account (PURPLE_CONV_TYPE_IM, b->name, b->account);
//conv->
//history = purple_log_read((PurpleLog *)purple_log_get_logs(PURPLE_LOG_IM,b->name,b->account), &flags);
purple_debug_info("gtk-nik-incore","name = %s\n", b->name);
}
}
//////////////////////////////////////////////
i have retrieved buddies name, but i don't know how history works.tried some thing - no succes. i'm a noob and API isn't a much of help. if you can help me i will apreciate that
Best regards
NIK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20110108/7ea96fae/attachment.html>
More information about the Devel
mailing list