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:
parent
2e77c039c9
commit
0866b90069
@ -29,6 +29,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.
|
||||
|
@ -134,27 +134,6 @@ cogl_handle_ref (CoglHandle handle);
|
||||
void
|
||||
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:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user