summaryrefslogtreecommitdiff
path: root/gio/src/volume.ccg
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@src.gnome.org>2008-02-02 17:41:05 +0000
committerJonathon Jongsma <jjongsma@src.gnome.org>2008-02-02 17:41:05 +0000
commit88553b487c01ff7bb1645793361890f29b6db7d6 (patch)
tree6974a6f808f8665c5d5a42455d40796c903aaa9c /gio/src/volume.ccg
parent426f4be640703e9830d9790c228efe6b4eb5a049 (diff)
downloadglibmm-88553b487c01ff7bb1645793361890f29b6db7d6.tar.gz
add BufferedInputStream class
* gio/src/gio_vfuncs.defs: * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/bufferedinputstream.ccg: * gio/src/bufferedinputstream.hg: add BufferedInputStream class * gio/giomm/slot_async.cc: * gio/giomm/slot_async.h: split out the SlotProxy_async_callback so it doesn't have to be implemented in every file * gio/src/drive.ccg: * gio/src/file.ccg: * gio/src/file.hg: * gio/src/fileenumerator.ccg: * gio/src/fileinputstream.ccg: * gio/src/fileoutputstream.ccg: * gio/src/inputstream.ccg: * gio/src/mount.ccg: * gio/src/outputstream.ccg: * gio/src/volume.ccg: use the common SlotProxy_async_callback function in all of these files * tools/m4/convert_gio.m4: add conversion for Cancellable * gio/giomm/Makefile.am: indenting changes svn path=/trunk/; revision=560
Diffstat (limited to 'gio/src/volume.ccg')
-rw-r--r--gio/src/volume.ccg27
1 files changed, 1 insertions, 26 deletions
diff --git a/gio/src/volume.ccg b/gio/src/volume.ccg
index 0da00641..86dec05b 100644
--- a/gio/src/volume.ccg
+++ b/gio/src/volume.ccg
@@ -23,32 +23,7 @@
#include <giomm/file.h>
#include <giomm/drive.h>
#include <gio/gio.h>
-
-namespace {
-
-static void
-SignalProxy_async_callback(GObject*, GAsyncResult* res, void* data)
-{
- Gio::SlotAsyncReady* the_slot = static_cast<Gio::SlotAsyncReady*>(data);
-
- #ifdef GLIBMM_EXCEPTIONS_ENABLED
- try
- {
- #endif //GLIBMM_EXCEPTIONS_ENABLED
- Glib::RefPtr<Gio::AsyncResult> result = Glib::wrap(res, true /* take copy */);
- (*the_slot)(result);
- #ifdef GLIBMM_EXCEPTIONS_ENABLED
- }
- catch(...)
- {
- Glib::exception_handlers_invoke();
- }
- #endif //GLIBMM_EXCEPTIONS_ENABLED
-
- delete the_slot;
-}
-
-} // anonymous namespace
+#include "slot_async.h"
namespace Gio {