diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | plugin.c | 8 | ||||
-rw-r--r-- | plugins.m4 | 10 |
3 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 81d07a9..2796e2e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -108,6 +108,7 @@ widget_image.c widget_image.h \ lcd4linux_i2c.h \ \ plugin_apm.c \ +plugin_button_exec.c \ plugin_cpuinfo.c \ plugin_diskstats.c \ plugin_dvb.c \ @@ -100,6 +100,8 @@ int plugin_init_python(void); void plugin_exit_python(void); int plugin_init_sample(void); void plugin_exit_sample(void); +int plugin_init_button_exec(void); +void plugin_exit_button_exec(void); int plugin_init_seti(void); void plugin_exit_seti(void); int plugin_init_statfs(void); @@ -189,6 +191,9 @@ int plugin_init(void) #ifdef PLUGIN_SAMPLE plugin_init_sample(); #endif +#ifdef PLUGIN_BUTTON_EXEC + plugin_init_button_exec(); +#endif #ifdef PLUGIN_SETI plugin_init_seti(); #endif @@ -280,6 +285,9 @@ void plugin_exit(void) #ifdef PLUGIN_SAMPLE plugin_exit_sample(); #endif +#ifdef PLUGIN_BUTTON_EXEC + plugin_exit_button_exec(); +#endif #ifdef PLUGIN_SETI plugin_exit_seti(); #endif @@ -54,6 +54,7 @@ for plugin in $plugins; do ;; all) PLUGIN_APM="yes" + PLUGIN_BUTTON_EXEC="yes" PLUGIN_CPUINFO="yes" PLUGIN_DISKSTATS="yes" PLUGIN_DVB="yes" @@ -85,6 +86,9 @@ for plugin in $plugins; do apm) PLUGIN_APM=$val ;; + button_exec) + PLUGIN_BUTTON_EXEC=$val + ;; cpuinfo) PLUGIN_CPUINFO=$val ;; @@ -177,6 +181,10 @@ if test "$PLUGIN_APM" = "yes"; then PLUGINS="$PLUGINS plugin_apm.o" AC_DEFINE(PLUGIN_APM,1,[apm plugin]) fi +if test "$PLUGIN_BUTTON_EXEC" = "yes"; then + PLUGINS="$PLUGINS plugin_button_exec.o" + AC_DEFINE(PLUGIN_BUTTON_EXEC,1,[button_exec plugin]) +fi if test "$PLUGIN_CPUINFO" = "yes"; then PLUGINS="$PLUGINS plugin_cpuinfo.o" AC_DEFINE(PLUGIN_CPUINFO,1,[cpuinfo plugin]) @@ -223,7 +231,7 @@ if test "$PLUGIN_I2C_SENSORS" = "yes"; then AC_DEFINE(PLUGIN_I2C_SENSORS,1,[i2c sensors plugin]) fi if test "$PLUGIN_ICONV" = "yes"; then - AM_ICONV + dnl AM_ICONV if test "$am_cv_func_iconv" = "yes"; then PLUGINS="$PLUGINS plugin_iconv.o" PLUGINLIBS="$PLUGINLIBS $LIBICONV" |