[OpenWrt-Devel] [PATCH 0/1] ubus/lua: add support for BLOBMSG_TYPE_DOUBLE

marcus.comstedt at qamcom.se marcus.comstedt at qamcom.se
Tue Aug 21 06:43:05 EDT 2018


From: Marcus Comstedt <marcus at mc.pp.se>

Hi.

I noticed that using luci.util.ubus() does not work correctly when the
called function returned doubles (only nils are returned).  This patch
adds the capability of correctly forwarding BLOBMSG_TYPE_DOUBLE to
lua.

It is still not possible to send parameters of type
BLOBMSG_TYPE_DOUBLE from lua, but this is the same as with parameters
of type BLOBMSG_TYPE_INT16 and BLOBMSG_TYPE_INT64, so I consider it a
separate issue.

I could not find a GitHub mirror of ubus.git to file a PR against, so
I'm sending the patch to the list instead.  I hope that was the right
thing to do.  :-)


  // Marcus


Marcus Comstedt (1):
  ubus/lua: add support for BLOBMSG_TYPE_DOUBLE

 lua/ubus.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

-- 
2.16.4


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list