Top |
Description
Sources that represent physical devices should implement this interface.
It exposes the ability to eject the device, and also can be used to
implement some RBSource methods by using details from a GVolume or
GMount accessed via 'volume' and 'mount' properties on the source object.
Devices that are not based on a GVolume or GMount can still use the
interface, but they must provide implementations of the can_eject
and
eject
methods.
Functions
rb_device_source_eject ()
void
rb_device_source_eject (RBDeviceSource *source
);
Ejects the device that the source represents.
rb_device_source_want_uri ()
guint rb_device_source_want_uri (RBSource *source
,const char *uri
);
Checks whether uri
identifies a path underneath the
device's mount point. Should be used to implement
the RBSource want_uri method.
rb_device_source_uri_is_source ()
gboolean rb_device_source_uri_is_source (RBSource *source
,const char *uri
);
Returns TRUE
if uri
matches source
. This should be
used to implement the uri_is_source RBSource method.