Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
giobjectinfo.h
Go to the documentation of this file.
1/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 * GObject introspection: Object
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
32
34
35/**
36 * GIObjectInfoRefFunction: (skip)
37 * @object: object instance pointer
38 *
39 * Increases the reference count of an object instance.
40 *
41 * Returns: (transfer full): the object instance
42 * Since: 2.80
43 */
44typedef void * (*GIObjectInfoRefFunction) (void *object);
45
46/**
47 * GIObjectInfoUnrefFunction: (skip)
48 * @object: (transfer full): object instance pointer
49 *
50 * Decreases the reference count of an object instance.
51 *
52 * Since: 2.80
53 */
54typedef void (*GIObjectInfoUnrefFunction) (void *object);
55
56/**
57 * GIObjectInfoSetValueFunction: (skip)
58 * @value: a [type@GObject.Value]
59 * @object: object instance pointer
60 *
61 * Update @value and attach the object instance pointer @object to it.
62 *
63 * Since: 2.80
64 */
65typedef void (*GIObjectInfoSetValueFunction) (GValue *value, void *object);
66
67/**
68 * GIObjectInfoGetValueFunction: (skip)
69 * @value: a [type@GObject.Value]
70 *
71 * Extract an object instance out of @value.
72 *
73 * Returns: (transfer full): the object instance
74 * Since: 2.80
75 */
76typedef void * (*GIObjectInfoGetValueFunction) (const GValue *value);
77
78#define GI_TYPE_OBJECT_INFO (gi_object_info_get_type ())
79
80/**
81 * GI_OBJECT_INFO:
82 * @info: Info object which is subject to casting.
83 *
84 * Casts a [type@GIRepository.ObjectInfo] or derived pointer into a
85 * `(GIObjectInfo*)` pointer.
86 *
87 * Depending on the current debugging level, this function may invoke
88 * certain runtime checks to identify invalid casts.
89 *
90 * Since: 2.80
91 */
92#define GI_OBJECT_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_OBJECT_INFO, GIObjectInfo))
93
94/**
95 * GI_IS_OBJECT_INFO:
96 * @info: an info structure
97 *
98 * Checks if @info is a [class@GIRepository.ObjectInfo] (or a derived type).
99 *
100 * Since: 2.80
101 */
102#define GI_IS_OBJECT_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_OBJECT_INFO))
103
104
107
110
113
116
119
122
125
128 unsigned int n);
129
132
135 unsigned int n);
136
139
142 unsigned int n);
143
146
149 unsigned int n);
150
153 const char *name);
154
155
158 const char *name,
159 GIBaseInfo **declarer);
160
161
164
167 unsigned int n);
168
169
172 const char *name);
173
174
177
180 unsigned int n);
181
184 const char *name);
185
188 const char *name,
189 GIBaseInfo **declarer);
190
193
196 unsigned int n);
197
200
201
204
207
208
211
214
215
218
221
222
225
228
229
#define GI_AVAILABLE_IN_ALL
void(* GIObjectInfoSetValueFunction)(GValue *value, void *object)
GI_AVAILABLE_IN_ALL GIFunctionInfo * gi_object_info_get_method(GIObjectInfo *info, unsigned int n)
GI_AVAILABLE_IN_ALL GIVFuncInfo * gi_object_info_find_vfunc_using_interfaces(GIObjectInfo *info, const char *name, GIBaseInfo **declarer)
GI_AVAILABLE_IN_ALL GISignalInfo * gi_object_info_get_signal(GIObjectInfo *info, unsigned int n)
G_BEGIN_DECLS typedef void *(* GIObjectInfoRefFunction)(void *object)
GI_AVAILABLE_IN_ALL GIStructInfo * gi_object_info_get_class_struct(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIFieldInfo * gi_object_info_get_field(GIObjectInfo *info, unsigned int n)
GI_AVAILABLE_IN_ALL GIObjectInfoRefFunction gi_object_info_get_ref_function_pointer(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GISignalInfo * gi_object_info_find_signal(GIObjectInfo *info, const char *name)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_vfuncs(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL const char * gi_object_info_get_ref_function_name(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL gboolean gi_object_info_get_fundamental(GIObjectInfo *info)
void *(* GIObjectInfoGetValueFunction)(const GValue *value)
GI_AVAILABLE_IN_ALL GIVFuncInfo * gi_object_info_get_vfunc(GIObjectInfo *info, unsigned int n)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_fields(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIInterfaceInfo * gi_object_info_get_interface(GIObjectInfo *info, unsigned int n)
GI_AVAILABLE_IN_ALL const char * gi_object_info_get_type_name(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIFunctionInfo * gi_object_info_find_method(GIObjectInfo *info, const char *name)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_properties(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL const char * gi_object_info_get_unref_function_name(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL const char * gi_object_info_get_type_init_function_name(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL const char * gi_object_info_get_set_value_function_name(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_methods(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIObjectInfoSetValueFunction gi_object_info_get_set_value_function_pointer(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL const char * gi_object_info_get_get_value_function_name(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIVFuncInfo * gi_object_info_find_vfunc(GIObjectInfo *info, const char *name)
GI_AVAILABLE_IN_ALL GIObjectInfoGetValueFunction gi_object_info_get_get_value_function_pointer(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_signals(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIObjectInfoUnrefFunction gi_object_info_get_unref_function_pointer(GIObjectInfo *info)
void(* GIObjectInfoUnrefFunction)(void *object)
GI_AVAILABLE_IN_ALL gboolean gi_object_info_get_abstract(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIObjectInfo * gi_object_info_get_parent(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIPropertyInfo * gi_object_info_get_property(GIObjectInfo *info, unsigned int n)
GI_AVAILABLE_IN_ALL GIFunctionInfo * gi_object_info_find_method_using_interfaces(GIObjectInfo *info, const char *name, GIBaseInfo **declarer)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_interfaces(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL gboolean gi_object_info_get_final(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL unsigned int gi_object_info_get_n_constants(GIObjectInfo *info)
GI_AVAILABLE_IN_ALL GIConstantInfo * gi_object_info_get_constant(GIObjectInfo *info, unsigned int n)
struct _GIStructInfo GIStructInfo
Definition gitypes.h:72
typedefG_BEGIN_DECLS struct _GIBaseInfo GIBaseInfo
Definition gitypes.h:41
struct _GIObjectInfo GIObjectInfo
Definition gitypes.h:88
struct _GIPropertyInfo GIPropertyInfo
Definition gitypes.h:112
struct _GIInterfaceInfo GIInterfaceInfo
Definition gitypes.h:92
struct _GIFieldInfo GIFieldInfo
Definition gitypes.h:116
struct _GIFunctionInfo GIFunctionInfo
Definition gitypes.h:60
struct _GISignalInfo GISignalInfo
Definition gitypes.h:104
struct _GIVFuncInfo GIVFuncInfo
Definition gitypes.h:108
struct _GIConstantInfo GIConstantInfo
Definition gitypes.h:96
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
gint gboolean
Definition gtypes.h:56
const char * name
Definition lsqlite3.c:2154
int value
Definition lsqlite3.c:2155