2
Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License as
6
published by the Free Software Foundation; version 2 of the
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22
#ifndef _GLIB_EXT_REF_H_
23
#define _GLIB_EXT_REF_H_
27
#include "chassis-exports.h"
30
* a ref-counted c-structure
35
GDestroyNotify udata_free;
40
CHASSIS_API GRef *g_ref_new(void);
41
CHASSIS_API void g_ref_set(GRef *ref, gpointer udata, GDestroyNotify udata_free);
42
CHASSIS_API void g_ref_ref(GRef *ref);
43
CHASSIS_API void g_ref_unref(GRef *ref);