mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
remove history field of hook structure as this is now obsolete.
use the reference counting to keep copies of older samples
This commit is contained in:
parent
7aa1c66d99
commit
bd238dfebd
11 changed files with 0 additions and 12 deletions
|
@ -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. */
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ static struct plugin p = {
|
|||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.priority = 99,
|
||||
.history = 0,
|
||||
.cb = hook_print,
|
||||
.type = HOOK_READ
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ static struct plugin p = {
|
|||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.priority = 99,
|
||||
.history = 0,
|
||||
.cb = hook_ts,
|
||||
.type = HOOK_READ
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue