changeset 1656:95fab0931d47

fix evdev plugin
author mf0102 <0102@gmx.at>
date Fri, 07 Sep 2007 14:41:18 +0200
parents cf2a07573013
children 61f1f017e847
files src/evdev-plug/ed.c src/evdev-plug/ed.h
diffstat 2 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/evdev-plug/ed.c	Fri Sep 07 14:39:24 2007 +0200
+++ b/src/evdev-plug/ed.c	Fri Sep 07 14:41:18 2007 +0200
@@ -29,7 +29,7 @@
 
 
 GeneralPlugin *evdevplug_gplist[] = { &ed_gp, NULL };
-DECLARE_PLUGIN(evdev-plug, NULL, NULL, NULL, NULL, NULL, evdevplug_gplist, NULL, NULL);
+SIMPLE_GENERAL_PLUGIN(evdev-plug, evdevplug_gplist);
 
 GList *ed_device_listening_list = NULL;
 gboolean plugin_is_active = FALSE;
--- a/src/evdev-plug/ed.h	Fri Sep 07 14:39:24 2007 +0200
+++ b/src/evdev-plug/ed.h	Fri Sep 07 14:41:18 2007 +0200
@@ -32,13 +32,11 @@
 
 GeneralPlugin ed_gp =
 {
-    NULL,					/* handle */
-    NULL,					/* filename */
-    "EvDev-Plug " ED_VERSION_PLUGIN,		/* description */
-    ed_init,					/* init */
-    ed_about,					/* about */
-    ed_config,					/* configure */
-    ed_cleanup					/* cleanup */
+    .description = "EvDev-Plug " ED_VERSION_PLUGIN,
+    .init = ed_init,
+    .about = ed_about,
+    .configure = ed_config,	
+    .cleanup = ed_cleanup
 };
 
 #endif /* !_I_ED_H */