diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:24:11 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:24:11 +0000 |
commit | 17ed6a27a13e1e8e08193cedc8ff144a9fc9c388 (patch) | |
tree | 0d63cc342730ec81c419a948475e61991aeb65a6 /common/gmountoperationdbus.h | |
parent | 70d9eab591f1714e641308c84649f963961c5116 (diff) | |
download | gvfs-17ed6a27a13e1e8e08193cedc8ff144a9fc9c388.tar.gz |
Add dbus-based source for GMountOperation
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170341972 +0100
svn path=/trunk/; revision=293
Diffstat (limited to 'common/gmountoperationdbus.h')
-rw-r--r-- | common/gmountoperationdbus.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/common/gmountoperationdbus.h b/common/gmountoperationdbus.h new file mode 100644 index 00000000..986552e4 --- /dev/null +++ b/common/gmountoperationdbus.h @@ -0,0 +1,41 @@ +#ifndef __G_MOUNT_OPERATION_DBUS_H__ +#define __G_MOUNT_OPERATION_DBUS_H__ + +#include <sys/stat.h> + +#include <glib-object.h> +#include <gio/gmountoperation.h> +#include <dbus/dbus.h> + +G_BEGIN_DECLS + +#define G_TYPE_MOUNT_OPERATION_DBUS (g_mount_operation_dbus_get_type ()) +#define G_MOUNT_OPERATION_DBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MOUNT_OPERATION_DBUS, GMountOperationDBus)) +#define G_MOUNT_OPERATION_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MOUNT_OPERATION_DBUS, GMountOperationDBusClass)) +#define G_IS_MOUNT_OPERATION_DBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MOUNT_OPERATION_DBUS)) +#define G_IS_MOUNT_OPERATION_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MOUNT_OPERATION_DBUS)) +#define G_MOUNT_OPERATION_DBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MOUNT_OPERATION_DBUS, GMountOperationDBusClass)) + +typedef struct _GMountOperationDBus GMountOperationDBus; +typedef struct _GMountOperationDBusClass GMountOperationDBusClass; + +struct _GMountOperationDBus +{ + GMountOperation parent_instance; + + char *obj_path; + DBusConnection *connection; +}; + +struct _GMountOperationDBusClass +{ + GMountOperationClass parent_class; +}; + +GType g_mount_operation_dbus_get_type (void) G_GNUC_CONST; + +GMountOperationDBus * g_mount_operation_dbus_new (void); + +G_END_DECLS + +#endif /* __G_MOUNT_OPERATION_DBUS_H__ */ |