[cogl/lionel/introspection: 3/76] object: use GLib's DestroyNotify if compiled with GLib
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection: 3/76] object: use GLib's DestroyNotify if compiled with GLib
- Date: Wed, 11 Sep 2013 15:20:02 +0000 (UTC)
commit 4b1aab0cdbcb0087f0b67684c0cbaf56ccb80546
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 22:00:36 2013 +0100
object: use GLib's DestroyNotify if compiled with GLib
cogl/cogl-object.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h
index 9ec27f9..975e789 100644
--- a/cogl/cogl-object.h
+++ b/cogl/cogl-object.h
@@ -114,7 +114,11 @@ typedef struct {
*
* Since: 1.4
*/
+#ifdef COGL_HAS_GTYPE_SUPPORT
+typedef GDestroyNotify CoglUserDataDestroyCallback;
+#else
typedef void (*CoglUserDataDestroyCallback) (void *user_data);
+#endif
/**
* CoglDebugObjectTypeInfo:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]