diff --git a/include/villas/hook.h b/include/villas/hook.h index 81d0ca153..3d62f964a 100644 --- a/include/villas/hook.h +++ b/include/villas/hook.h @@ -97,7 +97,6 @@ struct hook { const char *parameter; /**< A parameter string for this hook. Can be used to configure the hook behaviour. */ int priority; /**< A priority to change the order of execution within one type of hook */ - int history; /**< How many samples of history this hook requires. */ enum hook_type type; /**< The type of the hook as a bitfield */ void *_vd; /**< Private data for this hook. This pointer can be used to pass data between consecutive calls of the callback. */ diff --git a/lib/hooks/convert.c b/lib/hooks/convert.c index ec272e7e3..303650519 100644 --- a/lib/hooks/convert.c +++ b/lib/hooks/convert.c @@ -55,7 +55,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_convert, .type = HOOK_STORAGE | HOOK_READ } diff --git a/lib/hooks/decimate.c b/lib/hooks/decimate.c index 1accd40f9..607f54380 100644 --- a/lib/hooks/decimate.c +++ b/lib/hooks/decimate.c @@ -56,7 +56,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_decimate, .type = HOOK_STORAGE | HOOK_DESTROY | HOOK_READ } diff --git a/lib/hooks/drop.c b/lib/hooks/drop.c index a4392a820..1c42bb6e6 100644 --- a/lib/hooks/drop.c +++ b/lib/hooks/drop.c @@ -63,7 +63,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 3, - .history = 1, .cb = hook_drop, .type = HOOK_AUTO | HOOK_READ } diff --git a/lib/hooks/fix_ts.c b/lib/hooks/fix_ts.c index e8f05d1b0..919bf58ff 100644 --- a/lib/hooks/fix_ts.c +++ b/lib/hooks/fix_ts.c @@ -43,7 +43,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 0, - .history = 0, .cb = hook_fix_ts, .type = HOOK_AUTO | HOOK_READ } diff --git a/lib/hooks/print.c b/lib/hooks/print.c index 87eca26fb..fee2701ed 100644 --- a/lib/hooks/print.c +++ b/lib/hooks/print.c @@ -28,7 +28,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_print, .type = HOOK_READ } diff --git a/lib/hooks/restart.c b/lib/hooks/restart.c index 517ce3016..972aaaccc 100644 --- a/lib/hooks/restart.c +++ b/lib/hooks/restart.c @@ -42,7 +42,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 1, - .history = 1, .cb = hook_restart, .type = HOOK_AUTO | HOOK_READ } diff --git a/lib/hooks/shift.c b/lib/hooks/shift.c index d575cb8ae..ec0b817f0 100644 --- a/lib/hooks/shift.c +++ b/lib/hooks/shift.c @@ -106,7 +106,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_shift, .type = HOOK_STORAGE | HOOK_READ } diff --git a/lib/hooks/skip_first.c b/lib/hooks/skip_first.c index 0e9ab9c83..0d7cfa5c9 100644 --- a/lib/hooks/skip_first.c +++ b/lib/hooks/skip_first.c @@ -72,7 +72,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_skip_first, .type = HOOK_STORAGE | HOOK_PARSE | HOOK_READ | HOOK_PATH } diff --git a/lib/hooks/stats.c b/lib/hooks/stats.c index 770ba7c2f..8c800c2e5 100644 --- a/lib/hooks/stats.c +++ b/lib/hooks/stats.c @@ -92,7 +92,6 @@ static struct plugin p1 = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 2, - .history = 1, .cb = hook_stats, .type = HOOK_STORAGE | HOOK_PATH | HOOK_READ | HOOK_PERIODIC } @@ -104,7 +103,6 @@ static struct plugin p2 = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_stats_send, .type = HOOK_STORAGE | HOOK_PATH | HOOK_READ } diff --git a/lib/hooks/ts.c b/lib/hooks/ts.c index 15055441c..58605c76f 100644 --- a/lib/hooks/ts.c +++ b/lib/hooks/ts.c @@ -28,7 +28,6 @@ static struct plugin p = { .type = PLUGIN_TYPE_HOOK, .hook = { .priority = 99, - .history = 0, .cb = hook_ts, .type = HOOK_READ }