openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/gio/goutputstream.c
gboolean g_output_stream_write_all_finish(GOutputStream* stream,
                                          GAsyncResult* result,
                                          gsize* bytes_written, GError** error)
{
    GTask* task;

    g_return_val_if_fail(G_IS_OUTPUT_STREAM(stream), FALSE);
    g_return_val_if_fail(g_task_is_valid(result, stream), FALSE);

    task = G_TASK(result);

    if (bytes_written)
    {
        AsyncWriteAll* data = (AsyncWriteAll*)g_task_get_task_data(task);

        *bytes_written = data->bytes_written;
    }

    return g_task_propagate_boolean(task, error);
}
/**
 * g_output_stream_write_all_finish:
 * @stream: a #GOutputStream
 * @result: a #GAsyncResult
 * @bytes_written: (out) (optional): location to store the number of bytes that
 *was written to the stream
 * @error: a #GError location to store the error occurring, or %NULL to ignore.
 *
 * Finishes an asynchronous stream write operation started with
 * g_output_stream_write_all_async().
 *
 * As a special exception to the normal conventions for functions that
 * use #GError, if this function returns %FALSE (and sets @error) then
 * @bytes_written will be set to the number of bytes that were
 * successfully written before the error was encountered.  This
 * functionality is only available from C.  If you need it from another
 * language then you must write your own loop around
 * g_output_stream_write_async().
 *
 * Returns: %TRUE on success, %FALSE if there was an error
 *
 * Since: 2.44
 **/


Finishes an asynchronous stream write operation started with
g_output_stream_write_all_async().

As a special exception to the normal conventions for functions that
use #GError, if this function returns %FALSE (and sets @error) then
@bytes_written will be set to the number of bytes that were
successfully written before the error was encountered.  This
functionality is only available from C.  If you need it from another
language then you must write your own loop around
g_output_stream_write_async().

%TRUE on success, %FALSE if there was an error


Finishes an asynchronous stream write operation started with g_output_stream_write_all_async () . As a special exception to the normal conventions for functions that use #GError if this function returns %FALSE ( and sets @error ) then @bytes_written will be set to the number of bytes that were successfully written before the error was encountered . This functionality is only available from C . If you need it from another language then you must write your own loop around g_output_stream_write_async () . %TRUE on success %FALSE if there was an error
gboolean g_output_stream_write_all_finish(GOutputStream* stream,
                                          GAsyncResult* result,
                                          gsize* bytes_written, GError** error)
{
    GTask* task;
    g_return_val_if_fail(G_IS_OUTPUT_STREAM(stream), FALSE);
    g_return_val_if_fail(g_task_is_valid(result, stream), FALSE);
    task = G_TASK(result);
    if (bytes_written)
    {
        AsyncWriteAll* data = (AsyncWriteAll*)g_task_get_task_data(task);
        *bytes_written = data->bytes_written;
    }
    return g_task_propagate_boolean(task, error);
}
gboolean g_output_stream_write_all_finish ( GOutputStream * stream , GAsyncResult * result , gsize * bytes_written , GError * * error ) { GTask * task ; g_return_val_if_fail ( G_IS_OUTPUT_STREAM ( stream ) , FALSE ) ; g_return_val_if_fail ( g_task_is_valid ( result , stream ) , FALSE ) ; task = G_TASK ( result ) ; if ( bytes_written ) { AsyncWriteAll * data = ( AsyncWriteAll * ) g_task_get_task_data ( task ) ; * bytes_written = data -> bytes_written ; } return g_task_propagate_boolean ( task , error ) ; }
g_output_stream_write_all_finish:
 @stream: a #GOutputStream
 @result: a #GAsyncResult
 @bytes_written: (out) (optional): location to store the number of bytes that
was written to the stream
 @error: a #GError location to store the error occurring, or %NULL to ignore.
g_output_stream_write_all_finish : @stream : a #GOutputStream @result : a #GAsyncResult @bytes_written : ( out ) ( optional ) : location to store the number of bytes that was written to the stream @error : a #GError location to store the error occurring or %NULL to ignore .