4 service_handle_list(struct ubus_context
*ctx
, struct ubus_object
*obj
,
5 struct ubus_request_data
*req
, const char *method
,
11 static struct ubus_method main_object_methods
[] = {
12 { .name
= "list", .handler
= service_handle_list
},
15 static struct ubus_object_type main_object_type
=
16 UBUS_OBJECT_TYPE("service", main_object_methods
);
18 static struct ubus_object main_object
= {
20 .type
= &main_object_type
,
21 .methods
= main_object_methods
,
22 .n_methods
= ARRAY_SIZE(main_object_methods
),
26 void procd_register_objects(struct ubus_context
*ctx
)
28 ubus_add_object(ctx
, &main_object
);