Commit graph

522 commits

Author SHA1 Message Date
Felix Fietkau
b1c320132e add blob_attr_equal() for comparing attributes 2011-09-05 06:09:32 +02:00
Felix Fietkau
1d3e4ccb6a fix a bug in blobmsg_parse
a second entry that has the same length as an existing found entry would
abort the parse loop (reported by Stefan Mächler)
2011-08-17 10:44:11 -07:00
Felix Fietkau
f1a44355bd change the include path for list.h in jshn.c 2011-08-12 11:12:50 -06:00
Felix Fietkau
d6ebb84ad6 add a missing include 2011-08-11 15:37:48 -06:00
Felix Fietkau
ec56b91662 jshn: clear more variables on json_init, fix adding array elements 2011-08-11 15:29:23 -06:00
Felix Fietkau
bdf717425a add blob_buf_free 2011-07-29 19:38:30 +02:00
Felix Fietkau
abbc140e8d add BLOBMSG_TYPE_BOOL as an alias for BLOBMSG_TYPE_INT8 2011-07-29 12:56:48 +02:00
Felix Fietkau
ed9b5c986b blobmsg_json: support indenting of output data 2011-07-18 13:04:23 +02:00
Felix Fietkau
bdf6363777 jshn: add an option for printing the json data without a terminating newline 2011-05-31 15:41:19 +02:00
Felix Fietkau
a8032be64c uloop: use list.h, add support for handling sigchld 2011-05-24 22:12:17 +02:00
Felix Fietkau
11079ba582 jshn: fix invalid variable reuse 2011-05-23 23:15:33 +02:00
Felix Fietkau
cc2457aa3e jshn: do not use -n on export 2011-05-23 23:09:19 +02:00
Felix Fietkau
fda6079b30 add jshn 2011-05-23 22:21:27 +02:00
Felix Fietkau
3041e8ce9b make the avl node key const 2011-04-13 20:14:20 +02:00
Felix Fietkau
89122a2c1e remove int16, use int8 as bool instead of integer 2011-03-27 01:08:51 +01:00
Felix Fietkau
a7c9ae6d6a support building without json support 2011-03-26 23:50:33 +01:00
Felix Fietkau
f213e8b432 remove the hlist code 2011-03-26 20:38:33 +01:00
Felix Fietkau
dc8c37fa8b change minimum cmake version to 2.6 2011-02-12 23:58:09 +01:00
Felix Fietkau
9abfbad95f uloop: fix event timeouts on darwin 2011-02-12 21:33:32 +01:00
Felix Fietkau
83037e345d uloop: allow timeouts to cancel the event loop 2011-02-11 02:38:36 +01:00
Felix Fietkau
7ec33884a3 allow multiple calls to uloop_init() without annoying side effects 2011-02-11 01:25:37 +01:00
Felix Fietkau
1ef7c81dfc add a cast to fix 64 bit issues 2011-02-07 20:30:52 +01:00
Felix Fietkau
e44dbfb102 uloop: make first_timeout static 2011-02-07 17:52:33 +01:00
Felix Fietkau
db19e64c1a make uloop_end() inline 2011-02-07 17:51:20 +01:00
Felix Fietkau
81839e259a validate blobmsg attributes before converting them to json 2011-02-07 17:47:02 +01:00
Felix Fietkau
07dbea0058 usock: remove code duplication 2011-02-07 17:38:05 +01:00
Felix Fietkau
a5e2b50652 properly null-terminate formatted json strings 2011-02-07 01:18:56 +01:00
Felix Fietkau
6bbde6e647 allow blobmsg_add_field to add arrays/tables 2011-02-07 01:12:07 +01:00
Felix Fietkau
932914c1b1 rename blob_get_int* to blob_get_u* 2011-02-06 21:36:04 +01:00
Felix Fietkau
0918243e90 move json formatting to the blobmsg_json library 2011-02-06 21:23:28 +01:00
Felix Fietkau
677e7bc0b3 make __avl_find_element() inline 2011-02-06 18:01:37 +01:00
Felix Fietkau
c9e852301b remove hash.[ch] - i don't think we will need it 2011-02-06 17:20:46 +01:00
Felix Fietkau
02074ab521 remove uhtbl - i don't think we will need it 2011-02-06 17:19:35 +01:00
Felix Fietkau
01ad5162b2 add a callback to the blobmsg-to-json function to override the formatting of specific attributes 2011-02-06 16:48:28 +01:00
Felix Fietkau
be41614060 add missing copyright headers 2011-02-06 16:20:57 +01:00
Felix Fietkau
7e9712363b add a json to blobmsg parsing library 2011-02-06 16:14:15 +01:00
Felix Fietkau
bf87f247d8 uloop: export the cancelled flag 2011-02-06 16:13:58 +01:00
Felix Fietkau
3bc18fcadc blobmsg: fix dynamic string buffer length calculation 2011-02-06 02:07:26 +01:00
Felix Fietkau
aa5276dcd6 uloop: fix the write flag for mac os x 2011-02-06 01:56:37 +01:00
Felix Fietkau
5aed3c2d2e blomsg: add integer attribute accessor functions 2011-02-05 02:06:49 +01:00
Felix Fietkau
29598e3dc8 add functions for allocating and adding a string buffer field 2011-02-04 21:57:59 +01:00
Felix Fietkau
36ddbe83b3 add back usock 2011-01-31 21:24:20 +01:00
Felix Fietkau
d1c5aa705a remove unl 2011-01-31 20:58:17 +01:00
Felix Fietkau
3205134afd link against libnl-tiny 2011-01-31 20:36:36 +01:00
Felix Fietkau
efd7c8c4df convert to cmake 2011-01-31 20:23:34 +01:00
Felix Fietkau
3da4427fb5 fix json string formatting 2011-01-31 17:17:40 +01:00
Felix Fietkau
f01871bc30 fix off-by-one in the string validation check 2011-01-31 16:24:11 +01:00
Felix Fietkau
7a0571a9ff blobmsg: constify and add more validation 2011-01-31 03:51:06 +01:00
Felix Fietkau
cad5bea36d blob: constify 2011-01-31 03:50:36 +01:00
Felix Fietkau
f2b9272e0b make blob attribute checking available externally 2011-01-31 03:46:37 +01:00