Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdatainputstream.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_DATA_INPUT_STREAM_H__
24#define __G_DATA_INPUT_STREAM_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
31
33
34#define G_TYPE_DATA_INPUT_STREAM (g_data_input_stream_get_type ())
35#define G_DATA_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DATA_INPUT_STREAM, GDataInputStream))
36#define G_DATA_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DATA_INPUT_STREAM, GDataInputStreamClass))
37#define G_IS_DATA_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DATA_INPUT_STREAM))
38#define G_IS_DATA_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DATA_INPUT_STREAM))
39#define G_DATA_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DATA_INPUT_STREAM, GDataInputStreamClass))
40
42typedef struct _GDataInputStreamPrivate GDataInputStreamPrivate;
43
51
53{
55
56 /*< private >*/
57 /* Padding for future expansion */
58 void (*_g_reserved1) (void);
59 void (*_g_reserved2) (void);
60 void (*_g_reserved3) (void);
61 void (*_g_reserved4) (void);
62 void (*_g_reserved5) (void);
63};
64
69
82 GCancellable *cancellable,
83 GError **error);
86 GCancellable *cancellable,
87 GError **error);
90 GCancellable *cancellable,
91 GError **error);
94 GCancellable *cancellable,
95 GError **error);
98 GCancellable *cancellable,
99 GError **error);
102 GCancellable *cancellable,
103 GError **error);
106 GCancellable *cancellable,
107 GError **error);
110 gsize *length,
111 GCancellable *cancellable,
112 GError **error);
115 gsize *length,
116 GCancellable *cancellable,
117 GError **error);
120 gint io_priority,
121 GCancellable *cancellable,
122 GAsyncReadyCallback callback,
123 gpointer user_data);
126 GAsyncResult *result,
127 gsize *length,
128 GError **error);
131 GAsyncResult *result,
132 gsize *length,
133 GError **error);
136 const gchar *stop_chars,
137 gsize *length,
138 GCancellable *cancellable,
139 GError **error);
142 const gchar *stop_chars,
143 gint io_priority,
144 GCancellable *cancellable,
145 GAsyncReadyCallback callback,
146 gpointer user_data);
149 GAsyncResult *result,
150 gsize *length,
151 GError **error);
152
155 const gchar *stop_chars,
156 gssize stop_chars_len,
157 gsize *length,
158 GCancellable *cancellable,
159 GError **error);
162 const gchar *stop_chars,
163 gssize stop_chars_len,
164 gint io_priority,
165 GCancellable *cancellable,
166 GAsyncReadyCallback callback,
167 gpointer user_data);
170 GAsyncResult *result,
171 gsize *length,
172 GError **error);
173
175
176#endif /* __G_DATA_INPUT_STREAM_H__ */
GIO_AVAILABLE_IN_ALL char * g_data_input_stream_read_upto_finish(GDataInputStream *stream, GAsyncResult *result, gsize *length, GError **error)
GIO_AVAILABLE_IN_ALL char * g_data_input_stream_read_line_finish(GDataInputStream *stream, GAsyncResult *result, gsize *length, GError **error)
GIO_AVAILABLE_IN_ALL char * g_data_input_stream_read_line(GDataInputStream *stream, gsize *length, GCancellable *cancellable, GError **error)
void g_data_input_stream_read_until_async(GDataInputStream *stream, const gchar *stop_chars, gint io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL GType g_data_input_stream_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL guint32 g_data_input_stream_read_uint32(GDataInputStream *stream, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL void g_data_input_stream_set_newline_type(GDataInputStream *stream, GDataStreamNewlineType type)
GIO_AVAILABLE_IN_ALL void g_data_input_stream_read_line_async(GDataInputStream *stream, gint io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL GDataStreamNewlineType g_data_input_stream_get_newline_type(GDataInputStream *stream)
GIO_AVAILABLE_IN_ALL void g_data_input_stream_set_byte_order(GDataInputStream *stream, GDataStreamByteOrder order)
GIO_AVAILABLE_IN_ALL guchar g_data_input_stream_read_byte(GDataInputStream *stream, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL guint16 g_data_input_stream_read_uint16(GDataInputStream *stream, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL gint64 g_data_input_stream_read_int64(GDataInputStream *stream, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_30 char * g_data_input_stream_read_line_finish_utf8(GDataInputStream *stream, GAsyncResult *result, gsize *length, GError **error)
char * g_data_input_stream_read_until_finish(GDataInputStream *stream, GAsyncResult *result, gsize *length, GError **error)
GIO_AVAILABLE_IN_ALL gint16 g_data_input_stream_read_int16(GDataInputStream *stream, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL GDataStreamByteOrder g_data_input_stream_get_byte_order(GDataInputStream *stream)
GIO_AVAILABLE_IN_ALL void g_data_input_stream_read_upto_async(GDataInputStream *stream, const gchar *stop_chars, gssize stop_chars_len, gint io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL gint32 g_data_input_stream_read_int32(GDataInputStream *stream, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL GDataInputStream * g_data_input_stream_new(GInputStream *base_stream)
GIO_AVAILABLE_IN_ALL guint64 g_data_input_stream_read_uint64(GDataInputStream *stream, GCancellable *cancellable, GError **error)
struct _GDataInputStreamPrivate GDataInputStreamPrivate
GIO_AVAILABLE_IN_ALL char * g_data_input_stream_read_upto(GDataInputStream *stream, const gchar *stop_chars, gssize stop_chars_len, gsize *length, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_30 char * g_data_input_stream_read_line_utf8(GDataInputStream *stream, gsize *length, GCancellable *cancellable, GError **error)
char * g_data_input_stream_read_until(GDataInputStream *stream, const gchar *stop_chars, gsize *length, GCancellable *cancellable, GError **error)
#define GIO_AVAILABLE_IN_ALL
#define GIO_AVAILABLE_IN_2_30
#define GIO_DEPRECATED_IN_2_56_FOR(f)
GDataStreamNewlineType
Definition gioenums.h:113
GDataStreamByteOrder
Definition gioenums.h:97
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
unsigned long guint64
Definition glibconfig.h:67
signed long gint64
Definition glibconfig.h:66
unsigned int guint32
Definition glibconfig.h:57
signed short gint16
Definition glibconfig.h:48
unsigned short guint16
Definition glibconfig.h:49
signed long gssize
Definition glibconfig.h:82
unsigned long gsize
Definition glibconfig.h:83
signed int gint32
Definition glibconfig.h:56
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
unsigned char guchar
Definition gtypes.h:58
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
void * gpointer
Definition gtypes.h:109
int gint
Definition gtypes.h:55
static void error(LoadState *S, const char *why)
GBufferedInputStreamClass parent_class
GDataInputStreamPrivate * priv
GBufferedInputStream parent_instance