Wrap a libpurple plugin for Adium

740 views Asked by At

David G. F. wrote a libpurple Plugin for Whatsapp. I tested it with pidgin and it works for me. Now I try to wrap it for Adium (Issue on github).

I tried to wrap a libpurple plugin for Adium with this post. I can build the plugin and then add it to adium but nothing happens. So the call in my wrapper might be wrong. Can anyone check that? It's on github:

@implementation WhatsAppPlugin
- (void) installLibpurplePlugin
{
    purple_init_whatsapp_plugin();  
}

https://github.com/avarx/Adium-Whatsapp/blob/master/WhatsAppPlugin/WhatsAppPlugin.m

1

There are 1 answers

0
r3t On

I'm not Adium specialist, but when I faced with simular problem: wrap libpurple plugin for Adium, source code of microblog-purple was very helpful. I just write same functions with little changes and everything works.

As you can see it is not enough write only installLibpurplePlugin. You should init account and service classes.