object: Move cogl_object_{ref,unref}() to cogl-object.h

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit d2f07344a361c43ccdb85a0587812ca3a103078b)
This commit is contained in:
Damien Lespiau 2012-09-30 00:24:46 +01:00 committed by Robert Bragg
parent 2e77c039c9
commit 0866b90069
2 changed files with 21 additions and 21 deletions

View File

@ -29,6 +29,27 @@ typedef struct _CoglObject CoglObject;
#define COGL_OBJECT(X) ((CoglObject *)X) #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: * CoglUserDataKey:
* @unused: ignored. * @unused: ignored.

View File

@ -134,27 +134,6 @@ cogl_handle_ref (CoglHandle handle);
void void
cogl_handle_unref (CoglHandle handle); cogl_handle_unref (CoglHandle handle);
/**
* 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: * CoglFuncPtr:
* *