aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/benchmark.c')
-rw-r--r--hardinfo2/benchmark.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c
index afb31743..c396bb61 100644
--- a/hardinfo2/benchmark.c
+++ b/hardinfo2/benchmark.c
@@ -20,6 +20,7 @@
#include <iconcache.h>
#include <shell.h>
#include <config.h>
+#include <syncmanager.h>
enum {
BENCHMARK_ZLIB,
@@ -44,7 +45,6 @@ gchar *callback_md5();
gchar *callback_fib();
gchar *callback_sha1();
-
static ModuleEntry entries[] = {
{"CPU ZLib", "compress.png", callback_zlib, scan_zlib},
{"CPU Fibonacci", "module.png", callback_fib, scan_fib},
@@ -254,3 +254,24 @@ hi_module_get_about(void)
return ma;
}
+
+static gchar *bla()
+{
+ return g_strdup("ola mundo!");
+}
+
+void
+hi_module_init(void)
+{
+ static SyncEntry se[] = {
+ {
+ .fancy_name = "Benchmark results",
+ .name = "BenchmarkResults",
+ .save_to = "/tmp/bla.txt",
+ .get_data = bla
+ }
+ };
+
+ sync_manager_add_entry(se);
+}
+