summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-09-30 00:24:46 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2012-10-01 18:34:56 +0100
commitd2f07344a361c43ccdb85a0587812ca3a103078b (patch)
tree91bd6ff9e1d7aac9220c23bfef8c79e2b92c4a28
parent34143bc6f1239c9cb22ba613521ba9ee7ec7059a (diff)
downloadcogl-d2f07344a361c43ccdb85a0587812ca3a103078b.tar.gz
object: Move cogl_object_{ref,unref}() to cogl-object.h
Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r--cogl/cogl-object.h21
-rw-r--r--cogl/cogl-types.h21
2 files changed, 21 insertions, 21 deletions
diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h
index 633c6aff..a65bd9c4 100644
--- a/cogl/cogl-object.h
+++ b/cogl/cogl-object.h
@@ -30,6 +30,27 @@ typedef struct _CoglObject CoglObject;
#define COGL_OBJECT(X) ((CoglObject *)X)
/**
+ * cogl_object_ref: (skip)
+ * @object: a #CoglObject
+ *
+ * Increases the reference count of @object by 1
+ *
+ * Returns: the @object, with its reference count increased
+ */
+void *
+cogl_object_ref (void *object);
+
+/**
+ * cogl_object_unref: (skip)
+ * @object: a #CoglObject
+ *
+ * Drecreases the reference count of @object by 1; if the reference
+ * count reaches 0, the resources allocated by @object will be freed
+ */
+void
+cogl_object_unref (void *object);
+
+/**
* CoglUserDataKey:
* @unused: ignored.
*
diff --git a/cogl/cogl-types.h b/cogl/cogl-types.h
index cec8a1a6..3d096cd9 100644
--- a/cogl/cogl-types.h
+++ b/cogl/cogl-types.h
@@ -94,27 +94,6 @@ typedef struct { \
} _ ## TYPE ## SizeCheck
/**
- * cogl_object_ref: (skip)
- * @object: a #CoglObject
- *
- * Increases the reference count of @object by 1
- *
- * Returns: the @object, with its reference count increased
- */
-void *
-cogl_object_ref (void *object);
-
-/**
- * cogl_object_unref: (skip)
- * @object: a #CoglObject
- *
- * Drecreases the reference count of @object by 1; if the reference
- * count reaches 0, the resources allocated by @object will be freed
- */
-void
-cogl_object_unref (void *object);
-
-/**
* CoglFuncPtr:
*
* The type used by cogl for function pointers, note that this type