[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
plugin interface: some minor changes
Hi All,
In the latest 1.9.x snapshot I posted, there were some minor changes
to the plugin interface. If you are developing plugins, you might need to
make adjustments.
1) No more (void *). There are new types for xchat_hook and xchat_context.
(i.e. xchat_hook_command returns an (xchat_hook *)).
This gives you some extra type checking when compiling.
2) server/command/print callbacks must now return one of:
#define EAT_NONE (0) /* pass it on through! */
#define EAT_XCHAT (1) /* don't let xchat see this event */
#define EAT_PLUGIN (2) /* don't let other plugins see this event */
#define EAT_ALL (EAT_XCHAT|EAT_PLUGIN) /* don't let anything see this event */
3) Whening returning 0 (EAT_NONE!) from a command callback, the help text is
not printed. Instead, it keeps looking through the list of plugin hooks to
call. Basically, it now runs command-hooks exactly the same way as
print/server hooks.
4) It might be possible to write plugins in C++ (?).
Hopefully all good changes there right?
--
Peter Zelezny. <zed@linux.com>
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/