Code

utils/strbuf: Added SDB_STRBUF_STR.
authorSebastian Harl <sh@tokkee.org>
Wed, 17 Dec 2014 21:53:55 +0000 (22:53 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 17 Dec 2014 21:53:55 +0000 (22:53 +0100)
commit971e0d9e845bfcb14fcf175d72a136c4e1186f6c
treecd330bba0f5a321546e82d529514efd7c07bd336
parent3d184d708cdbf864eb96c15e1a0f08b57c118009
utils/strbuf: Added SDB_STRBUF_STR.

This macro returns a tuple describing the buffer content and length. The idea
is that functions which operate on (binary) strings should accept two such
arguments and the macro will make it easier to pass them in.
src/include/utils/strbuf.h