~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to gio/gsimpleasyncresult.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: Alexander Larsson <alexl@redhat.com>
21
21
 */
22
22
 
 
23
#ifndef __G_SIMPLE_ASYNC_RESULT_H__
 
24
#define __G_SIMPLE_ASYNC_RESULT_H__
 
25
 
23
26
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
24
27
#error "Only <gio/gio.h> can be included directly."
25
28
#endif
26
29
 
27
 
#ifndef __G_SIMPLE_ASYNC_RESULT_H__
28
 
#define __G_SIMPLE_ASYNC_RESULT_H__
29
 
 
30
30
#include <gio/giotypes.h>
31
31
 
32
32
G_BEGIN_DECLS
46
46
typedef struct _GSimpleAsyncResultClass   GSimpleAsyncResultClass;
47
47
 
48
48
 
 
49
GLIB_AVAILABLE_IN_ALL
49
50
GType               g_simple_async_result_get_type         (void) G_GNUC_CONST;
50
51
 
 
52
GLIB_AVAILABLE_IN_ALL
51
53
GSimpleAsyncResult *g_simple_async_result_new              (GObject                 *source_object,
52
54
                                                            GAsyncReadyCallback      callback,
53
55
                                                            gpointer                 user_data,
54
56
                                                            gpointer                 source_tag);
 
57
GLIB_AVAILABLE_IN_ALL
55
58
GSimpleAsyncResult *g_simple_async_result_new_error        (GObject                 *source_object,
56
59
                                                            GAsyncReadyCallback      callback,
57
60
                                                            gpointer                 user_data,
59
62
                                                            gint                     code,
60
63
                                                            const char              *format,
61
64
                                                            ...) G_GNUC_PRINTF (6, 7);
 
65
GLIB_AVAILABLE_IN_ALL
62
66
GSimpleAsyncResult *g_simple_async_result_new_from_error   (GObject                 *source_object,
63
67
                                                            GAsyncReadyCallback      callback,
64
68
                                                            gpointer                 user_data,
65
69
                                                            const GError            *error);
 
70
GLIB_AVAILABLE_IN_ALL
66
71
GSimpleAsyncResult *g_simple_async_result_new_take_error   (GObject                 *source_object,
67
72
                                                            GAsyncReadyCallback      callback,
68
73
                                                            gpointer                 user_data,
69
74
                                                            GError                  *error);
70
75
 
 
76
GLIB_AVAILABLE_IN_ALL
71
77
void                g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult      *simple,
72
78
                                                               gpointer                 op_res,
73
79
                                                               GDestroyNotify           destroy_op_res);
 
80
GLIB_AVAILABLE_IN_ALL
74
81
gpointer            g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult      *simple);
75
82
 
 
83
GLIB_AVAILABLE_IN_ALL
76
84
void                g_simple_async_result_set_op_res_gssize   (GSimpleAsyncResult      *simple,
77
85
                                                               gssize                   op_res);
 
86
GLIB_AVAILABLE_IN_ALL
78
87
gssize              g_simple_async_result_get_op_res_gssize   (GSimpleAsyncResult      *simple);
79
88
 
 
89
GLIB_AVAILABLE_IN_ALL
80
90
void                g_simple_async_result_set_op_res_gboolean (GSimpleAsyncResult      *simple,
81
91
                                                               gboolean                 op_res);
 
92
GLIB_AVAILABLE_IN_ALL
82
93
gboolean            g_simple_async_result_get_op_res_gboolean (GSimpleAsyncResult      *simple);
83
94
 
84
95
 
86
97
GLIB_AVAILABLE_IN_2_32
87
98
void                g_simple_async_result_set_check_cancellable (GSimpleAsyncResult *simple,
88
99
                                                                 GCancellable       *check_cancellable);
 
100
GLIB_AVAILABLE_IN_ALL
89
101
gpointer            g_simple_async_result_get_source_tag   (GSimpleAsyncResult      *simple);
 
102
GLIB_AVAILABLE_IN_ALL
90
103
void                g_simple_async_result_set_handle_cancellation (GSimpleAsyncResult      *simple,
91
104
                                                                   gboolean          handle_cancellation);
 
105
GLIB_AVAILABLE_IN_ALL
92
106
void                g_simple_async_result_complete         (GSimpleAsyncResult      *simple);
 
107
GLIB_AVAILABLE_IN_ALL
93
108
void                g_simple_async_result_complete_in_idle (GSimpleAsyncResult      *simple);
 
109
GLIB_AVAILABLE_IN_ALL
94
110
void                g_simple_async_result_run_in_thread    (GSimpleAsyncResult      *simple,
95
111
                                                            GSimpleAsyncThreadFunc   func,
96
112
                                                            int                      io_priority,
97
113
                                                            GCancellable            *cancellable);
 
114
GLIB_AVAILABLE_IN_ALL
98
115
void                g_simple_async_result_set_from_error   (GSimpleAsyncResult      *simple,
99
116
                                                            const GError            *error);
 
117
GLIB_AVAILABLE_IN_ALL
100
118
void                g_simple_async_result_take_error       (GSimpleAsyncResult      *simple,
101
119
                                                            GError            *error);
 
120
GLIB_AVAILABLE_IN_ALL
102
121
gboolean            g_simple_async_result_propagate_error  (GSimpleAsyncResult      *simple,
103
122
                                                            GError                 **dest);
 
123
GLIB_AVAILABLE_IN_ALL
104
124
void                g_simple_async_result_set_error        (GSimpleAsyncResult      *simple,
105
125
                                                            GQuark                   domain,
106
126
                                                            gint                     code,
107
127
                                                            const char              *format,
108
128
                                                            ...) G_GNUC_PRINTF (4, 5);
 
129
GLIB_AVAILABLE_IN_ALL
109
130
void                g_simple_async_result_set_error_va     (GSimpleAsyncResult      *simple,
110
131
                                                            GQuark                   domain,
111
132
                                                            gint                     code,
112
133
                                                            const char              *format,
113
 
                                                            va_list                  args);
 
134
                                                            va_list                  args)
 
135
                                                            G_GNUC_PRINTF(4, 0);
 
136
GLIB_AVAILABLE_IN_ALL
114
137
gboolean            g_simple_async_result_is_valid         (GAsyncResult            *result,
115
138
                                                            GObject                 *source,
116
139
                                                            gpointer                 source_tag);
117
140
 
 
141
GLIB_AVAILABLE_IN_ALL
118
142
void g_simple_async_report_error_in_idle  (GObject            *object,
119
143
                                           GAsyncReadyCallback callback,
120
144
                                           gpointer            user_data,
121
145
                                           GQuark              domain,
122
146
                                           gint                code,
123
147
                                           const char         *format,
124
 
                                           ...);
 
148
                                           ...) G_GNUC_PRINTF(6, 7);
 
149
GLIB_AVAILABLE_IN_ALL
125
150
void g_simple_async_report_gerror_in_idle (GObject            *object,
126
151
                                           GAsyncReadyCallback callback,
127
152
                                           gpointer            user_data,
128
153
                                           const GError       *error);
 
154
GLIB_AVAILABLE_IN_ALL
129
155
void g_simple_async_report_take_gerror_in_idle (GObject            *object,
130
156
                                                GAsyncReadyCallback callback,
131
157
                                                gpointer            user_data,