aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drv_Crystalfontz.c12
-rw-r--r--drv_Cwlinux.c8
-rw-r--r--drv_HD44780.c8
-rw-r--r--drv_MatrixOrbital.c16
-rwxr-xr-xplugin_imon.c15
-rw-r--r--plugin_netdev.c10
-rw-r--r--plugin_proc_stat.c12
-rwxr-xr-xplugin_wireless.c26
8 files changed, 70 insertions, 37 deletions
diff --git a/drv_Crystalfontz.c b/drv_Crystalfontz.c
index 242bc1a..7ef623e 100644
--- a/drv_Crystalfontz.c
+++ b/drv_Crystalfontz.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Crystalfontz.c,v 1.16 2004/05/26 11:37:36 reinelt Exp $
+/* $Id: drv_Crystalfontz.c,v 1.17 2004/05/27 03:39:47 reinelt Exp $
*
* new style driver for Crystalfontz display modules
*
@@ -23,6 +23,10 @@
*
*
* $Log: drv_Crystalfontz.c,v $
+ * Revision 1.17 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.16 2004/05/26 11:37:36 reinelt
*
* Curses driver ported.
@@ -901,9 +905,9 @@ int drv_CF_init (char *section)
widget_register(&wc);
// register plugins
- AddFunction ("contrast", -1, plugin_contrast);
- AddFunction ("backlight", -1, plugin_backlight);
- AddFunction ("fan_pwm", -1, plugin_fan_pwm);
+ AddFunction ("LCD::contrast", -1, plugin_contrast);
+ AddFunction ("LCD::backlight", -1, plugin_backlight);
+ AddFunction ("LCD::fan_pwm", -1, plugin_fan_pwm);
return 0;
}
diff --git a/drv_Cwlinux.c b/drv_Cwlinux.c
index 0a07238..91caa20 100644
--- a/drv_Cwlinux.c
+++ b/drv_Cwlinux.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Cwlinux.c,v 1.5 2004/05/26 11:37:36 reinelt Exp $
+/* $Id: drv_Cwlinux.c,v 1.6 2004/05/27 03:39:47 reinelt Exp $
*
* new style driver for Cwlinux display modules
*
@@ -23,6 +23,10 @@
*
*
* $Log: drv_Cwlinux.c,v $
+ * Revision 1.6 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.5 2004/05/26 11:37:36 reinelt
*
* Curses driver ported.
@@ -337,7 +341,7 @@ int drv_CW_init (char *section)
widget_register(&wc);
// register plugins
- AddFunction ("backlight", 1, plugin_backlight);
+ AddFunction ("LCD::backlight", 1, plugin_backlight);
return 0;
}
diff --git a/drv_HD44780.c b/drv_HD44780.c
index 36e41c7..4450438 100644
--- a/drv_HD44780.c
+++ b/drv_HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: drv_HD44780.c,v 1.21 2004/05/26 11:37:36 reinelt Exp $
+/* $Id: drv_HD44780.c,v 1.22 2004/05/27 03:39:47 reinelt Exp $
*
* new style driver for HD44780-based displays
*
@@ -29,6 +29,10 @@
*
*
* $Log: drv_HD44780.c,v $
+ * Revision 1.22 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.21 2004/05/26 11:37:36 reinelt
*
* Curses driver ported.
@@ -809,7 +813,7 @@ int drv_HD_init (char *section)
// register plugins
if (Capabilities & CAP_BRIGHTNESS)
- AddFunction ("brightness", 1, plugin_brightness);
+ AddFunction ("LCD::brightness", 1, plugin_brightness);
return 0;
}
diff --git a/drv_MatrixOrbital.c b/drv_MatrixOrbital.c
index bab0638..7829eb8 100644
--- a/drv_MatrixOrbital.c
+++ b/drv_MatrixOrbital.c
@@ -1,4 +1,4 @@
-/* $Id: drv_MatrixOrbital.c,v 1.22 2004/05/26 11:37:36 reinelt Exp $
+/* $Id: drv_MatrixOrbital.c,v 1.23 2004/05/27 03:39:47 reinelt Exp $
*
* new style driver for Matrix Orbital serial display modules
*
@@ -23,6 +23,10 @@
*
*
* $Log: drv_MatrixOrbital.c,v $
+ * Revision 1.23 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.22 2004/05/26 11:37:36 reinelt
*
* Curses driver ported.
@@ -520,11 +524,11 @@ int drv_MO_init (char *section)
widget_register(&wc);
// register plugins
- AddFunction ("contrast", 1, plugin_contrast);
- AddFunction ("backlight", 1, plugin_backlight);
- AddFunction ("gpo", 2, plugin_gpo);
- AddFunction ("pwm", 2, plugin_pwm);
- AddFunction ("rpm", 1, plugin_rpm);
+ AddFunction ("LCD::contrast", 1, plugin_contrast);
+ AddFunction ("LCD::backlight", 1, plugin_backlight);
+ AddFunction ("LCD::gpo", 2, plugin_gpo);
+ AddFunction ("LCD::pwm", 2, plugin_pwm);
+ AddFunction ("LCD::rpm", 1, plugin_rpm);
return 0;
}
diff --git a/plugin_imon.c b/plugin_imon.c
index 695c38b..be2bd14 100755
--- a/plugin_imon.c
+++ b/plugin_imon.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_imon.c,v 1.6 2004/03/13 14:58:15 nicowallmeier Exp $
+/* $Id: plugin_imon.c,v 1.7 2004/05/27 03:39:47 reinelt Exp $
*
* imond/telmond data processing
*
@@ -22,6 +22,10 @@
*
*
* $Log: plugin_imon.c,v $
+ * Revision 1.7 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.6 2004/03/13 14:58:15 nicowallmeier
* Added clean termination of imond-connection (now correctly)
*
@@ -441,13 +445,14 @@ int plugin_init_imon (void){
strcpy(ipass,s);
free(s);
- if (telmon=='\1') AddFunction ("telmon", 1, my_telmon);
if (imon=='\1'){
- AddFunction ("imon", 1, my_imon);
- AddFunction ("version", 0, my_imon_version);
- AddFunction ("rates", 2, my_imon_rates);
+ AddFunction ("imon", 1, my_imon);
+ AddFunction ("imon::version", 0, my_imon_version);
+ AddFunction ("imon::rates", 2, my_imon_rates);
}
+ if (telmon=='\1') AddFunction ("imon::telmon", 1, my_telmon);
+
return 0;
}
diff --git a/plugin_netdev.c b/plugin_netdev.c
index bba623a..be2b411 100644
--- a/plugin_netdev.c
+++ b/plugin_netdev.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_netdev.c,v 1.7 2004/03/11 06:39:59 reinelt Exp $
+/* $Id: plugin_netdev.c,v 1.8 2004/05/27 03:39:47 reinelt Exp $
*
* plugin for /proc/net/dev parsing
*
@@ -23,6 +23,10 @@
*
*
* $Log: plugin_netdev.c,v $
+ * Revision 1.8 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.7 2004/03/11 06:39:59 reinelt
* big patch from Martin:
* - reuse filehandles
@@ -196,8 +200,8 @@ static void my_netdev_fast(RESULT *result, RESULT *arg1, RESULT *arg2)
int plugin_init_netdev (void)
{
- AddFunction ("netdev", 2, my_netdev);
- AddFunction ("netdev_fast", 2, my_netdev_fast);
+ AddFunction ("netdev", 2, my_netdev);
+ AddFunction ("netdev::fast", 2, my_netdev_fast);
return 0;
}
diff --git a/plugin_proc_stat.c b/plugin_proc_stat.c
index 03cdfb0..af79a0c 100644
--- a/plugin_proc_stat.c
+++ b/plugin_proc_stat.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_proc_stat.c,v 1.18 2004/03/11 06:39:59 reinelt Exp $
+/* $Id: plugin_proc_stat.c,v 1.19 2004/05/27 03:39:47 reinelt Exp $
*
* plugin for /proc/stat parsing
*
@@ -23,6 +23,10 @@
*
*
* $Log: plugin_proc_stat.c,v $
+ * Revision 1.19 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.18 2004/03/11 06:39:59 reinelt
* big patch from Martin:
* - reuse filehandles
@@ -356,9 +360,9 @@ static void my_disk (RESULT *result, RESULT *arg1, RESULT *arg2, RESULT *arg3)
int plugin_init_proc_stat (void)
{
- AddFunction ("proc_stat", -1, my_proc_stat);
- AddFunction ("cpu", 2, my_cpu);
- AddFunction ("disk", 3, my_disk);
+ AddFunction ("proc_stat", -1, my_proc_stat);
+ AddFunction ("proc_stat::cpu", 2, my_cpu);
+ AddFunction ("proc_stat::disk", 3, my_disk);
return 0;
}
diff --git a/plugin_wireless.c b/plugin_wireless.c
index b42239d..df626e8 100755
--- a/plugin_wireless.c
+++ b/plugin_wireless.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_wireless.c,v 1.2 2004/04/17 13:05:58 nicowallmeier Exp $
+/* $Id: plugin_wireless.c,v 1.3 2004/05/27 03:39:47 reinelt Exp $
*
* Wireless Extension plugin
*
@@ -28,6 +28,10 @@
*
*
* $Log: plugin_wireless.c,v $
+ * Revision 1.3 2004/05/27 03:39:47 reinelt
+ *
+ * changed function naming scheme to plugin::function
+ *
* Revision 1.2 2004/04/17 13:05:58 nicowallmeier
* minor bugfix
*
@@ -618,16 +622,16 @@ init and cleanup
int plugin_init_wireless(void)
{
- AddFunction ("wifi_level", 1, wireless_level);
- AddFunction ("wifi_noise", 1, wireless_noise);
- AddFunction ("wifi_quality", 1, wireless_quality);
- AddFunction ("wifi_protocol", 1, wireless_protocol);
- AddFunction ("wifi_frequency", 1, wireless_frequency);
- AddFunction ("wifi_bitrate", 1, wireless_bitrate);
- AddFunction ("wifi_essid", 1, wireless_essid);
- AddFunction ("wifi_op_mode", 1, wireless_op_mode);
- AddFunction ("wifi_sensitivity", 1, wireless_sensitivity);
- AddFunction ("wifi_sec_mode", 1, wireless_sec_mode);
+ AddFunction ("wifi::level", 1, wireless_level);
+ AddFunction ("wifi::noise", 1, wireless_noise);
+ AddFunction ("wifi::quality", 1, wireless_quality);
+ AddFunction ("wifi::protocol", 1, wireless_protocol);
+ AddFunction ("wifi::frequency", 1, wireless_frequency);
+ AddFunction ("wifi::bitrate", 1, wireless_bitrate);
+ AddFunction ("wifi::essid", 1, wireless_essid);
+ AddFunction ("wifi::op_mode", 1, wireless_op_mode);
+ AddFunction ("wifi::sensitivity", 1, wireless_sensitivity);
+ AddFunction ("wifi::sec_mode", 1, wireless_sec_mode);
return 0;
}