13 void hook_node_visible(const char *hooktype, va_list ap)
18 n = va_arg(ap, node_t*);
19 asprintf(&name, "hosts/%s-down", n->name);
24 void hook_node_invisible(const char *hooktype, va_list ap)
29 n = va_arg(ap, node_t*);
30 asprintf(&name, "hosts/%s-up", n->name);
35 void init_callbacks(void)
37 add_hook("node-visible", hook_node_visible);
38 add_hook("node-invisible", hook_node_invisible);