C utility functions for OpenWRT libraries
Find a file
Jo-Philipp Wich bd388d2b6c jshn: do not collapse whitespace in json_load()
When running the test case below the $key variable holds "foo bar" instead
of the expected "foo  bar".

-- 8< --
. /usr/share/libubox/jshn.sh
json_init
json_load '{ "key": "foo  bar" }'
json_get_var key key
-- >8 --

Quote the output of the "jshn -r" backtick expression to prevent the shell
from erroneously collapsing whitespace.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-16 20:36:13 +02:00
examples blobmsg-example: use blobmsg_get_string() 2014-07-03 13:50:49 +02:00
lua Fix bug of GC in fd and timeout objects for lua binding. 2014-06-24 14:30:30 +01:00
sh jshn: do not collapse whitespace in json_load() 2014-07-16 20:36:13 +02:00
.gitignore add a cmake file for the examples and add the binaries to .gitignore 2012-10-21 23:01:30 +02:00
avl-cmp.c add avl_strcmp 2012-05-26 18:01:18 +02:00
avl-cmp.h add avl_strcmp 2012-05-26 18:01:18 +02:00
avl.c list_compat.h: remove 2014-03-20 23:06:42 +01:00
avl.h avl: add AVL_TREE macro to define an initialized struct avl_tree 2014-03-27 17:39:53 +01:00
blob.c blob: make length variables unsigned 2014-04-27 16:29:31 +02:00
blob.h blob/blobmsg: Perform explicit casts from void* to avoid compilation errors when using libubox from C++. 2014-05-09 14:33:39 +02:00
blobmsg.c blobmsg: add blobmsg_check_array, which returns the size of the array 2014-07-15 10:52:12 +02:00
blobmsg.h blobmsg: add blobmsg_check_array, which returns the size of the array 2014-07-15 10:52:12 +02:00
blobmsg_json.c blobmsg_json: use cross-platform macro for fprintf on 64-bit values 2014-05-31 14:48:03 +02:00
blobmsg_json.h blobmsg_json: add blobmsg_add_json_from_file 2013-05-29 12:14:48 +02:00
CMakeLists.txt build a static version of libubox 2014-06-11 01:39:12 +01:00
jshn.c jshn: add support for the double datatype 2013-03-17 00:50:03 +01:00
json_script.c json_script: fix a segfault in the file free handler 2014-05-26 15:53:29 +02:00
json_script.h json_script: add json_script_run_file() 2014-04-28 17:54:25 +02:00
kvlist.c kvlist: constify arguments 2014-04-28 17:56:08 +02:00
kvlist.h kvlist: constify arguments 2014-04-28 17:56:08 +02:00
list.h list.h: implement type safety for container_of() 2013-03-18 05:55:00 +01:00
md5.c md5: remove unnecessary variable change 2014-04-12 20:25:32 +02:00
md5.h add md5.c to libubox 2013-11-19 20:31:45 +01:00
runqueue.c libubox: runqueue: Cancel task timeout when completeing task 2014-01-29 03:32:30 +00:00
runqueue.h runqueue: add a function that allows adding jobs to the front of the runqueue 2013-11-18 12:25:21 +01:00
safe_list.c runqueue: add a function that allows adding jobs to the front of the runqueue 2013-11-18 12:25:21 +01:00
safe_list.h runqueue: add a function that allows adding jobs to the front of the runqueue 2013-11-18 12:25:21 +01:00
uloop.c uloop: fix multiple calls to uloop_run() 2014-05-05 11:24:07 +02:00
uloop.h uloop: Add flag to allow callback to be called on error conditions. 2014-02-23 18:18:32 +01:00
usock.c add license headers for usock 2013-01-13 15:27:38 +01:00
usock.h usock: fix indentation 2014-07-03 12:53:13 +02:00
ustream-fd.c ustream: only report stream eof once via state_change callback 2013-05-31 11:18:26 +02:00
ustream.c ustream: remove unnecessary initialization 2014-04-12 20:21:13 +02:00
ustream.h ustream: another fix for ustream_read_buf_full() with split read buffers 2013-01-31 18:10:52 +01:00
utils.c uloop: add a clock_gettime() implementation for mac os x 2013-01-06 02:42:58 +01:00
utils.h utils: add a bitfield size macro 2014-04-30 13:27:03 +02:00
vlist.c vlist: constify key argument to vlist_add 2013-10-05 21:40:04 +02:00
vlist.h vlist: add static initializer macros 2014-06-05 15:28:45 +02:00