summaryrefslogtreecommitdiff
path: root/gio/goutputstream.h
diff options
context:
space:
mode:
authorMichael Natterer <mitch@gimp.org>2013-11-25 23:26:21 +0100
committerMichael Natterer <mitch@gimp.org>2013-11-26 11:51:24 +0100
commitd86396f21fa164bd3cb5efc111ef50bd7065beec (patch)
treea6e464b69ac2809e673353b67e4bed57679a9489 /gio/goutputstream.h
parenta997cfe90fae92d13bd1bf7e7f45f2a2381c9f11 (diff)
gio: add g_output_string_[v]printf()
which are useful for porting FILE* based output code.
Diffstat (limited to 'gio/goutputstream.h')
-rw-r--r--gio/goutputstream.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gio/goutputstream.h b/gio/goutputstream.h
index dd2cbad4c..1bc5659ea 100644
--- a/gio/goutputstream.h
+++ b/gio/goutputstream.h
@@ -149,6 +149,20 @@ gboolean g_output_stream_write_all (GOutputStream *stream,
gsize *bytes_written,
GCancellable *cancellable,
GError **error);
+GLIB_AVAILABLE_IN_2_40
+gboolean g_output_stream_printf (GOutputStream *stream,
+ gsize *bytes_written,
+ GCancellable *cancellable,
+ GError **error,
+ const gchar *format,
+ ...) G_GNUC_PRINTF (5, 6);
+GLIB_AVAILABLE_IN_2_40
+gboolean g_output_stream_vprintf (GOutputStream *stream,
+ gsize *bytes_written,
+ GCancellable *cancellable,
+ GError **error,
+ const gchar *format,
+ va_list args) G_GNUC_PRINTF (5, 0);
GLIB_AVAILABLE_IN_2_34
gssize g_output_stream_write_bytes (GOutputStream *stream,
GBytes *bytes,