Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gicallableinfo.h
Go to the documentation of this file.
1/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 * GObject introspection: Callable
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#define GI_TYPE_CALLABLE_INFO (gi_callable_info_get_type ())
36
37/**
38 * GI_CALLABLE_INFO:
39 * @info: Info object which is subject to casting.
40 *
41 * Casts a [type@GIRepository.CallableInfo] or derived pointer into a
42 * `(GICallableInfo*)` pointer.
43 *
44 * Depending on the current debugging level, this function may invoke
45 * certain runtime checks to identify invalid casts.
46 *
47 * Since: 2.80
48 */
49#define GI_CALLABLE_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_CALLABLE_INFO, GICallableInfo))
50
51/**
52 * GI_IS_CALLABLE_INFO:
53 * @info: an info structure
54 *
55 * Checks if @info is a [class@GIRepository.CallableInfo] or derived from it.
56 *
57 * Since: 2.80
58 */
59#define GI_IS_CALLABLE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_CALLABLE_INFO))
60
61
64
67
70
73 GITypeInfo *type);
74
77 const char *name);
78
81 GIAttributeIter *iterator,
82 const char **name,
83 const char **value);
84
87
90
93
96
99 unsigned int n);
100
103 unsigned int n,
104 GIArgInfo *arg);
105
108 void *function,
109 const GIArgument *in_args,
110 size_t n_in_args,
111 GIArgument *out_args,
112 size_t n_out_args,
113 GIArgument *return_value,
114 GError **error);
115
118
CURL_EXTERN int void * arg
Definition curl.h:2622
#define GI_AVAILABLE_IN_ALL
GI_AVAILABLE_IN_ALL gboolean gi_callable_info_may_return_null(GICallableInfo *info)
GI_AVAILABLE_IN_ALL gboolean gi_callable_info_can_throw_gerror(GICallableInfo *info)
GI_AVAILABLE_IN_ALL gboolean gi_callable_info_iterate_return_attributes(GICallableInfo *info, GIAttributeIter *iterator, const char **name, const char **value)
GI_AVAILABLE_IN_ALL GITransfer gi_callable_info_get_caller_owns(GICallableInfo *info)
GI_AVAILABLE_IN_ALL const char * gi_callable_info_get_return_attribute(GICallableInfo *info, const char *name)
GI_AVAILABLE_IN_ALL GITypeInfo * gi_callable_info_get_return_type(GICallableInfo *info)
GI_AVAILABLE_IN_ALL void gi_callable_info_load_arg(GICallableInfo *info, unsigned int n, GIArgInfo *arg)
GI_AVAILABLE_IN_ALL gboolean gi_callable_info_invoke(GICallableInfo *info, void *function, const GIArgument *in_args, size_t n_in_args, GIArgument *out_args, size_t n_out_args, GIArgument *return_value, GError **error)
GI_AVAILABLE_IN_ALL void gi_callable_info_load_return_type(GICallableInfo *info, GITypeInfo *type)
GI_AVAILABLE_IN_ALL unsigned int gi_callable_info_get_n_args(GICallableInfo *info)
GI_AVAILABLE_IN_ALL GIArgInfo * gi_callable_info_get_arg(GICallableInfo *info, unsigned int n)
GI_AVAILABLE_IN_ALL gboolean gi_callable_info_skip_return(GICallableInfo *info)
GI_AVAILABLE_IN_ALL gboolean gi_callable_info_is_method(GICallableInfo *info)
GI_AVAILABLE_IN_ALL GITransfer gi_callable_info_get_instance_ownership_transfer(GICallableInfo *info)
struct _GICallableInfo GICallableInfo
Definition gitypes.h:56
GITransfer
Definition gitypes.h:231
#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
static void error(LoadState *S, const char *why)