[gvfs/gdbus: 1/16] gdbus: Add remote volume monitor dbus interface file
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gdbus: 1/16] gdbus: Add remote volume monitor dbus interface file
- Date: Wed, 26 Oct 2011 17:15:55 +0000 (UTC)
commit 77f30a40be0e04279a74edf4a14701ec4111362b
Author: Tomas Bzatek <tbzatek redhat com>
Date: Wed May 18 13:56:58 2011 +0200
gdbus: Add remote volume monitor dbus interface file
.gitignore | 1 +
monitor/proxy/Makefile.am | 21 ++++-
monitor/proxy/dbus-interfaces.xml | 176 +++++++++++++++++++++++++++++++++++++
3 files changed, 197 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 17ff40a..c174077 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,4 @@ gtk-doc.make
*-marshal.[ch]
*.gschema.valid
*.enums.xml
+monitor/proxy/gvfsvolumemonitordbus.*
diff --git a/monitor/proxy/Makefile.am b/monitor/proxy/Makefile.am
index bd3b451..087b2a9 100644
--- a/monitor/proxy/Makefile.am
+++ b/monitor/proxy/Makefile.am
@@ -5,6 +5,18 @@ remote_volume_monitorsdir = $(datadir)/gvfs/remote-volume-monitors
module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload|query)'
+dbus_built_sources = gvfsvolumemonitordbus.c gvfsvolumemonitordbus.h
+$(dbus_built_sources) : Makefile.am dbus-interfaces.xml
+ gdbus-codegen \
+ --interface-prefix org.gtk.Private. \
+ --c-namespace GVfs \
+ --c-generate-object-manager \
+ --generate-c-code gvfsvolumemonitordbus \
+ dbus-interfaces.xml \
+ $(NULL)
+
+
+
giomodules_LTLIBRARIES = libgioremote-volume-monitor.la
libgioremote_volume_monitor_la_SOURCES = \
@@ -15,6 +27,7 @@ libgioremote_volume_monitor_la_SOURCES = \
gproxyshadowmount.c gproxyshadowmount.h \
gproxyvolumemonitor.c gproxyvolumemonitor.h \
gproxymountoperation.c gproxymountoperation.h \
+ $(dbus_built_sources) \
$(NULL)
libgioremote_volume_monitor_la_CFLAGS = \
@@ -43,7 +56,9 @@ noinst_LTLIBRARIES = libgvfsproxyvolumemonitordaemon-noin.la
libgvfsproxyvolumemonitordaemon_noin_la_SOURCES = \
gvfsproxyvolumemonitordaemon.c \
- gvfsproxyvolumemonitordaemon.h
+ gvfsproxyvolumemonitordaemon.h \
+ $(dbus_built_sources) \
+ $(NULL)
libgvfsproxyvolumemonitordaemon_noin_la_CFLAGS = \
-I$(top_srcdir)/common \
@@ -65,3 +80,7 @@ clean-local:
install-data-local:
mkdir -p $(DESTDIR)$(remote_volume_monitorsdir)
+
+EXTRA_DIST = \
+ dbus-interfaces.xml \
+ $(NULL)
diff --git a/monitor/proxy/dbus-interfaces.xml b/monitor/proxy/dbus-interfaces.xml
new file mode 100644
index 0000000..3e517d6
--- /dev/null
+++ b/monitor/proxy/dbus-interfaces.xml
@@ -0,0 +1,176 @@
+<!DOCTYPE node PUBLIC
+"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+
+<!--
+ Copyright (C) 2011 Red Hat, Inc.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General
+ Public License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Tomas Bzatek <tbzatek redhat com>
+-->
+
+<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
+ <interface name='org.gtk.Private.RemoteVolumeMonitor'>
+
+ <!-- GIO side -->
+ <signal name="DriveChanged">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssbbbbbbbbuasa{ss})' name='Drive'/>
+ </signal>
+ <signal name="DriveConnected">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssbbbbbbbbuasa{ss})' name='Drive'/>
+ </signal>
+ <signal name="DriveDisconnected">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssbbbbbbbbuasa{ss})' name='Drive'/>
+ </signal>
+ <signal name="DriveEjectButton">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssbbbbbbbbuasa{ss})' name='Drive'/>
+ </signal>
+ <signal name="DriveStopButton">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssbbbbbbbbuasa{ss})' name='Drive'/>
+ </signal>
+ <signal name="VolumeChanged">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbbssa{ss})' name='Volume'/>
+ </signal>
+ <signal name="VolumeAdded">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbbssa{ss})' name='Volume'/>
+ </signal>
+ <signal name="VolumeRemoved">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbbssa{ss})' name='Volume'/>
+ </signal>
+ <signal name="MountChanged">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbsas)' name='Mount'/>
+ </signal>
+ <signal name="MountAdded">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbsas)' name='Mount'/>
+ </signal>
+ <signal name="MountPreUnmount">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbsas)' name='Mount'/>
+ </signal>
+ <signal name="MountRemoved">
+ <arg type='s' name='TheDBusName'/>
+ <arg type='s' name='Id'/>
+ <arg type='(sssssbsas)' name='Mount'/>
+ </signal>
+ <method name="MountOpAskPassword">
+ <arg type='s' name='TheDBusName' direction='in'/>
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='MessageToShow' direction='in'/>
+ <arg type='s' name='DefaultUser' direction='in'/>
+ <arg type='s' name='DefaultDomain' direction='in'/>
+ <arg type='u' name='Flags' direction='in'/>
+ </method>
+ <method name="MountOpAskQuestion">
+ <arg type='s' name='TheDBusName' direction='in'/>
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='MessageToShow' direction='in'/>
+ <arg type='as' name='Choices' direction='in'/>
+ </method>
+ <method name="MountOpShowProcesses">
+ <arg type='s' name='TheDBusName' direction='in'/>
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='MessageToShow' direction='in'/>
+ <arg type='ai' name='Pid' direction='in'/>
+ <arg type='as' name='Choices' direction='in'/>
+ </method>
+ <method name="MountOpAborted">
+ <arg type='s' name='TheDBusName' direction='in'/>
+ <arg type='s' name='Id' direction='in'/>
+ </method>
+
+
+ <!-- Particular volume monitor implementations -->
+ <method name="IsSupported">
+ <arg type='b' name='IsSupported' direction='out'/>
+ </method>
+ <method name="List">
+ <arg type='a(sssbbbbbbbbuasa{ss})' name='Drives' direction='out'/>
+ <arg type='a(sssssbbssa{ss})' name='Volumes' direction='out'/>
+ <arg type='a(sssssbsas)' name='Mounts' direction='out'/>
+ </method>
+ <method name="CancelOperation">
+ <arg type='s' name='CancellationId' direction='in'/>
+ <arg type='b' name='WasCancelled' direction='out'/>
+ </method>
+ <method name="MountUnmount">
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='CancellationId' direction='in'/>
+ <arg type='u' name='UnmountFlags' direction='in'/>
+ <arg type='s' name='MountOpId' direction='in'/>
+ </method>
+ <method name="VolumeMount">
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='CancellationId' direction='in'/>
+ <arg type='u' name='MountFlags' direction='in'/>
+ <arg type='s' name='MountOpId' direction='in'/>
+ </method>
+ <method name="DriveEject">
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='CancellationId' direction='in'/>
+ <arg type='u' name='UnmountFlags' direction='in'/>
+ <arg type='s' name='MountOpId' direction='in'/>
+ </method>
+ <method name="DrivePollForMedia">
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='CancellationId' direction='in'/>
+ </method>
+ <method name="DriveStart">
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='CancellationId' direction='in'/>
+ <arg type='u' name='Flags' direction='in'/>
+ <arg type='s' name='MountOpId' direction='in'/>
+ </method>
+ <method name="DriveStop">
+ <arg type='s' name='Id' direction='in'/>
+ <arg type='s' name='CancellationId' direction='in'/>
+ <arg type='u' name='UnmountFlags' direction='in'/>
+ <arg type='s' name='MountOpId' direction='in'/>
+ </method>
+ <method name="MountOpReply">
+ <arg type='s' name='MountOpId' direction='in'/>
+ <arg type='i' name='Result' direction='in'/>
+ <arg type='s' name='UserName' direction='in'/>
+ <arg type='s' name='Domain' direction='in'/>
+ <arg type='s' name='EncodedPassword' direction='in'/>
+ <arg type='i' name='PasswordSave' direction='in'/>
+ <arg type='i' name='Choice' direction='in'/>
+ <arg type='b' name='Anonymous' direction='in'/>
+ </method>
+ </interface>
+</node>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]