-
-static struct event_source *ubusd_alloc_event_source(struct ubus_object *obj, enum evs_type type, int datalen)
-{
- struct event_source *evs;
-
- evs = calloc(1, sizeof(*evs) + datalen);
- list_add(&evs->list, &obj->events);
- evs->obj = obj;
- evs->type = type;
- return evs;
-}
-
-static int ubusd_alloc_catchall(struct ubus_object *obj)
-{
- struct event_source *evs;
-
- evs = ubusd_alloc_event_source(obj, EVS_CATCHALL, 0);
- list_add(&evs->catchall.list, &catch_all);
-
- return 0;
-}
-