Code

data: Return the number of bytes that would have been returned.
authorSebastian Harl <sh@tokkee.org>
Sat, 7 Mar 2015 13:01:17 +0000 (14:01 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 7 Mar 2015 13:01:17 +0000 (14:01 +0100)
commit42f08911b5ba35dbd0e3dadc0f3785f8fa3a946a
tree47ce8e693ac625f919ee750a96146376f87e8abe
parent7ee46a4a7e492518a56df4a8ae3f1bd88adf88b8
data: Return the number of bytes that would have been returned.

That is, behave as documented, even if the buffer is NULL or otherwise too
small. Return size_t instead of an integer.
src/core/data.c
src/core/store_json.c
src/core/store_lookup.c
src/include/core/data.h
t/unit/core/data_test.c
t/unit/utils/proto_test.c