[gnome-keyring/dbus-api] [dbus] Add introspectable XML files.



commit 1108b3c93b2656de8670897e4a9441a308b3ad6f
Author: Stef Walter <stef memberwebs com>
Date:   Thu Aug 27 02:32:44 2009 +0000

    [dbus] Add introspectable XML files.

 daemon/data/Makefile.am               |   13 +++++-
 daemon/data/introspect-collection.xml |   58 +++++++++++++++++++++++++
 daemon/data/introspect-item.xml       |   39 +++++++++++++++++
 daemon/data/introspect-service.xml    |   76 +++++++++++++++++++++++++++++++++
 daemon/data/introspect-session.xml    |   34 +++++++++++++++
 5 files changed, 218 insertions(+), 2 deletions(-)
---
diff --git a/daemon/data/Makefile.am b/daemon/data/Makefile.am
index 5784759..1b5aa8c 100644
--- a/daemon/data/Makefile.am
+++ b/daemon/data/Makefile.am
@@ -18,7 +18,16 @@ else
 install-data-local:
 endif
 
-EXTRA_DIST = $(schemas_in_files)
+introspectdir = $(datadir)/gnome-keyring/introspect
 
-CLEANFILES = $(schemas_DATA)
+introspect_DATA = \
+	introspect-collection.xml \
+	introspect-item.xml \
+	introspect-service.xml \
+	introspect-session.xml
+
+EXTRA_DIST = \
+	$(schemas_in_files) \
+	$(introspect_DATA)
 
+CLEANFILES = $(schemas_DATA)
diff --git a/daemon/data/introspect-collection.xml b/daemon/data/introspect-collection.xml
new file mode 100644
index 0000000..9fb57ec
--- /dev/null
+++ b/daemon/data/introspect-collection.xml
@@ -0,0 +1,58 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+	"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node>
+
+	<interface name="org.freedesktop.DBus.Introspectable">
+		<method name="Introspect">
+			<arg name="data" direction="out" type="s"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.DBus.Properties">
+		<method name="Get">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="propname" direction="in" type="s"/>
+			<arg name="value" direction="out" type="v"/>
+		</method>
+		<method name="Set">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="propname" direction="in" type="s"/>
+			<arg name="value" direction="in" type="v"/>
+		</method>
+		<method name="GetAll">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="props" direction="out" type="a{sv}"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.Secrets.Collection">
+		<property name="Items" type="ao" access="read"/>
+		<property name="Private" type="s" access="read"/>
+		<property name="Label" type="s" access="readwrite"/>
+		<property name="Locked" type="s" access="read"/>
+		<property name="Created" type="t" access="read"/>
+		<property name="Modified" type="t" access="read"/>
+		<method name="Delete">
+		</method>
+		<method name="SearchItems">
+			<arg name="attributes" type="a{ss}" direction="in"/>
+			<arg name="results" type="ao" direction="out"/>
+		</method>
+		<method name="CreateItem">
+			<arg name="attributes" type="a{ss}" direction="in"/>
+			<arg name="label" type="s" direction="in"/>
+			<arg name="replace" type="b" direction="in"/>
+			<arg name="item" type="o" direction="out"/>
+		</method>
+		<signal name="ItemCreated">
+			<arg name="item" type="o"/>
+		</signal>
+		<signal name="ItemDeleted">
+			<arg name="item" type="o"/>
+		</signal>
+		<signal name="ItemChanged">
+			<arg name="item" type="o"/>
+		</signal>
+	</interface>
+
+</node>
diff --git a/daemon/data/introspect-item.xml b/daemon/data/introspect-item.xml
new file mode 100644
index 0000000..7e0fc09
--- /dev/null
+++ b/daemon/data/introspect-item.xml
@@ -0,0 +1,39 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+	"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node>
+
+	<interface name="org.freedesktop.DBus.Introspectable">
+		<method name="Introspect">
+			<arg name="data" direction="out" type="s"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.DBus.Properties">
+		<method name="Get">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="propname" direction="in" type="s"/>
+			<arg name="value" direction="out" type="v"/>
+		</method>
+		<method name="Set">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="propname" direction="in" type="s"/>
+			<arg name="value" direction="in" type="v"/>
+		</method>
+		<method name="GetAll">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="props" direction="out" type="a{sv}"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.Secrets.Item">
+		<property name="Locked" type="b" access="read"/>
+		<property name="Attributes" type="a{ss}" access="readwrite"/>
+		<property name="Label" type="s" access="readwrite"/>
+		<property name="Created" type="t" access="read"/>
+		<property name="Modified" type="t" access="read"/>
+		<method name="Delete">
+		</method>
+	</interface>
+
+
+</node>
diff --git a/daemon/data/introspect-service.xml b/daemon/data/introspect-service.xml
new file mode 100644
index 0000000..31f92cf
--- /dev/null
+++ b/daemon/data/introspect-service.xml
@@ -0,0 +1,76 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+	"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node>
+
+	<interface name="org.freedesktop.DBus.Introspectable">
+		<method name="Introspect">
+			<arg name="data" direction="out" type="s"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.DBus.Properties">
+		<method name="Get">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="propname" direction="in" type="s"/>
+			<arg name="value" direction="out" type="v"/>
+		</method>
+		<method name="Set">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="propname" direction="in" type="s"/>
+			<arg name="value" direction="in" type="v"/>
+		</method>
+		<method name="GetAll">
+			<arg name="interface" direction="in" type="s"/>
+			<arg name="props" direction="out" type="a{sv}"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.Secrets.Service">
+
+		<property name="Collections" type="ao" access="read"/>
+		<property name="DefaultCollection" type="o" access="readwrite"/>
+
+		<method name="OpenSession">
+			<arg name="result" type="o" direction="out"/>
+		</method>
+
+		<method name="CreateCollection">
+			<arg name="label" type="s" direction="in"/>
+			<arg name="private" type="b" direction="in"/>
+		</method>
+
+		<method name="LockService">
+		</method>
+
+		<method name="SearchItems">
+			<arg name="attributes" type="a{ss}" direction="in"/>
+			<arg name="unlocked" type="ao" direction="out"/>
+			<arg name="locked" type="ao" direction="out"/>
+		</method>
+
+		<signal name="CollectionCreated">
+			<arg name="collection" type="o"/>
+		</signal>
+
+		<signal name="CollectionDeleted">
+			<arg name="collection" type="o"/>
+		</signal>
+
+		<method name="BeginAuthenticate">
+			<arg name="objects" type="ao" direction="in"/>
+			<arg name="window-id" type="s" direction="in"/>
+		</method>
+
+		<method name="CompleteAuthenticate">
+			<arg name="objects" type="ao" direction="in"/>
+			<arg name="authenticated" type="ao" direction="in"/>
+		</method>
+
+		<signal name="Authenticated">
+			<arg name="object" type="o"/>
+			<arg name="success" type="b"/>
+		</signal>
+
+	</interface>
+
+</node>
diff --git a/daemon/data/introspect-session.xml b/daemon/data/introspect-session.xml
new file mode 100644
index 0000000..1d777b5
--- /dev/null
+++ b/daemon/data/introspect-session.xml
@@ -0,0 +1,34 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+	"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node>
+
+	<interface name="org.freedesktop.DBus.Introspectable">
+		<method name="Introspect">
+			<arg name="data" direction="out" type="s"/>
+		</method>
+	</interface>
+
+	<interface name="org.freedesktop.Secrets.Session">
+		<method name="Close">
+		</method>
+		<method name="Negotiate">
+			<arg name="algorithm" type="s" direction="in"/>
+			<arg name="input" type="v" direction="in"/>
+			<arg name="output" type="v" direction="out"/>
+			<arg name="complete" type="b" direction="out"/>
+		</method>
+		<method name="GetSecret">
+			<arg name="item" type="o" direction="in"/>
+			<arg name="secret" type="(sayay)" direction="out"/>
+		</method>
+		<method name="SetSecret">
+			<arg name="item" type="o" direction="in"/>
+			<arg name="secret" type="(sayay)" direction="in"/>
+		</method>
+		<method name="GetSecrets">
+			<arg name="items" type="ao" direction="in"/>
+			<arg name="secrets" type="a{o(sayay)}" direction="out"/>
+		</method>
+	</interface>
+
+</node>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]