X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Futils%2Fstrbuf.h;fp=src%2Finclude%2Futils%2Fstrbuf.h;h=a9e915537c9d97c03fd94310cfb58b66a3041c34;hb=971e0d9e845bfcb14fcf175d72a136c4e1186f6c;hp=c14192daa0a2dede951a39f7b77b413e46f3b2f5;hpb=3d184d708cdbf864eb96c15e1a0f08b57c118009;p=sysdb.git diff --git a/src/include/utils/strbuf.h b/src/include/utils/strbuf.h index c14192d..a9e9155 100644 --- a/src/include/utils/strbuf.h +++ b/src/include/utils/strbuf.h @@ -45,6 +45,13 @@ extern "C" { typedef struct sdb_strbuf sdb_strbuf_t; +/* + * SDB_STRBUF_STR: + * Return a tuple of a character array and its length representing the content + * of the string buffer. + */ +#define SDB_STRBUF_STR(buf) sdb_strbuf_string(buf), sdb_strbuf_len(buf) + /* * sdb_strbuf_create, sdb_strbuf_destroy: * Allocate / deallocate string buffer objects. The initial size of a newly