summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 13:28:52 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 13:28:52 +0000
commitd67246ac4e5b59cf170ce964fe15cf357510e404 (patch)
tree7442729ecad19ffd780d57c33792ca8b37b3668a /common
parent4dc974918b9902f0681319a44c99a974dc67bd9a (diff)
downloadgvfs-d67246ac4e5b59cf170ce964fe15cf357510e404.tar.gz
Add defines for GMountOperation dbus ops
Original git commit by Alexander Larsson <alexl@redhat.com> at 1178705331 +0200 svn path=/trunk/; revision=532
Diffstat (limited to 'common')
-rw-r--r--common/gmountoperationdbus.c4
-rw-r--r--common/gmountsource.c2
-rw-r--r--common/gvfsdaemonprotocol.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/common/gmountoperationdbus.c b/common/gmountoperationdbus.c
index 4956c07d..caa514ba 100644
--- a/common/gmountoperationdbus.c
+++ b/common/gmountoperationdbus.c
@@ -98,11 +98,11 @@ mount_op_message_function (DBusConnection *connection,
if (dbus_message_is_method_call (message,
G_VFS_DBUS_MOUNT_OPERATION_INTERFACE,
- "askPassword"))
+ G_VFS_DBUS_MOUNT_OPERATION_OP_ASK_PASSWORD))
mount_op_ask_password (op_dbus, message);
else if (dbus_message_is_method_call (message,
G_VFS_DBUS_MOUNT_OPERATION_INTERFACE,
- "askQuestion"))
+ G_VFS_DBUS_MOUNT_OPERATION_OP_ASK_QUESTION))
mount_op_ask_question (op_dbus, message);
else
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
diff --git a/common/gmountsource.c b/common/gmountsource.c
index c4a6fbee..35597cd3 100644
--- a/common/gmountsource.c
+++ b/common/gmountsource.c
@@ -188,7 +188,7 @@ g_mount_source_ask_password (GMountSource *source,
message = dbus_message_new_method_call (source->dbus_id,
source->obj_path,
G_VFS_DBUS_MOUNT_OPERATION_INTERFACE,
- "askPassword");
+ G_VFS_DBUS_MOUNT_OPERATION_OP_ASK_PASSWORD);
_g_dbus_message_append_args (message,
DBUS_TYPE_STRING, &message_string,
diff --git a/common/gvfsdaemonprotocol.h b/common/gvfsdaemonprotocol.h
index 303933a8..7b3d9368 100644
--- a/common/gvfsdaemonprotocol.h
+++ b/common/gvfsdaemonprotocol.h
@@ -35,7 +35,10 @@ G_BEGIN_DECLS
#define G_VFS_DBUS_OP_GET_CONNECTION "GetConnection"
#define G_VFS_DBUS_OP_CANCEL "Cancel"
+/* Used by the dbus-proxying implementation of GMoutOperation */
#define G_VFS_DBUS_MOUNT_OPERATION_INTERFACE "org.gtk.vfs.MountOperation"
+#define G_VFS_DBUS_MOUNT_OPERATION_OP_ASK_PASSWORD "askPassword"
+#define G_VFS_DBUS_MOUNT_OPERATION_OP_ASK_QUESTION "askQuestion"
#define G_VFS_DBUS_SPAWNER_INTERFACE "org.gtk.vfs.Spawner"
#define G_VFS_DBUS_OP_SPAWNED "Spawned"