summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad0100d)
raw | patch | inline | side by side (parent: ad0100d)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 13 Dec 2012 12:37:14 +0000 (13:37 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 13 Dec 2012 12:37:14 +0000 (13:37 +0100) |
This may be used to initialize static sc_object_wrapper_t objects.
src/include/core/object.h | patch | blob | history |
index cd91086a89377fa2c1a28bb754e1e1ffd285f77a..71d02978ed29c2ac8ad0699581ead9865fa014c0 100644 (file)
sc_object_t *
sc_object_create_wrapper(void *data, void (*destructor)(void *));
+#define SC_OBJECT_WRAPPER_STATIC(obj, destructor) \
+ { SC_OBJECT_INIT, (obj), (destructor) }
+
/*
* sc_object_deref:
* Dereference the object and free the allocated memory in case the ref-count