diff options
Diffstat (limited to 'gio/src/inputstream.ccg')
-rw-r--r-- | gio/src/inputstream.ccg | 100 |
1 files changed, 29 insertions, 71 deletions
diff --git a/gio/src/inputstream.ccg b/gio/src/inputstream.ccg index 9a6ca6c7..97160032 100644 --- a/gio/src/inputstream.ccg +++ b/gio/src/inputstream.ccg @@ -26,20 +26,16 @@ namespace Gio { void -InputStream::read_async(void* buffer, gsize count, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int io_priority) +InputStream::read_async(void* buffer, gsize count, const SlotAsyncReady& slot, + const Glib::RefPtr<Cancellable>& cancellable, int io_priority) { // Create a copy of the slot. // A pointer to it will be passed through the callback's data parameter // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_read_async(gobj(), - buffer, - count, - io_priority, - Glib::unwrap(cancellable), - &SignalProxy_async_callback, - slot_copy); + g_input_stream_read_async(gobj(), buffer, count, io_priority, Glib::unwrap(cancellable), + &SignalProxy_async_callback, slot_copy); } void @@ -50,31 +46,21 @@ InputStream::read_async(void* buffer, gsize count, const SlotAsyncReady& slot, i // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_read_async(gobj(), - buffer, - count, - io_priority, - nullptr, - &SignalProxy_async_callback, - slot_copy); + g_input_stream_read_async( + gobj(), buffer, count, io_priority, nullptr, &SignalProxy_async_callback, slot_copy); } - void -InputStream::read_all_async(void* buffer, gsize count, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int io_priority) +InputStream::read_all_async(void* buffer, gsize count, const SlotAsyncReady& slot, + const Glib::RefPtr<Cancellable>& cancellable, int io_priority) { // Create a copy of the slot. // A pointer to it will be passed through the callback's data parameter // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_read_all_async(gobj(), - buffer, - count, - io_priority, - Glib::unwrap(cancellable), - &SignalProxy_async_callback, - slot_copy); + g_input_stream_read_all_async(gobj(), buffer, count, io_priority, Glib::unwrap(cancellable), + &SignalProxy_async_callback, slot_copy); } void @@ -85,30 +71,21 @@ InputStream::read_all_async(void* buffer, gsize count, const SlotAsyncReady& slo // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_read_all_async(gobj(), - buffer, - count, - io_priority, - nullptr, - &SignalProxy_async_callback, - slot_copy); + g_input_stream_read_all_async( + gobj(), buffer, count, io_priority, nullptr, &SignalProxy_async_callback, slot_copy); } - void -InputStream::read_bytes_async(gsize count, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int io_priority) +InputStream::read_bytes_async(gsize count, const SlotAsyncReady& slot, + const Glib::RefPtr<Cancellable>& cancellable, int io_priority) { // Create a copy of the slot. // A pointer to it will be passed through the callback's data parameter // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_read_bytes_async(gobj(), - count, - io_priority, - Glib::unwrap(cancellable), - &SignalProxy_async_callback, - slot_copy); + g_input_stream_read_bytes_async( + gobj(), count, io_priority, Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy); } void @@ -119,29 +96,21 @@ InputStream::read_bytes_async(gsize count, const SlotAsyncReady& slot, int io_pr // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_read_bytes_async(gobj(), - count, - io_priority, - nullptr, - &SignalProxy_async_callback, - slot_copy); + g_input_stream_read_bytes_async( + gobj(), count, io_priority, nullptr, &SignalProxy_async_callback, slot_copy); } - void -InputStream::skip_async(gsize count, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int io_priority) +InputStream::skip_async(gsize count, const SlotAsyncReady& slot, + const Glib::RefPtr<Cancellable>& cancellable, int io_priority) { // Create a copy of the slot. // A pointer to it will be passed through the callback's data parameter // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_skip_async(gobj(), - count, - io_priority, - Glib::unwrap(cancellable), - &SignalProxy_async_callback, - slot_copy); + g_input_stream_skip_async( + gobj(), count, io_priority, Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy); } void @@ -152,27 +121,21 @@ InputStream::skip_async(gsize count, const SlotAsyncReady& slot, int io_priority // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_skip_async(gobj(), - count, - io_priority, - nullptr, - &SignalProxy_async_callback, - slot_copy); + g_input_stream_skip_async( + gobj(), count, io_priority, nullptr, &SignalProxy_async_callback, slot_copy); } void -InputStream::close_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int io_priority) +InputStream::close_async( + const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, int io_priority) { // Create a copy of the slot. // A pointer to it will be passed through the callback's data parameter // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_close_async(gobj(), - io_priority, - Glib::unwrap(cancellable), - &SignalProxy_async_callback, - slot_copy); + g_input_stream_close_async( + gobj(), io_priority, Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy); } void @@ -183,12 +146,7 @@ InputStream::close_async(const SlotAsyncReady& slot, int io_priority) // and deleted in the callback. auto slot_copy = new SlotAsyncReady(slot); - g_input_stream_close_async(gobj(), - io_priority, - nullptr, - &SignalProxy_async_callback, - slot_copy); + g_input_stream_close_async(gobj(), io_priority, nullptr, &SignalProxy_async_callback, slot_copy); } - } // namespace Gio |