X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gobject%2Fgtype-private.h;h=d7e2ee2faa6d84f5d65692f5c70f4e6b34d8402a;hb=2a53b4d0e2c98a14aedf31e38f0ad1fb2e8fe26f;hp=85b6c58ad4b825ed972ac13f9507ecc2c7cf867d;hpb=d85b722734a6fcfe94032f6113de9e5c190fd7c3;p=platform%2Fupstream%2Fglib.git
diff --git a/gobject/gtype-private.h b/gobject/gtype-private.h
index 85b6c58..d7e2ee2 100644
--- a/gobject/gtype-private.h
+++ b/gobject/gtype-private.h
@@ -12,21 +12,35 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see .
*/
+#ifndef __G_TYPE_PRIVATE_H__
+#define __G_TYPE_PRIVATE_H__
+
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
#error "Only can be included directly."
#endif
-#ifndef __G_TYPE_PRIVATE_H__
-#define __G_TYPE_PRIVATE_H__
-
#include "gboxed.h"
+#include "gclosure.h"
G_BEGIN_DECLS
+extern GTypeDebugFlags _g_type_debug_flags;
+
+typedef struct _GRealClosure GRealClosure;
+struct _GRealClosure
+{
+ GClosureMarshal meta_marshal;
+ gpointer meta_marshal_data;
+ GVaClosureMarshal va_meta_marshal;
+ GVaClosureMarshal va_marshal;
+ GClosure closure;
+};
+
+#define G_REAL_CLOSURE(_c) \
+ ((GRealClosure *)G_STRUCT_MEMBER_P ((_c), -G_STRUCT_OFFSET (GRealClosure, closure)))
+
void _g_value_c_init (void); /* sync with gvalue.c */
void _g_value_types_init (void); /* sync with gvaluetypes.c */
void _g_enum_types_init (void); /* sync with genums.c */
@@ -46,6 +60,19 @@ void _g_type_boxed_init (GType type,
GBoxedCopyFunc copy_func,
GBoxedFreeFunc free_func);
+gboolean _g_closure_is_void (GClosure *closure,
+ gpointer instance);
+gboolean _g_closure_supports_invoke_va (GClosure *closure);
+void _g_closure_set_va_marshal (GClosure *closure,
+ GVaClosureMarshal marshal);
+void _g_closure_invoke_va (GClosure *closure,
+ GValue /*out*/ *return_value,
+ gpointer instance,
+ va_list args,
+ int n_params,
+ GType *param_types);
+
+
G_END_DECLS
#endif /* __G_TYPE_PRIVATE_H__ */