X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fdata.h;fp=src%2Finclude%2Fcore%2Fdata.h;h=c8c7482e796f4438aeafdb8eebe4588223636e7b;hb=abddd8616349bc2a18e96f1efcb16a5af57401da;hp=514c4d524ce2dd04dc463ff6b7e51254dede129f;hpb=5f7d377e30d5831e7b655ae3b76b13c895bf06a8;p=sysdb.git diff --git a/src/include/core/data.h b/src/include/core/data.h index 514c4d5..c8c7482 100644 --- a/src/include/core/data.h +++ b/src/include/core/data.h @@ -257,6 +257,17 @@ sdb_data_format(const sdb_data_t *datum, char *buf, size_t buflen, int quoted); int sdb_data_parse(char *str, int type, sdb_data_t *data); +/* + * sdb_data_sizeof: + * Return the size of the data-type identified by the specified type. + * + * Returns: + * - the size of the data-type on success + * - 0 else + */ +size_t +sdb_data_sizeof(int type); + #ifdef __cplusplus } /* extern "C" */ #endif