export the object type through lookup calls
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 17:26:09 +0000 (18:26 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 17:26:09 +0000 (18:26 +0100)
ubusd_proto.c

index 99d66917629cde9426da8d2e121783a6a0bdcd53..1b3216fba67163c1422350c83b8cd39f9239160d 100644 (file)
@@ -100,6 +100,7 @@ static void ubusd_send_obj(struct ubus_client *cl, struct ubus_msg_buf *ub, stru
        if (obj->path.key)
                blob_put_string(&b, UBUS_ATTR_OBJPATH, obj->path.key);
        blob_put_int32(&b, UBUS_ATTR_OBJID, obj->id.id);
+       blob_put_int32(&b, UBUS_ATTR_OBJTYPE, obj->type->id.id);
 
        s = blob_nest_start(&b, UBUS_ATTR_SIGNATURE);
        list_for_each_entry(m, &obj->type->methods, list)