PLUGIN_HOWTO

Wed, 20 May 2020 11:33:10 +0100

author
David Woodhouse <dwmw2@infradead.org>
date
Wed, 20 May 2020 11:33:10 +0100
branch
release-2.x.y
changeset 40426
159344ba2a49
parent 28289
ae4cf144214c
child 33955
55aa58076485
permissions
-rw-r--r--

Make PurplePluginProtocolInfo definitions consistent

Since we can't use C99 structure initialisers, we have to manually add
new NULL fields to all protocols whenever we extend the structure.

Make it slightly easier to script that, by making the current last
field (get_cb_alias) consistent in all cases. In particular, there's
no reason *not* to have the trailing comma, as most already do.

Now I can add a new field to the PRPL by doing something like this...

PROTOFILES=`grep -rl '[A-Za-z_][A-Za-z0-9_]*,[[:space:]]*/\* get_cb_alias \*/' libpurple/protocols/ `
sed '/\/\* get_cb_alias \*\//{p;s/[A-Za-z_][A-Za-

15998
294277e634fc More gaim->whatever isms
Mark Doliner <markdoliner@pidgin.im>
parents: 14567
diff changeset
1 For information on writing a plugin for Purple, Pidgin or Finch, go
28289
ae4cf144214c Wrap this file more consistently.
Richard Laager <rlaager@pidgin.im>
parents: 16238
diff changeset
2 http://developer.pidgin.im and click on API. From there, see the
ae4cf144214c Wrap this file more consistently.
Richard Laager <rlaager@pidgin.im>
parents: 16238
diff changeset
3 HOWTOs in the "Related Pages" section.
93
a62ef5a64629 [gaim-migrate @ 103]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
4
14566
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
5 You can also generate this documentation locally by installing
15998
294277e634fc More gaim->whatever isms
Mark Doliner <markdoliner@pidgin.im>
parents: 14567
diff changeset
6 doxygen and graphviz dot, then running "make docs" in the
14566
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
7 source tree. The documentation will be in the docs/html directory.

mercurial