summaryrefslogtreecommitdiff
path: root/girepository/ginfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'girepository/ginfo.c')
-rw-r--r--girepository/ginfo.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/girepository/ginfo.c b/girepository/ginfo.c
index 5c5d0e4c..825ad5d6 100644
--- a/girepository/ginfo.c
+++ b/girepository/ginfo.c
@@ -28,79 +28,6 @@
#include "gitypelib-internal.h"
#include "girepository-private.h"
-/* GIFieldInfo functions */
-
-/**
- * SECTION:gifieldinfo
- * @Short_description: Struct representing a struct or union field
- * @Title: GIFieldInfo
- *
- * A GIFieldInfo struct represents a field of a struct (see #GIStructInfo),
- * union (see #GIUnionInfo) or an object (see #GIObjectInfo). The GIFieldInfo
- * is fetched by calling g_struct_info_get_field(), g_union_info_get_field()
- * or g_object_info_get_value().
- * A field has a size, type and a struct offset asssociated and a set of flags,
- * which is currently #GI_FIELD_IS_READABLE or #GI_FIELD_IS_WRITABLE.
- */
-
-GIFieldInfoFlags
-g_field_info_get_flags (GIFieldInfo *info)
-{
- GIFieldInfoFlags flags;
-
- GIRealInfo *rinfo = (GIRealInfo *)info;
- FieldBlob *blob = (FieldBlob *)&rinfo->typelib->data[rinfo->offset];
-
- flags = 0;
-
- if (blob->readable)
- flags = flags | GI_FIELD_IS_READABLE;
-
- if (blob->writable)
- flags = flags | GI_FIELD_IS_WRITABLE;
-
- return flags;
-}
-
-gint
-g_field_info_get_size (GIFieldInfo *info)
-{
- GIRealInfo *rinfo = (GIRealInfo *)info;
- FieldBlob *blob = (FieldBlob *)&rinfo->typelib->data[rinfo->offset];
-
- return blob->bits;
-}
-
-gint
-g_field_info_get_offset (GIFieldInfo *info)
-{
- GIRealInfo *rinfo = (GIRealInfo *)info;
- FieldBlob *blob = (FieldBlob *)&rinfo->typelib->data[rinfo->offset];
-
- return blob->struct_offset;
-}
-
-GITypeInfo *
-g_field_info_get_type (GIFieldInfo *info)
-{
- GIRealInfo *rinfo = (GIRealInfo *)info;
- Header *header = (Header *)rinfo->typelib->data;
- FieldBlob *blob = (FieldBlob *)&rinfo->typelib->data[rinfo->offset];
- GIRealInfo *type_info;
-
- if (blob->has_embedded_type)
- {
- type_info = (GIRealInfo *) g_info_new (GI_INFO_TYPE_TYPE,
- (GIBaseInfo*)info, rinfo->typelib,
- rinfo->offset + header->field_blob_size);
- type_info->type_is_embedded = TRUE;
- }
- else
- return _g_type_info_new ((GIBaseInfo*)info, rinfo->typelib, rinfo->offset + G_STRUCT_OFFSET (FieldBlob, type));
-
- return (GIBaseInfo*)type_info;
-}
-
/* GIRegisteredTypeInfo functions */
const gchar *
g_registered_type_info_get_type_name (GIRegisteredTypeInfo *info)