mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
added forgotten changes
This commit is contained in:
parent
9efd4dc000
commit
3374b85d2d
2 changed files with 4 additions and 4 deletions
|
@ -176,6 +176,7 @@ char * cpulist_create(char *str, size_t len, cpu_set_t *set);
|
|||
json_t * config_to_json(config_setting_t *cfg);
|
||||
|
||||
#endif
|
||||
int json_to_config(json_t *json, config_setting_t *parent);
|
||||
|
||||
/** Allocate and initialize memory. */
|
||||
void * alloc(size_t bytes);
|
||||
|
|
|
@ -14,10 +14,10 @@ struct hook;
|
|||
struct path;
|
||||
struct sample;
|
||||
|
||||
static int hook_example(struct hook *h, int when, struct hook_info *j)
|
||||
static int example_start(struct hook *h)
|
||||
{
|
||||
info("Hello world from example hook!");
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -27,8 +27,7 @@ static struct plugin p = {
|
|||
.type = PLUGIN_TYPE_HOOK,
|
||||
.hook = {
|
||||
.priority = 99,
|
||||
.cb = hook_example,
|
||||
.when = HOOK_PATH_START
|
||||
.start = example_start
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue