diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h index 28fce1a68..da43bb39b 100644 --- a/cogl/cogl-object.h +++ b/cogl/cogl-object.h @@ -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. diff --git a/cogl/cogl-types.h b/cogl/cogl-types.h index 0a9074f53..9d91e7073 100644 --- a/cogl/cogl-types.h +++ b/cogl/cogl-types.h @@ -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: *