- w->watcher = obj;
- w->watched = target;
- list_add(&w->watcher_list, &target->watchers);
- list_add(&w->watched_list, &obj->watched);
- strcpy(w->method, method);
+ s->subscriber = obj;
+ s->target = target;
+ list_add(&s->list, &target->subscribers);
+ list_add(&s->target_list, &obj->target_list);
+
+ if (first)
+ ubus_notify_subscription(target);