Martin Schröder
aaad042ee8
add float32 and float64 packing support to blob and blobmsg
2015-12-06 23:36:33 +01:00
Martin Schröder
2b64090f00
obviously it reinit should reinitialize the head to point to the beginning of the buffer and then reset the head to an empty blob_attr
2015-12-06 20:59:06 +01:00
Martin Schröder
4516817935
refactor spaghetti blob code
2015-12-06 20:54:33 +01:00
Martin Schröder
efe98864a1
refactor the library interface
2015-12-06 16:24:09 +01:00
ewolfok
02a7fe19b1
blob: improve out-of-memory handling
...
Signed-off-by: Chen Bin <ewolfok@126.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-07-26 03:50:50 +02:00
Felix Fietkau
dc82993cf2
blob: make length variables unsigned
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-27 16:29:31 +02:00
Felix Fietkau
6a3e2e6b22
blob: fix handling of custom validator callback
...
https://dev.openwrt.org/ticket/15638
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-21 12:02:32 +02:00
Felix Fietkau
b1d523601a
blobmsg: allow data/length iterator/accessor functions to work on non-blobmsg elements
...
This primarily helps with simplifying the ubus APIs.
blobmsg header presence is indicated by the BLOB_ATTR_EXTENDED bit in
the id_len field.
This changes the format ABI, but not the API.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-12 20:18:12 +01:00
Felix Fietkau
7b397d40bb
blob: add a magic offset to nesting cookies to ensure that NULL is never returned as a normal value
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-16 01:22:02 +02:00
Felix Fietkau
e36789caf6
blob: add blob_put_raw() for copying one or more blob attributes into the buffer directly
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-04 16:55:45 +02:00
Felix Fietkau
27d3551150
blob: add blob_buf_grow()
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-02-10 20:43:33 +01:00
Felix Fietkau
7099131386
blob: add blob_memdup()
2012-06-01 20:54:20 +02:00
Felix Fietkau
1c0c4699bc
blob: switch to ISC license, switch blob_{get,put}_int* to _u*, add wrappers
2011-11-10 09:05:33 +01:00
Felix Fietkau
3e31d7ee21
fix more instances of uninitialized padding bytes
2011-10-06 17:57:13 +02:00
Felix Fietkau
e41f1d9a7d
fill padding bytes when setting raw attribute length
2011-10-06 17:14:44 +02:00
Felix Fietkau
22d4c17601
explicitly zero extra buffer space added with realloc to silence valgrind warnings
2011-10-03 12:41:51 +02:00
Felix Fietkau
bf27142190
blob_attr_equal: un-inline, add pointer checks
2011-09-05 06:25:51 +02:00
Felix Fietkau
f73925d603
add blob_buf_free
2011-07-29 19:38:30 +02:00
Felix Fietkau
bd8c50c97e
fix off-by-one in the string validation check
2011-01-31 16:24:11 +01:00
Felix Fietkau
ff67d75964
blob: constify
2011-01-31 03:50:36 +01:00
Felix Fietkau
d8270a5153
make blob attribute checking available externally
2011-01-31 03:46:37 +01:00
Felix Fietkau
82d7653ff6
blob: validate strings on parse
2011-01-31 03:32:28 +01:00
Felix Fietkau
18c7e8134e
constify blob_attr_info
2010-12-05 23:31:33 +01:00
Felix Fietkau
458279e4ce
Initial import
2010-10-13 21:29:08 +02:00