mbox series

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

Message ID 20180821104306.29364-1-marcus.comstedt@qamcom.se
Headers show
Series ubus/lua: add support for BLOBMSG_TYPE_DOUBLE | expand

Message

marcus.comstedt@qamcom.se Aug. 21, 2018, 10:43 a.m. UTC
From: Marcus Comstedt <marcus@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(+)