Code

Include config.h in source files.
[sysdb.git] / src / core / object.c
index 43bb22a8fbf83ee39cb781beab8e34426f9505e9..9d10f9831720ba8eaf310d3f83227c8572025df1 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include "core/object.h"
 
 #include <assert.h>
@@ -120,6 +124,13 @@ sdb_object_create(const char *name, sdb_type_t type, ...)
        return obj;
 } /* sdb_object_create */
 
+sdb_object_t *
+sdb_object_create_simple(const char *name, size_t size)
+{
+       sdb_type_t t = { size, NULL, NULL };
+       return sdb_object_create(name, t);
+} /* sdb_object_create_simple */
+
 sdb_object_t *
 sdb_object_create_wrapper(const char *name,
                void *data, void (*destructor)(void *))