diff options
| author | Thierry Vignaud <tv@mageia.org> | 2012-01-29 03:28:52 +0000 | 
|---|---|---|
| committer | Thierry Vignaud <tv@mageia.org> | 2012-01-29 03:28:52 +0000 | 
| commit | 7922132f3aa33c96efdf2da03c1e0852473f2d55 (patch) | |
| tree | 2025a5c3383f61a5c411b08ea316ccdd87dfed2c | |
| parent | 41f7d0ae63e1770fc64d431151bbba9b96bcb0e9 (diff) | |
| download | perl-Hal-Cdroms-7922132f3aa33c96efdf2da03c1e0852473f2d55.tar perl-Hal-Cdroms-7922132f3aa33c96efdf2da03c1e0852473f2d55.tar.gz perl-Hal-Cdroms-7922132f3aa33c96efdf2da03c1e0852473f2d55.tar.bz2 perl-Hal-Cdroms-7922132f3aa33c96efdf2da03c1e0852473f2d55.tar.xz perl-Hal-Cdroms-7922132f3aa33c96efdf2da03c1e0852473f2d55.zip | |
(_get_device) rename as _get_udisks_device(), returning the actual Device
(_get_device) return the Properties interface of the device
| -rw-r--r-- | lib/Hal/Cdroms.pm | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/lib/Hal/Cdroms.pm b/lib/Hal/Cdroms.pm index af9f1f9..5e32c7d 100644 --- a/lib/Hal/Cdroms.pm +++ b/lib/Hal/Cdroms.pm @@ -85,10 +85,16 @@ Return the mount point associated to the C<hal_path>, or undef it is not mounted  =cut -sub _get_device { +sub _get_udisks_device {      my ($o, $hal_path) = @_;      $o->{hal}->get_object($hal_path, "$hal_dn.Device");  } + +sub _get_device { +    my ($o, $hal_path) = @_; +    $o->{hal}->get_object($hal_path, 'org.freedesktop.DBus.Properties'); +} +  sub _get_volume {      my ($o, $hal_path) = @_;      $o->{hal}->get_object($hal_path, "$hal_dn.Device.Volume"); | 
