From d920ccc16fe6546933abcb9f0340a3469721178b Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 6 Jun 2010 23:22:57 -0300 Subject: [PATCH] [girepository] Kill girffi-private.h --- girepository/Makefile.am | 1 - girepository/girepository-private.h | 5 +++++ girepository/girepository.h | 5 +++-- girepository/girffi-private.h | 32 -------------------------------- girepository/girffi.c | 8 ++++---- girepository/giroffsets.c | 4 ++-- 6 files changed, 14 insertions(+), 41 deletions(-) delete mode 100644 girepository/girffi-private.h diff --git a/girepository/Makefile.am b/girepository/Makefile.am index 9faff91..9589412 100644 --- a/girepository/Makefile.am +++ b/girepository/Makefile.am @@ -44,7 +44,6 @@ libgirepository_1_0_la_SOURCES = \ girepository-private.h \ girffi.c \ girffi.h \ - girffi-private.h \ gisignalinfo.c \ gistructinfo.c \ gitypeinfo.c \ diff --git a/girepository/girepository-private.h b/girepository/girepository-private.h index a4c0393..8382f40 100644 --- a/girepository/girepository-private.h +++ b/girepository/girepository-private.h @@ -22,8 +22,11 @@ #ifndef __GIREPOSITORY_PRIVATE_H__ #define __GIREPOSITORY_PRIVATE_H__ +#include #include +#define __GIREPOSITORY_H_INSIDE__ + #include #include #include @@ -105,4 +108,6 @@ GIVFuncInfo * _g_base_info_find_vfunc (GIRealInfo *rinfo, gint n_vfuncs, const gchar *name); +ffi_type * _gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer); + #endif /* __GIREPOSITORY_PRIVATE_H__ */ diff --git a/girepository/girepository.h b/girepository/girepository.h index 5138e4a..4b605d2 100644 --- a/girepository/girepository.h +++ b/girepository/girepository.h @@ -22,10 +22,11 @@ #ifndef __G_IREPOSITORY_H__ #define __G_IREPOSITORY_H__ -#define __GIREPOSITORY_H_INSIDE__ - #include #include + +#define __GIREPOSITORY_H_INSIDE__ + #include #include #include diff --git a/girepository/girffi-private.h b/girepository/girffi-private.h deleted file mode 100644 index 6453350..0000000 --- a/girepository/girffi-private.h +++ /dev/null @@ -1,32 +0,0 @@ -/* GObject introspection: Private helper functions for ffi integration - * - * Copyright (C) 2008, 2009 Red Hat, Inc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * 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. - */ - -#ifndef __GIRFFI_PRIVATE_H__ -#define __GIRFFI_PRIVATE_H__ - -#include "girffi.h" - -G_BEGIN_DECLS - -ffi_type * g_ir_ffi_get_ffi_type (GITypeTag type_tag, gboolean is_pointer); - -G_END_DECLS - -#endif /* __GIRFFI_PRIVATE_H__ */ diff --git a/girepository/girffi.c b/girepository/girffi.c index 6716324..559af25 100644 --- a/girepository/girffi.c +++ b/girepository/girffi.c @@ -27,12 +27,12 @@ #include #include #include "girffi.h" -#include "girffi-private.h" #include "girepository.h" +#include "girepository-private.h" ffi_type * -g_ir_ffi_get_ffi_type (GITypeTag tag, - gboolean is_pointer) +_gi_type_tag_get_ffi_type (GITypeTag tag, + gboolean is_pointer) { switch (tag) { @@ -125,7 +125,7 @@ g_ir_ffi_get_ffi_type (GITypeTag tag, ffi_type * g_type_info_get_ffi_type (GITypeInfo *info) { - return g_ir_ffi_get_ffi_type (g_type_info_get_tag (info), g_type_info_is_pointer (info)); + return _gi_type_tag_get_ffi_type (g_type_info_get_tag (info), g_type_info_is_pointer (info)); } /** diff --git a/girepository/giroffsets.c b/girepository/giroffsets.c index 263665c..5d481da 100644 --- a/girepository/giroffsets.c +++ b/girepository/giroffsets.c @@ -18,7 +18,7 @@ * Boston, MA 02111-1307, USA. */ -#include "girffi-private.h" +#include "girepository-private.h" #include "girnode.h" /* The C standard specifies that an enumeration can be any char or any signed @@ -262,7 +262,7 @@ get_type_size_alignment (GIrNodeType *type, } else { - type_ffi = g_ir_ffi_get_ffi_type (type->tag, type->is_pointer); + type_ffi = _gi_type_tag_get_ffi_type (type->tag, type->is_pointer); if (type_ffi == &ffi_type_void) { -- 2.7.4