pidgin/pidgin

Make PurplePluginProtocolInfo definitions consistent
release-2.x.y
2020-05-20, David Woodhouse
159344ba2a49
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-
/** @page core-signals Core Signals
@signals
@signal quitting
@signal uri-handler
@endsignals
@see core.h
<hr>
@signaldef quitting
@signalproto
void (*quitting)();
@endsignalproto
@signaldesc
Emitted when libpurple is quitting.
@endsignaldef
@signaldef uri-handler
@signalproto
gboolean (*uri_handler)(const gchar *proto, const gchar *cmd, GHashTable *params);
@endsignalproto
@signaldesc
Emitted when handling a registered URI.
@param proto The protocol of the URI.
@param cmd The 'command' of the URI.
@param params Any key/value parameters from the URI.
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et