hi all. a few years ago, i wrote a quick, bare bones "null" protocol plugin.
it let you add buddies, sign on and off, and send IMs between nullprpl buddies
without connecting to an external server.
in the process of porting nullprpl to gaim 2.0, i drastically expanded it (and
renamed it mockprpl). it now supports virtually all prpl features.
eventually, i'm hoping to take what i've learned and add doxygen-friendly
comments to prpl.h and plugin.h, explaining what each of the callbacks in
GaimPluginProtocolInfo is expected to do.
more info below, and at this link. feedback is welcome!
http://snarfed.org/space/gaim+mock+protocol+plugin
==
Beyond the basic functionality, mockprpl supports presence and away/available
messages, offline messages, user info, typing notification, privacy
allow/block lists, chat rooms, whispering, room lists, and protocol icons and
emblems. Notable missing features are file transfer and account registration
and authentication.
Mockprpl is intended as an example of how to write a gaim protocol plugin. It
doesn't contain networking code or an event loop, but it does demonstrate how
to use gaim's API to do pretty much everything a prpl might need to do.
Mockprpl is also a useful tool for hacking on gaim itself. It's a
full-featured protocol plugin, but doesn't depend on an external server, so
it's a quick and easy way to exercise gaim and test new code. It also allows
you to work on gaim while you're disconnected.
-Ryan
--
http://snarfed.org/
|