Commit graph

21 commits

Author SHA1 Message Date
Felix Fietkau
9b0460ab9c blobmsg: remove the unnecessary name argument from blobmsg_check_attr_list, infer it from the list type 2012-06-24 21:11:06 +02:00
Felix Fietkau
d3edff8434 blobmsg: add blobmsg_check_attr_list() to validate element types of arrays and tables 2012-06-24 21:07:47 +02:00
Felix Fietkau
286a94910d switch blobmsg over to permissive license 2012-05-26 18:02:30 +02:00
Felix Fietkau
3e31d7ee21 fix more instances of uninitialized padding bytes 2011-10-06 17:57:13 +02:00
Felix Fietkau
8ef12741d4 blobmsg: fill padding between name and data 2011-10-06 17:19:28 +02:00
Felix Fietkau
a4ce44189d make the blobmsg format endian agnostic (stick to big-endian) 2011-10-06 17:15:00 +02:00
Felix Fietkau
ed949b020c 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
df231e04e1 allow blobmsg_add_field to add arrays/tables 2011-02-07 01:12:07 +01:00
Felix Fietkau
5499a66e24 move json formatting to the blobmsg_json library 2011-02-06 21:23:28 +01:00
Felix Fietkau
60b29539e4 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
660526d40a blobmsg: fix dynamic string buffer length calculation 2011-02-06 02:07:26 +01:00
Felix Fietkau
323e19a958 add functions for allocating and adding a string buffer field 2011-02-04 21:57:59 +01:00
Felix Fietkau
d64f2549f8 fix json string formatting 2011-01-31 17:17:40 +01:00
Felix Fietkau
2b7588b410 blobmsg: constify and add more validation 2011-01-31 03:51:06 +01:00
Felix Fietkau
0859795e1f add support for json-formatting blobmsg elements 2011-01-30 14:15:57 +01:00
Felix Fietkau
e3a7b89ce1 fix json list parsing 2011-01-30 01:13:32 +01:00
Felix Fietkau
eb32e4714d blobmsg: make arrays structually the same as tables - simplifies library user code 2011-01-29 18:00:40 +01:00
Felix Fietkau
e22308ecb0 add a blobmsg-to-json function 2011-01-23 22:52:53 +01:00
Felix Fietkau
b149412310 improve validation - add header length 2011-01-23 20:32:57 +01:00
Felix Fietkau
1c8025e819 add blobmsg validation function 2011-01-23 19:55:41 +01:00
Felix Fietkau
458279e4ce Initial import 2010-10-13 21:29:08 +02:00