#include "../rcS.h"
-struct avl_tree services;
+AVL_TREE(services, avl_strcmp, false, NULL);
static struct blob_buf b;
static struct ubus_context *ctx;
ctx = _ctx;
ubus_add_object(ctx, &main_object);
}
-
-void
-service_init(void)
-{
- avl_init(&services, avl_strcmp, false, NULL);
- service_validate_init();
-}
-
void service_validate_dump_all(struct blob_buf *b, char *p, char *s);
int service_start_early(char *name, char *cmdline);
void service_validate_del(struct service *s);
-void service_validate_init(void);
-void service_init(void);
void service_event(const char *type, const char *service, const char *instance);
#endif
[SERVICE_VAL_DATA] = { "data", BLOBMSG_TYPE_TABLE },
};
-static struct avl_tree validators;
+static AVL_TREE(validators, avl_strcmp, true, NULL);
void
service_validate_dump_all(struct blob_buf *b, char *p, char *s)
free(vr);
}
}
-
-void
-service_validate_init(void)
-{
- avl_init(&validators, avl_strcmp, true, NULL);
-}
set_stdio("console");
LOG("- ubus -\n");
procd_connect_ubus();
- service_init();
service_start_early("ubus", ubus_cmd);
break;