projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename publish to add_object
[project/ubus.git]
/
ubusd_proto.c
diff --git
a/ubusd_proto.c
b/ubusd_proto.c
index
3333330
..
550e116
100644
(file)
--- 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;
}
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;
{
struct ubus_object *obj;
@@
-231,7
+231,7
@@
error:
static const ubus_cmd_cb handlers[__UBUS_MSG_LAST] = {
[UBUS_MSG_PING] = ubusd_send_pong,
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,
[UBUS_MSG_LOOKUP] = ubusd_handle_lookup,
[UBUS_MSG_INVOKE] = ubusd_handle_invoke,
[UBUS_MSG_STATUS] = ubusd_handle_response,