mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
hooks: fix whitespace alignment
This commit is contained in:
parent
77850451b4
commit
4fc0392650
12 changed files with 87 additions and 85 deletions
|
@ -82,13 +82,13 @@ static struct plugin p = {
|
|||
.description = "Downsamping by integer factor",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = decimate_init,
|
||||
.parse = decimate_parse,
|
||||
.read = decimate_read,
|
||||
.process= decimate_read,
|
||||
.size = sizeof(struct decimate)
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = decimate_init,
|
||||
.parse = decimate_parse,
|
||||
.read = decimate_read,
|
||||
.process = decimate_read,
|
||||
.size = sizeof(struct decimate)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -119,13 +119,13 @@ static struct plugin p = {
|
|||
.description = "Drop messages with reordered sequence numbers",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_BUILTIN | HOOK_NODE,
|
||||
.priority = 3,
|
||||
.read = drop_read,
|
||||
.start = drop_start,
|
||||
.stop = drop_stop,
|
||||
.restart= drop_restart,
|
||||
.size = sizeof(struct drop)
|
||||
.flags = HOOK_BUILTIN | HOOK_NODE,
|
||||
.priority = 3,
|
||||
.read = drop_read,
|
||||
.start = drop_start,
|
||||
.stop = drop_stop,
|
||||
.restart = drop_restart,
|
||||
.size = sizeof(struct drop)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -130,12 +130,12 @@ static struct plugin p = {
|
|||
.description = "Calc jitter, mean and variance of GPS vs NTP TS",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE,
|
||||
.priority = 0,
|
||||
.init = jitter_calc_init,
|
||||
.destroy= jitter_calc_deinit,
|
||||
.read = jitter_calc_read,
|
||||
.size = sizeof(struct jitter_calc)
|
||||
.flags = HOOK_NODE,
|
||||
.priority = 0,
|
||||
.init = jitter_calc_init,
|
||||
.destroy = jitter_calc_deinit,
|
||||
.read = jitter_calc_read,
|
||||
.size = sizeof(struct jitter_calc)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -126,14 +126,14 @@ static struct plugin p = {
|
|||
.description = "Limit sending rate",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = limit_rate_init,
|
||||
.parse = limit_rate_parse,
|
||||
.read = limit_rate_write,
|
||||
.write = limit_rate_write,
|
||||
.process= limit_rate_write,
|
||||
.size = sizeof(struct limit_rate)
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = limit_rate_init,
|
||||
.parse = limit_rate_parse,
|
||||
.read = limit_rate_write,
|
||||
.write = limit_rate_write,
|
||||
.process = limit_rate_write,
|
||||
.size = sizeof(struct limit_rate)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -174,17 +174,17 @@ static struct plugin p = {
|
|||
.description = "Print the message to stdout",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = print_init,
|
||||
.parse = print_parse,
|
||||
.destroy= print_destroy,
|
||||
.start = print_start,
|
||||
.stop = print_stop,
|
||||
.read = print_read,
|
||||
.write = print_write,
|
||||
.process= print_process,
|
||||
.size = sizeof(struct print)
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = print_init,
|
||||
.parse = print_parse,
|
||||
.destroy = print_destroy,
|
||||
.start = print_start,
|
||||
.stop = print_stop,
|
||||
.read = print_read,
|
||||
.write = print_write,
|
||||
.process = print_process,
|
||||
.size = sizeof(struct print)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -104,12 +104,12 @@ static struct plugin p = {
|
|||
.description = "Call restart hooks for current node",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_BUILTIN,
|
||||
.priority = 1,
|
||||
.read = restart_read,
|
||||
.start = restart_start,
|
||||
.stop = restart_stop,
|
||||
.size = sizeof(struct restart)
|
||||
.flags = HOOK_NODE | HOOK_BUILTIN,
|
||||
.priority = 1,
|
||||
.read = restart_read,
|
||||
.start = restart_start,
|
||||
.stop = restart_stop,
|
||||
.size = sizeof(struct restart)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -88,12 +88,12 @@ static struct plugin p = {
|
|||
.description = "Scale all signals by and add offset",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = scale_init,
|
||||
.parse = scale_parse,
|
||||
.process= scale_process,
|
||||
.size = sizeof(struct scale)
|
||||
.flags = HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = scale_init,
|
||||
.parse = scale_parse,
|
||||
.process = scale_process,
|
||||
.size = sizeof(struct scale)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -63,11 +63,12 @@ static struct plugin p = {
|
|||
.description = "Shift sequence number of samples",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.parse = shift_seq_parse,
|
||||
.read = shift_seq_read,
|
||||
.size = sizeof(struct shift),
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.parse = shift_seq_parse,
|
||||
.read = shift_seq_read,
|
||||
.process = shift_seq_read,
|
||||
.size = sizeof(struct shift),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -102,12 +102,13 @@ static struct plugin p = {
|
|||
.description = "Shift timestamps of samples",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = shift_ts_init,
|
||||
.parse = shift_ts_parse,
|
||||
.read = shift_ts_read,
|
||||
.size = sizeof(struct shift_ts)
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.init = shift_ts_init,
|
||||
.parse = shift_ts_parse,
|
||||
.read = shift_ts_read,
|
||||
.process = shift_ts_read,
|
||||
.size = sizeof(struct shift_ts)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -149,13 +149,14 @@ static struct plugin p = {
|
|||
.description = "Skip the first samples",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.parse = skip_first_parse,
|
||||
.start = skip_first_restart,
|
||||
.restart = skip_first_restart,
|
||||
.read = skip_first_read,
|
||||
.size = sizeof(struct skip_first)
|
||||
.flags = HOOK_NODE | HOOK_PATH,
|
||||
.priority = 99,
|
||||
.parse = skip_first_parse,
|
||||
.start = skip_first_restart,
|
||||
.restart = skip_first_restart,
|
||||
.read = skip_first_read,
|
||||
.process = skip_first_read,
|
||||
.size = sizeof(struct skip_first)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -209,18 +209,18 @@ static struct plugin p = {
|
|||
.description = "Collect statistics for the current path",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE,
|
||||
.priority = 2,
|
||||
.init = stats_collect_init,
|
||||
.destroy= stats_collect_destroy,
|
||||
.start = stats_collect_start,
|
||||
.stop = stats_collect_stop,
|
||||
.read = stats_collect_read,
|
||||
.write = stats_collect_write,
|
||||
.restart= stats_collect_restart,
|
||||
.periodic= stats_collect_periodic,
|
||||
.parse = stats_collect_parse,
|
||||
.size = sizeof(struct stats_collect),
|
||||
.flags = HOOK_NODE,
|
||||
.priority = 2,
|
||||
.init = stats_collect_init,
|
||||
.destroy = stats_collect_destroy,
|
||||
.start = stats_collect_start,
|
||||
.stop = stats_collect_stop,
|
||||
.read = stats_collect_read,
|
||||
.write = stats_collect_write,
|
||||
.restart = stats_collect_restart,
|
||||
.periodic = stats_collect_periodic,
|
||||
.parse = stats_collect_parse,
|
||||
.size = sizeof(struct stats_collect),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -42,10 +42,9 @@ static struct plugin p = {
|
|||
.description = "Overwrite origin timestamp of samples with receive timestamp",
|
||||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.flags = HOOK_NODE,
|
||||
.priority = 99,
|
||||
.read = ts_read,
|
||||
.size = 0
|
||||
.flags = HOOK_NODE,
|
||||
.priority = 99,
|
||||
.read = ts_read
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue