diff options
author | Murray Cumming <murrayc@murrayc.com> | 2008-02-09 16:12:27 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2008-02-09 16:12:27 +0000 |
commit | b15b2979cd195cc8b0b2c0a7464c4d47db09c46d (patch) | |
tree | a3e747055ea0e767ad511919d4c643612d65b671 /gio/src/volumemonitor.hg | |
parent | 6e8bcd913596cd240b5cd7ef2b9c5210eb31c8c1 (diff) | |
download | glibmm-b15b2979cd195cc8b0b2c0a7464c4d47db09c46d.tar.gz |
Added hand-written vfunc .defs for GVolume and GVolumeMonitor.
2008-02-09 Murray Cumming <murrayc@murrayc.com>
* gio/src/gio_vfuncs.defs: Added hand-written vfunc .defs for
GVolume and GVolumeMonitor.
* gio/src/volume.hg:
* gio/src/volumemonitor.hg: Added vfuncs, though not using all C++ types
yet. I am not really sure that these will ever be useful (if anyone will
ever want to implement them in C++).
svn path=/trunk/; revision=593
Diffstat (limited to 'gio/src/volumemonitor.hg')
-rw-r--r-- | gio/src/volumemonitor.hg | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gio/src/volumemonitor.hg b/gio/src/volumemonitor.hg index a28dd9a2..44f1c126 100644 --- a/gio/src/volumemonitor.hg +++ b/gio/src/volumemonitor.hg @@ -73,7 +73,18 @@ public: _WRAP_SIGNAL(void drive_disconnected(const Glib::RefPtr<Drive>& drive), drive_disconnected) _WRAP_SIGNAL(void drive_changed(const Glib::RefPtr<Drive>& drive), drive_changed) - //TODO: vfuncs + gboolean (*is_supported) (void); + + //TODO: Use ListHandle? + _WRAP_VFUNC(GList* get_volumes(), get_volumes) + _WRAP_VFUNC(GList* get_mounts(), get_mounts) + +#m4 _CONVERSION(`Glib::RefPtr<Volume>',`GVolume*',__CONVERT_CONST_REFPTR_TO_P) + _WRAP_VFUNC(Glib::RefPtr<Volume> get_volume_for_uuid(const std::string& uuid), get_volume_for_uuid) + +#m4 _CONVERSION(`Glib::RefPtr<Mount>',`GMount*',__CONVERT_CONST_REFPTR_TO_P) + _WRAP_VFUNC(Glib::RefPtr<Mount> get_mount_for_uuid(const std::string& uuid), get_mount_for_uuid) + //There are no properties. }; |