[ohm] [RFC] New plugin interface
Rob Taylor
rob.taylor at codethink.co.uk
Tue Jul 31 17:08:59 PDT 2007
So here's my new plugin interface I've been working on. The patch
comments should explain it all, but it basically makes interested,
provides, etc static data in the plugin.
Here's an example of how it looks at the plugin level (from the idle
plugin):
OHM_PLUGIN_DESCRIPTION (
"OHM IdleTime",»»»/* description */
"0.0.1",»»»/* version */
"richard at hughsie.com",»»/* author */
OHM_LICENSE_LGPL,»»/* license */
plugin_initalize,»»/* initalize */
plugin_destroy,»»»/* destroy */
plugin_notify»»/* notify */
);
OHM_PLUGIN_REQUIRES ("xorg");
OHM_PLUGIN_PROVIDES ("idle.momentary", "idle.powersave", "idle.powerdown");
OHM_PLUGIN_INTERESTED ({"xorg.has_xauthority", CONF_XORG_HASXAUTH_CHANGED});
All comments welcome :)
Thanks,
Rob Taylor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-change-plugin-interface-to-be-more-efficient.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/ohm-devel/attachments/20070801/e5b817ed/attachment-0002.bin
More information about the Ohm-devel
mailing list