Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gsimpleasyncresult.h
Go to the documentation of this file.
1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright (C) 2006-2007 Red Hat, Inc.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Author: Alexander Larsson <alexl@redhat.com>
21 */
22
23#ifndef __G_SIMPLE_ASYNC_RESULT_H__
24#define __G_SIMPLE_ASYNC_RESULT_H__
25
26#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27#error "Only <gio/gio.h> can be included directly."
28#endif
29
30#include <gio/giotypes.h>
31
33
34#define G_TYPE_SIMPLE_ASYNC_RESULT (g_simple_async_result_get_type ())
35#define G_SIMPLE_ASYNC_RESULT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResult))
36#define G_SIMPLE_ASYNC_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResultClass))
37#define G_IS_SIMPLE_ASYNC_RESULT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SIMPLE_ASYNC_RESULT))
38#define G_IS_SIMPLE_ASYNC_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SIMPLE_ASYNC_RESULT))
39#define G_SIMPLE_ASYNC_RESULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResultClass))
40
41typedef struct _GSimpleAsyncResultClass GSimpleAsyncResultClass;
42
43
46
49 GAsyncReadyCallback callback,
50 gpointer user_data,
51 gpointer source_tag);
54 GAsyncReadyCallback callback,
55 gpointer user_data,
56 GQuark domain,
57 gint code,
58 const char *format,
59 ...) G_GNUC_PRINTF (6, 7);
62 GAsyncReadyCallback callback,
63 gpointer user_data,
64 const GError *error);
67 GAsyncReadyCallback callback,
68 gpointer user_data,
69 GError *error);
70
73 gpointer op_res,
74 GDestroyNotify destroy_op_res);
77
80 gssize op_res);
83
86 gboolean op_res);
89
90
91
92GIO_AVAILABLE_IN_2_32 /* Also deprecated, but can't mark something both AVAILABLE and DEPRECATED */
94 GCancellable *check_cancellable);
99 gboolean handle_cancellation);
107 int io_priority,
108 GCancellable *cancellable);
111 const GError *error);
114 GError *error);
117 GError **dest);
120 GQuark domain,
121 gint code,
122 const char *format,
123 ...) G_GNUC_PRINTF (4, 5);
126 GQuark domain,
127 gint code,
128 const char *format,
129 va_list args)
130 G_GNUC_PRINTF(4, 0);
133 GObject *source,
134 gpointer source_tag);
135
138 GAsyncReadyCallback callback,
139 gpointer user_data,
140 GQuark domain,
141 gint code,
142 const char *format,
143 ...) G_GNUC_PRINTF(6, 7);
146 GAsyncReadyCallback callback,
147 gpointer user_data,
148 const GError *error);
151 GAsyncReadyCallback callback,
152 gpointer user_data,
153 GError *error);
154
156
157
158
159#endif /* __G_SIMPLE_ASYNC_RESULT_H__ */
#define GIO_AVAILABLE_IN_ALL
#define GIO_DEPRECATED_IN_2_46_FOR(f)
#define GIO_AVAILABLE_IN_2_32
#define GIO_DEPRECATED_IN_2_46
void(* GSimpleAsyncThreadFunc)(GSimpleAsyncResult *res, GObject *object, GCancellable *cancellable)
Definition giotypes.h:298
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
struct _GSimpleAsyncResult GSimpleAsyncResult
Definition giotypes.h:132
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
signed long gssize
Definition glibconfig.h:82
#define G_END_DECLS
Definition gmacros.h:910
#define G_GNUC_PRINTF(format_idx, arg_idx)
Definition gmacros.h:608
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
G_BEGIN_DECLS typedef guint32 GQuark
Definition gquark.h:38
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_complete(GSimpleAsyncResult *simple)
GIO_DEPRECATED_IN_2_46 gssize g_simple_async_result_get_op_res_gssize(GSimpleAsyncResult *simple)
struct _GSimpleAsyncResultClass GSimpleAsyncResultClass
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_from_error(GSimpleAsyncResult *simple, const GError *error)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_op_res_gpointer(GSimpleAsyncResult *simple, gpointer op_res, GDestroyNotify destroy_op_res)
void g_simple_async_report_take_gerror_in_idle(GObject *object, GAsyncReadyCallback callback, gpointer user_data, GError *error)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_op_res_gboolean(GSimpleAsyncResult *simple, gboolean op_res)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_op_res_gssize(GSimpleAsyncResult *simple, gssize op_res)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_run_in_thread(GSimpleAsyncResult *simple, GSimpleAsyncThreadFunc func, int io_priority, GCancellable *cancellable)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_complete_in_idle(GSimpleAsyncResult *simple)
void void g_simple_async_report_gerror_in_idle(GObject *object, GAsyncReadyCallback callback, gpointer user_data, const GError *error)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_take_error(GSimpleAsyncResult *simple, GError *error)
GIO_AVAILABLE_IN_2_32 void g_simple_async_result_set_check_cancellable(GSimpleAsyncResult *simple, GCancellable *check_cancellable)
GSimpleAsyncResult * g_simple_async_result_new_error(GObject *source_object, GAsyncReadyCallback callback, gpointer user_data, GQuark domain, gint code, const char *format,...) G_GNUC_PRINTF(6
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_handle_cancellation(GSimpleAsyncResult *simple, gboolean handle_cancellation)
GSimpleAsyncResult * g_simple_async_result_new(GObject *source_object, GAsyncReadyCallback callback, gpointer user_data, gpointer source_tag)
GIO_DEPRECATED_IN_2_46 gboolean g_simple_async_result_propagate_error(GSimpleAsyncResult *simple, GError **dest)
GSimpleAsyncResult * g_simple_async_result_new_take_error(GObject *source_object, GAsyncReadyCallback callback, gpointer user_data, GError *error)
GIO_DEPRECATED_IN_2_46 gboolean g_simple_async_result_get_op_res_gboolean(GSimpleAsyncResult *simple)
GIO_AVAILABLE_IN_ALL GType g_simple_async_result_get_type(void) G_GNUC_CONST
void g_simple_async_report_error_in_idle(GObject *object, GAsyncReadyCallback callback, gpointer user_data, GQuark domain, gint code, const char *format,...) G_GNUC_PRINTF(6
GIO_DEPRECATED_IN_2_46 void GIO_DEPRECATED_IN_2_46 void GIO_DEPRECATED_IN_2_46 gboolean g_simple_async_result_is_valid(GAsyncResult *result, GObject *source, gpointer source_tag)
GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_error(GSimpleAsyncResult *simple, GQuark domain, gint code, const char *format,...) G_GNUC_PRINTF(4
GIO_DEPRECATED_IN_2_46 gpointer g_simple_async_result_get_op_res_gpointer(GSimpleAsyncResult *simple)
GIO_DEPRECATED_IN_2_46 gpointer g_simple_async_result_get_source_tag(GSimpleAsyncResult *simple)
GIO_DEPRECATED_IN_2_46 void GIO_DEPRECATED_IN_2_46 void g_simple_async_result_set_error_va(GSimpleAsyncResult *simple, GQuark domain, gint code, const char *format, va_list args) G_GNUC_PRINTF(4
GSimpleAsyncResult GSimpleAsyncResult * g_simple_async_result_new_from_error(GObject *source_object, GAsyncReadyCallback callback, gpointer user_data, const GError *error)
GIO_AVAILABLE_IN_2_36 void g_task_report_error(gpointer source_object, GAsyncReadyCallback callback, gpointer callback_data, gpointer source_tag, GError *error)
GIO_AVAILABLE_IN_2_36 GTask * g_task_new(gpointer source_object, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer callback_data)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
int gint
Definition gtypes.h:55
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140
json_t format(printf, 1, 2)))
static void error(LoadState *S, const char *why)