Adding a new protocol
Eion Robb
eion at robbmob.com
Wed May 15 03:03:09 EDT 2019
Hi there!
Always exciting to see someone new want to take a stab at writing a
protocol plugin :)
What protocol were you thinking of writing for?
There's a skeleton prpl in-tree called nullprpl.c (for 3.x.y
https://bitbucket.org/pidgin/main/src/default/libpurple/protocols/null/ or
for 2.x.y
https://bitbucket.org/pidgin/main/src/release-2.x.y/libpurple/protocols/null/ )
that has a basic example of hooking into the libpurple plugin system.
Grim also has an excellent example of a 3.x.y plugin at
https://bitbucket.org/rw_grim/skeleton-libpurple/src/default/
For a 2.x.y plugin, you can also try looking at
https://github.com/EionRobb/purple-plugins-prpl which is a horrible plugin
but gives an example of the bare minimums required.
I strongly recommend editing an existing plugin, removing all the code
that's not relevant to your protocol, and then replacing it with your new
code.
Feel free to pop by in #pidgin on Freenode, or on one of the
Discord/XMPP/Matrix channels to say hi and bounce ideas past us :)
Cheers,
Eion
On Wed, 15 May 2019 at 15:56, maldauxra-retumado at yahoo.com <
maldauxra-retumado at yahoo.com> wrote:
> Hello,
>
> Is there documentation on how to add a new protocol? Maybe a skeleton or a
> very simple one? Any language (C, Python, Lua ...) will do.
>
> I've tried to see some of the already existing protocols (both internal
> and third-party) but find it hard to isolate the pidgin specifics from
> those of the protocol. I'd rather start from a small example and move from
> there.
>
> Thanks.
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> https://pidgin.im/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20190515/eee833ba/attachment.html>
More information about the Devel
mailing list