File indexing completed on 2025-01-18 09:59:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef __G_DATA_INPUT_STREAM_H__
0024 #define __G_DATA_INPUT_STREAM_H__
0025
0026 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0027 #error "Only <gio/gio.h> can be included directly."
0028 #endif
0029
0030 #include <gio/gbufferedinputstream.h>
0031
0032 G_BEGIN_DECLS
0033
0034 #define G_TYPE_DATA_INPUT_STREAM (g_data_input_stream_get_type ())
0035 #define G_DATA_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DATA_INPUT_STREAM, GDataInputStream))
0036 #define G_DATA_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DATA_INPUT_STREAM, GDataInputStreamClass))
0037 #define G_IS_DATA_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DATA_INPUT_STREAM))
0038 #define G_IS_DATA_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DATA_INPUT_STREAM))
0039 #define G_DATA_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DATA_INPUT_STREAM, GDataInputStreamClass))
0040
0041 typedef struct _GDataInputStreamClass GDataInputStreamClass;
0042 typedef struct _GDataInputStreamPrivate GDataInputStreamPrivate;
0043
0044 struct _GDataInputStream
0045 {
0046 GBufferedInputStream parent_instance;
0047
0048
0049 GDataInputStreamPrivate *priv;
0050 };
0051
0052 struct _GDataInputStreamClass
0053 {
0054 GBufferedInputStreamClass parent_class;
0055
0056
0057
0058 void (*_g_reserved1) (void);
0059 void (*_g_reserved2) (void);
0060 void (*_g_reserved3) (void);
0061 void (*_g_reserved4) (void);
0062 void (*_g_reserved5) (void);
0063 };
0064
0065 GIO_AVAILABLE_IN_ALL
0066 GType g_data_input_stream_get_type (void) G_GNUC_CONST;
0067 GIO_AVAILABLE_IN_ALL
0068 GDataInputStream * g_data_input_stream_new (GInputStream *base_stream);
0069
0070 GIO_AVAILABLE_IN_ALL
0071 void g_data_input_stream_set_byte_order (GDataInputStream *stream,
0072 GDataStreamByteOrder order);
0073 GIO_AVAILABLE_IN_ALL
0074 GDataStreamByteOrder g_data_input_stream_get_byte_order (GDataInputStream *stream);
0075 GIO_AVAILABLE_IN_ALL
0076 void g_data_input_stream_set_newline_type (GDataInputStream *stream,
0077 GDataStreamNewlineType type);
0078 GIO_AVAILABLE_IN_ALL
0079 GDataStreamNewlineType g_data_input_stream_get_newline_type (GDataInputStream *stream);
0080 GIO_AVAILABLE_IN_ALL
0081 guchar g_data_input_stream_read_byte (GDataInputStream *stream,
0082 GCancellable *cancellable,
0083 GError **error);
0084 GIO_AVAILABLE_IN_ALL
0085 gint16 g_data_input_stream_read_int16 (GDataInputStream *stream,
0086 GCancellable *cancellable,
0087 GError **error);
0088 GIO_AVAILABLE_IN_ALL
0089 guint16 g_data_input_stream_read_uint16 (GDataInputStream *stream,
0090 GCancellable *cancellable,
0091 GError **error);
0092 GIO_AVAILABLE_IN_ALL
0093 gint32 g_data_input_stream_read_int32 (GDataInputStream *stream,
0094 GCancellable *cancellable,
0095 GError **error);
0096 GIO_AVAILABLE_IN_ALL
0097 guint32 g_data_input_stream_read_uint32 (GDataInputStream *stream,
0098 GCancellable *cancellable,
0099 GError **error);
0100 GIO_AVAILABLE_IN_ALL
0101 gint64 g_data_input_stream_read_int64 (GDataInputStream *stream,
0102 GCancellable *cancellable,
0103 GError **error);
0104 GIO_AVAILABLE_IN_ALL
0105 guint64 g_data_input_stream_read_uint64 (GDataInputStream *stream,
0106 GCancellable *cancellable,
0107 GError **error);
0108 GIO_AVAILABLE_IN_ALL
0109 char * g_data_input_stream_read_line (GDataInputStream *stream,
0110 gsize *length,
0111 GCancellable *cancellable,
0112 GError **error);
0113 GIO_AVAILABLE_IN_2_30
0114 char * g_data_input_stream_read_line_utf8 (GDataInputStream *stream,
0115 gsize *length,
0116 GCancellable *cancellable,
0117 GError **error);
0118 GIO_AVAILABLE_IN_ALL
0119 void g_data_input_stream_read_line_async (GDataInputStream *stream,
0120 gint io_priority,
0121 GCancellable *cancellable,
0122 GAsyncReadyCallback callback,
0123 gpointer user_data);
0124 GIO_AVAILABLE_IN_ALL
0125 char * g_data_input_stream_read_line_finish (GDataInputStream *stream,
0126 GAsyncResult *result,
0127 gsize *length,
0128 GError **error);
0129 GIO_AVAILABLE_IN_2_30
0130 char * g_data_input_stream_read_line_finish_utf8(GDataInputStream *stream,
0131 GAsyncResult *result,
0132 gsize *length,
0133 GError **error);
0134 GIO_DEPRECATED_IN_2_56_FOR (g_data_input_stream_read_upto)
0135 char * g_data_input_stream_read_until (GDataInputStream *stream,
0136 const gchar *stop_chars,
0137 gsize *length,
0138 GCancellable *cancellable,
0139 GError **error);
0140 GIO_DEPRECATED_IN_2_56_FOR (g_data_input_stream_read_upto_async)
0141 void g_data_input_stream_read_until_async (GDataInputStream *stream,
0142 const gchar *stop_chars,
0143 gint io_priority,
0144 GCancellable *cancellable,
0145 GAsyncReadyCallback callback,
0146 gpointer user_data);
0147 GIO_DEPRECATED_IN_2_56_FOR (g_data_input_stream_read_upto_finish)
0148 char * g_data_input_stream_read_until_finish (GDataInputStream *stream,
0149 GAsyncResult *result,
0150 gsize *length,
0151 GError **error);
0152
0153 GIO_AVAILABLE_IN_ALL
0154 char * g_data_input_stream_read_upto (GDataInputStream *stream,
0155 const gchar *stop_chars,
0156 gssize stop_chars_len,
0157 gsize *length,
0158 GCancellable *cancellable,
0159 GError **error);
0160 GIO_AVAILABLE_IN_ALL
0161 void g_data_input_stream_read_upto_async (GDataInputStream *stream,
0162 const gchar *stop_chars,
0163 gssize stop_chars_len,
0164 gint io_priority,
0165 GCancellable *cancellable,
0166 GAsyncReadyCallback callback,
0167 gpointer user_data);
0168 GIO_AVAILABLE_IN_ALL
0169 char * g_data_input_stream_read_upto_finish (GDataInputStream *stream,
0170 GAsyncResult *result,
0171 gsize *length,
0172 GError **error);
0173
0174 G_END_DECLS
0175
0176 #endif