Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gibaseinfo.h
Go to the documentation of this file.
1/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 * GObject introspection: GIBaseInfo
3 *
4 * Copyright (C) 2005 Matthias Clasen
5 * Copyright (C) 2008,2009 Red Hat, Inc.
6 *
7 * SPDX-License-Identifier: LGPL-2.1-or-later
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 * Boston, MA 02111-1307, USA.
23 */
24
25#pragma once
26
27#if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
28#error "Only <girepository.h> can be included directly."
29#endif
30
31#include <glib-object.h>
34
36
37/**
38 * GIAttributeIter:
39 *
40 * An opaque structure used to iterate over attributes
41 * in a [class@GIRepository.BaseInfo] struct.
42 *
43 * Since: 2.80
44 */
45typedef struct {
46 /*< private >*/
47 void *data;
48 void *_dummy[4];
50
51/**
52 * GI_ATTRIBUTE_ITER_INIT:
53 *
54 * Initialise a stack-allocated [type@GIRepository.AttributeIter] to a value
55 * suitable for passing to the first call to an ‘iterate’ function.
56 *
57 * Since: 2.80
58 */
59#define GI_ATTRIBUTE_ITER_INIT { NULL, { NULL, } }
60
61#define GI_TYPE_BASE_INFO (gi_base_info_get_type ())
62
63/**
64 * GI_BASE_INFO:
65 * @info: Info object which is subject to casting.
66 *
67 * Casts a [type@GIRepository.BaseInfo] or derived pointer into a
68 * `(GIBaseInfo*)` pointer.
69 *
70 * Depending on the current debugging level, this function may invoke
71 * certain runtime checks to identify invalid casts.
72 *
73 * Since: 2.80
74 */
75#define GI_BASE_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_BASE_INFO, GIBaseInfo))
76
77/**
78 * GI_IS_BASE_INFO:
79 * @info: Instance to check for being a `GI_TYPE_BASE_INFO`.
80 *
81 * Checks whether a valid [type@GObject.TypeInstance] pointer is of type
82 * `GI_TYPE_BASE_INFO` (or a derived type).
83 *
84 * Since: 2.80
85 */
86#define GI_IS_BASE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_BASE_INFO))
87
90
93
95void gi_base_info_unref (void *info);
96
98void gi_base_info_clear (void *info);
99
102
105
108
111 const char *name);
112
115 GIAttributeIter *iterator,
116 const char **name,
117 const char **value);
118
121
124
127 GIBaseInfo *info2);
128
#define GI_AVAILABLE_IN_ALL
GI_AVAILABLE_IN_ALL void gi_base_info_unref(void *info)
GI_AVAILABLE_IN_ALL GIBaseInfo * gi_base_info_ref(void *info)
GI_AVAILABLE_IN_ALL gboolean gi_base_info_equal(GIBaseInfo *info1, GIBaseInfo *info2)
GI_AVAILABLE_IN_ALL const char * gi_base_info_get_name(GIBaseInfo *info)
GI_AVAILABLE_IN_ALL void gi_base_info_clear(void *info)
GI_AVAILABLE_IN_ALL gboolean gi_base_info_is_deprecated(GIBaseInfo *info)
GI_AVAILABLE_IN_ALL gboolean gi_base_info_iterate_attributes(GIBaseInfo *info, GIAttributeIter *iterator, const char **name, const char **value)
GI_AVAILABLE_IN_ALL const char * gi_base_info_get_attribute(GIBaseInfo *info, const char *name)
GI_AVAILABLE_IN_ALL GIBaseInfo * gi_base_info_get_container(GIBaseInfo *info)
GI_AVAILABLE_IN_ALL GType gi_base_info_get_type(void) G_GNUC_CONST
GI_AVAILABLE_IN_ALL const char * gi_base_info_get_namespace(GIBaseInfo *info)
GI_AVAILABLE_IN_ALL GITypelib * gi_base_info_get_typelib(GIBaseInfo *info)
typedefG_BEGIN_DECLS struct _GITypelib GITypelib
Definition gitypelib.h:37
typedefG_BEGIN_DECLS struct _GIBaseInfo GIBaseInfo
Definition gitypes.h:41
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
const char * name
Definition lsqlite3.c:2154
int value
Definition lsqlite3.c:2155