X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fobject.h;h=2f6470e01c8ee5350b75a7300029e88162b759a3;hb=e2fbe0efeb9be4c61911a18b337dc89ca351ca81;hp=9169c441383b292803a67efc35e91147528aa1e2;hpb=2e2e989712ec5991526b3aaeec011440adb5bf7e;p=sysdb.git diff --git a/src/include/core/object.h b/src/include/core/object.h index 9169c44..2f6470e 100644 --- a/src/include/core/object.h +++ b/src/include/core/object.h @@ -93,6 +93,20 @@ sdb_object_create(const char *name, sdb_type_t type, ...); sdb_object_t * sdb_object_vcreate(const char *name, sdb_type_t type, va_list ap); +/* + * sdb_object_create_simple: + * Create a "simple" object without custom initialization and destructor. + * See the description of sdb_object_create for more details. + */ +sdb_object_t * +sdb_object_create_simple(const char *name, size_t size); + +/* + * sdb_object_create_T: + * Create a simple object of type 't'. + */ +#define sdb_object_create_T(n,t) sdb_object_create_simple((n), sizeof(t)) + /* * sdb_object_create_wrapper: * Create a new sdb_object_t wrapping some arbitrary other object.