[cogl/cogl-1.16] object: use GLib's DestroyNotify if compiled with GLib
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.16] object: use GLib's DestroyNotify if compiled with GLib
- Date: Mon, 23 Sep 2013 14:05:01 +0000 (UTC)
commit b53de3352192618d33400363040d79cb2bc66fb0
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Tue Sep 3 22:00:36 2013 +0100
object: use GLib's DestroyNotify if compiled with GLib
Reviewed-by: Robert Bragg <robert linux intel com>
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 803aa64..a557f80 100644
--- a/cogl/cogl-object.h
+++ b/cogl/cogl-object.h
@@ -103,7 +103,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]