diff options
author | Michael Natterer <mitch@gimp.org> | 2013-11-25 23:26:21 +0100 |
---|---|---|
committer | Michael Natterer <mitch@gimp.org> | 2013-11-26 11:51:24 +0100 |
commit | d86396f21fa164bd3cb5efc111ef50bd7065beec (patch) | |
tree | a6e464b69ac2809e673353b67e4bed57679a9489 /gio/goutputstream.h | |
parent | a997cfe90fae92d13bd1bf7e7f45f2a2381c9f11 (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.h | 14 |
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, |