Mercurial > audlegacy-plugins
comparison src/evdev-plug/ed.c @ 1117:377c4c6e17a6 trunk
[svn] - evdev-plug: converted to v2 plugin system
| author | giacomo |
|---|---|
| date | Fri, 25 May 2007 02:41:52 -0700 |
| parents | 51d0636e6dd0 |
| children | 761e17b23e0c |
comparison
equal
deleted
inserted
replaced
| 1116:86578452bcd1 | 1117:377c4c6e17a6 |
|---|---|
| 25 #include "ed_ui.h" | 25 #include "ed_ui.h" |
| 26 #include "ed_common.h" | 26 #include "ed_common.h" |
| 27 #include <audacious/i18n.h> | 27 #include <audacious/i18n.h> |
| 28 #include <audacious/auddrct.h> | 28 #include <audacious/auddrct.h> |
| 29 | 29 |
| 30 | |
| 31 GeneralPlugin *evdevplug_gplist[] = { &ed_gp, NULL }; | |
| 32 DECLARE_PLUGIN(evdev-plug, NULL, NULL, NULL, NULL, NULL, evdevplug_gplist, NULL); | |
| 30 | 33 |
| 31 GList *ed_device_listening_list = NULL; | 34 GList *ed_device_listening_list = NULL; |
| 32 gboolean plugin_is_active = FALSE; | 35 gboolean plugin_is_active = FALSE; |
| 33 | 36 |
| 34 /* action callbacks */ | 37 /* action callbacks */ |
| 78 | 81 |
| 79 | 82 |
| 80 /* ***************** */ | 83 /* ***************** */ |
| 81 /* plug-in functions */ | 84 /* plug-in functions */ |
| 82 | 85 |
| 83 GeneralPlugin *get_gplugin_info() | |
| 84 { | |
| 85 return &ed_gp; | |
| 86 } | |
| 87 | |
| 88 | |
| 89 void | 86 void |
| 90 ed_init ( void ) | 87 ed_init ( void ) |
| 91 { | 88 { |
| 92 g_log_set_handler( NULL , G_LOG_LEVEL_WARNING , g_log_default_handler , NULL ); | 89 g_log_set_handler( NULL , G_LOG_LEVEL_WARNING , g_log_default_handler , NULL ); |
| 93 | 90 |
