diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 21:33:03 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 21:33:03 +0100 |
commit | f8d55af76b7a758a134bc816d9a34a7ca4325e32 (patch) | |
tree | a743b64e3f0828f5a77ec4a61d5609c22f895112 /ubusd_proto.c | |
parent | da11ec6b9d3eeffb709e3615dd0daa26c926838e (diff) | |
download | ubus-f8d55af76b7a758a134bc816d9a34a7ca4325e32.tar.gz |
rename publish to add_object
Diffstat (limited to 'ubusd_proto.c')
-rw-r--r-- | ubusd_proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ubusd_proto.c b/ubusd_proto.c index 3333330..550e116 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -69,7 +69,7 @@ static int ubusd_send_pong(struct ubus_client *cl, struct ubus_msg_buf *ub, stru return 0; } -static int ubusd_handle_publish(struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) +static int ubusd_handle_add_object(struct ubus_client *cl, struct ubus_msg_buf *ub, struct blob_attr **attr) { struct ubus_object *obj; @@ -231,7 +231,7 @@ error: static const ubus_cmd_cb handlers[__UBUS_MSG_LAST] = { [UBUS_MSG_PING] = ubusd_send_pong, - [UBUS_MSG_PUBLISH] = ubusd_handle_publish, + [UBUS_MSG_ADD_OBJECT] = ubusd_handle_add_object, [UBUS_MSG_LOOKUP] = ubusd_handle_lookup, [UBUS_MSG_INVOKE] = ubusd_handle_invoke, [UBUS_MSG_STATUS] = ubusd_handle_response, |