--- /dev/null
+#include <stddef.h>
+#include "widget.h"
+
+static void gauge_range_nothing(void *a, int b)
+{
+}
+static void gauge_value_nothing(void *a, void *b, int c)
+{
+}
+static void label_nothing(void *a, const char *str)
+{
+}
+const struct gauge GAUGE_DUMMY = {
+ .bar = NULL, .label = NULL,
+ .range_set = gauge_range_nothing,
+ .value_set = gauge_value_nothing,
+ .value_add = gauge_value_nothing,
+ .label_set = label_nothing
+};
+
+
--- /dev/null
+#ifndef _WIDGET_H_
+#define _WIDGET_H_
+struct gauge{
+ void *bar, *label;
+ void (*range_set)(void *, int range);
+ void (*value_set)(void *, void *, int value);
+ void (*value_add)(void *, void *, int value);
+ void (*label_set)(void *, const char *str);
+};
+struct textcontrol{
+ void *object;
+ void (*append)(void *, const char *);
+};
+extern const struct gauge GAUGE_DUMMY;
+#endif