From 480a3d66a74858d486fbe6ee2cfa5c1a4ad575c0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 31 Jan 2011 18:26:09 +0100 Subject: [PATCH] export the object type through lookup calls --- ubusd_proto.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.11.0