1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 * GObject introspection: Interface
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 <girepository/gitypes.h>
32
33 G_BEGIN_DECLS
34
35 /**
36 * GI_IS_INTERFACE_INFO:
37 * @info: an info structure
38 *
39 * Checks if @info is a [class@GIRepository.InterfaceInfo].
40 *
41 * Since: 2.80
42 */
43 #define GI_IS_INTERFACE_INFO(info) \
44 (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_INTERFACE)
45
46
47 GI_AVAILABLE_IN_ALL
48 guint gi_interface_info_get_n_prerequisites (GIInterfaceInfo *info);
49
50 GI_AVAILABLE_IN_ALL
51 GIBaseInfo * gi_interface_info_get_prerequisite (GIInterfaceInfo *info,
52 guint n);
53
54 GI_AVAILABLE_IN_ALL
55 guint gi_interface_info_get_n_properties (GIInterfaceInfo *info);
56
57 GI_AVAILABLE_IN_ALL
58 GIPropertyInfo * gi_interface_info_get_property (GIInterfaceInfo *info,
59 guint n);
60
61 GI_AVAILABLE_IN_ALL
62 guint gi_interface_info_get_n_methods (GIInterfaceInfo *info);
63
64 GI_AVAILABLE_IN_ALL
65 GIFunctionInfo * gi_interface_info_get_method (GIInterfaceInfo *info,
66 guint n);
67
68 GI_AVAILABLE_IN_ALL
69 GIFunctionInfo * gi_interface_info_find_method (GIInterfaceInfo *info,
70 const gchar *name);
71
72 GI_AVAILABLE_IN_ALL
73 guint gi_interface_info_get_n_signals (GIInterfaceInfo *info);
74
75 GI_AVAILABLE_IN_ALL
76 GISignalInfo * gi_interface_info_get_signal (GIInterfaceInfo *info,
77 guint n);
78
79 GI_AVAILABLE_IN_ALL
80 GISignalInfo * gi_interface_info_find_signal (GIInterfaceInfo *info,
81 const gchar *name);
82
83 GI_AVAILABLE_IN_ALL
84 guint gi_interface_info_get_n_vfuncs (GIInterfaceInfo *info);
85
86 GI_AVAILABLE_IN_ALL
87 GIVFuncInfo * gi_interface_info_get_vfunc (GIInterfaceInfo *info,
88 guint n);
89
90 GI_AVAILABLE_IN_ALL
91 GIVFuncInfo * gi_interface_info_find_vfunc (GIInterfaceInfo *info,
92 const gchar *name);
93
94 GI_AVAILABLE_IN_ALL
95 guint gi_interface_info_get_n_constants (GIInterfaceInfo *info);
96
97 GI_AVAILABLE_IN_ALL
98 GIConstantInfo * gi_interface_info_get_constant (GIInterfaceInfo *info,
99 guint n);
100
101
102 GI_AVAILABLE_IN_ALL
103 GIStructInfo * gi_interface_info_get_iface_struct (GIInterfaceInfo *info);
104
105 G_END_DECLS