Method

GioResourceref

since: 2.32

Declaration

GResource*
g_resource_ref (
  GResource* resource
)

Description

Atomically increments the reference count of resource by one. This function is MT-safe and may be called from any thread.

Available since: 2.32

Return value

Type: GResource

The passed in GResource.

The caller of the method takes ownership of the data, and is responsible for freeing it.