diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-01 23:14:57 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-01 23:24:58 +0200 |
commit | e0d721487a618490a7db06f76904868a71684071 (patch) | |
tree | 6ef0e0d41577a4631033ac897ee8f27b3a34ccf1 /api.c | |
parent | 843fe9bb5b77fd20153816400ce918989730f99d (diff) | |
download | unitd-e0d721487a618490a7db06f76904868a71684071.tar unitd-e0d721487a618490a7db06f76904868a71684071.zip |
implement more parts of the service core api
Diffstat (limited to 'api.c')
-rw-r--r-- | api.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,29 +0,0 @@ -#include "procd.h" - -static int -service_handle_list(struct ubus_context *ctx, struct ubus_object *obj, - struct ubus_request_data *req, const char *method, - struct blob_attr *msg) -{ - return 0; -} - -static struct ubus_method main_object_methods[] = { - { .name = "list", .handler = service_handle_list }, -}; - -static struct ubus_object_type main_object_type = - UBUS_OBJECT_TYPE("service", main_object_methods); - -static struct ubus_object main_object = { - .name = "service", - .type = &main_object_type, - .methods = main_object_methods, - .n_methods = ARRAY_SIZE(main_object_methods), -}; - - -void procd_register_objects(struct ubus_context *ctx) -{ - ubus_add_object(ctx, &main_object); -} |