summaryrefslogtreecommitdiff
path: root/SMBConfig.pm
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2007-12-08 21:58:23 +0100
committerCarlos Garnacho <carlosg@gnome.org>2007-12-10 01:25:46 +0100
commitd89409a116005f499511f6a9d5966a045a6bb696 (patch)
treee2c7efa3241764b6e4594e3a5061f64c6e2679f0 /SMBConfig.pm
parentd8e81e11f9ee784cedce32e8370c030820baf982 (diff)
Make SMBConfig able to modify the SMB password database.
* SMBConfig.pm: Add this to the DBus message format, pass users from/to the module * Shares/SMB.pm (get_smb_users) (set_smb_users): Added, used where appropriate.
Diffstat (limited to 'SMBConfig.pm')
-rw-r--r--SMBConfig.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/SMBConfig.pm b/SMBConfig.pm
index f6f7cdd..0571b46 100644
--- a/SMBConfig.pm
+++ b/SMBConfig.pm
@@ -29,7 +29,7 @@ use Shares::SMB;
my $OBJECT_NAME = "SMBConfig";
my $OBJECT_PATH = "$Utils::Backend::DBUS_PATH/$OBJECT_NAME";
my $format = [[ "array", [ "struct", "string", "string", "string", "int32", "int32", "int32", "int32" ]],
- "string", "string", "int32", "string" ];
+ "string", "string", "int32", "string", [ "array", [ "struct", "string", "string" ]]];
sub new
{
@@ -38,14 +38,11 @@ sub new
bless $self, $class;
-# Utils::Monitor::monitor_files (&Shares::SMB::get_distro_smb_file (),
-# $self, $OBJECT_NAME, "changed");
return $self;
}
dbus_method ("get", [], $format);
dbus_method ("set", $format, []);
-#dbus_signal ("changed", []);
sub get
{