From: Felix Fietkau Date: Mon, 31 Jan 2011 17:26:09 +0000 (+0100) Subject: export the object type through lookup calls X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=480a3d66a74858d486fbe6ee2cfa5c1a4ad575c0 export the object type through lookup calls --- diff --git a/ubusd_proto.c b/ubusd_proto.c index 99d6691..1b3216f 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -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)