[gnome-color-manager] Add a DBus interface description that other applications can use
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Add a DBus interface description that other applications can use
- Date: Fri, 6 Nov 2009 10:39:13 +0000 (UTC)
commit 78479adeceb9bcf69dc806ae54a2c00806544a6b
Author: Richard Hughes <richard hughsie com>
Date: Fri Nov 6 10:12:35 2009 +0000
Add a DBus interface description that other applications can use
src/.gitignore | 1 +
src/Makefile.am | 13 +++++++++
src/org.gnome.ColorManager.xml | 57 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/src/.gitignore b/src/.gitignore
index 0cbcc82..d33f1a6 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -5,4 +5,5 @@ gcm-apply
gcm-import
gcm-prefs
gcm-inspect
+org.gnome.ColorManager.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 7af6248..3e76d17 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -119,6 +119,13 @@ gcm_prefs_LDADD = \
gcm_prefs_CFLAGS = \
$(WARNINGFLAGS_C)
+org.gnome.ColorManager.h: org.gnome.ColorManager.xml
+ $(LIBTOOL) --mode=execute dbus-binding-tool \
+ --prefix=gpk_dbus \
+ --mode=glib-server \
+ --output=org.gnome.ColorManager.h \
+ $(srcdir)/org.gnome.ColorManager.xml
+
clean-local:
rm -f *~
@@ -128,3 +135,9 @@ MAINTAINERCLEANFILES = \
*~ \
Makefile.in
+EXTRA_DIST = \
+ org.gnome.ColorManager.xml
+
+BUILT_SOURCES = \
+ org.gnome.ColorManager.h
+
diff --git a/src/org.gnome.ColorManager.xml b/src/org.gnome.ColorManager.xml
new file mode 100644
index 0000000..36f9d39
--- /dev/null
+++ b/src/org.gnome.ColorManager.xml
@@ -0,0 +1,57 @@
+<!DOCTYPE node PUBLIC
+"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" [
+ <!ENTITY ERROR_GENERAL "org.gnome.ColorManager.Denied">
+]>
+<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
+
+ <interface name="org.gnome.ColorManager">
+ <doc:doc>
+ <doc:description>
+ <doc:para>
+ The interface used for quering color parameters for the session.
+ </doc:para>
+ </doc:description>
+ </doc:doc>
+
+ <!--*****************************************************************************************-->
+ <method name="GetProfilesForDevice">
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
+ <doc:doc>
+ <doc:description>
+ <doc:para>
+ Finds out if the package is installed.
+ </doc:para>
+ </doc:description>
+ </doc:doc>
+ <arg type="s" name="sysfs_path" direction="in">
+ <doc:doc>
+ <doc:summary>
+ <doc:para>
+ A sysfs path, e.g. <doc:tt>/sys/class/usb/hiddev0</doc:tt>
+ </doc:para>
+ </doc:summary>
+ </doc:doc>
+ </arg>
+ <arg type="s" name="options" direction="in">
+ <doc:doc>
+ <doc:summary>
+ <doc:para>
+ Options to give hints about what profiles to choose. Currently unused.
+ </doc:para>
+ </doc:summary>
+ </doc:doc>
+ </arg>
+ <arg type="as" name="profiles" direction="out">
+ <doc:doc>
+ <doc:summary>
+ <doc:para>
+ A list of filenames of suitable profiles to use with this device.
+ </doc:para>
+ </doc:summary>
+ </doc:doc>
+ </arg>
+ </method>
+ </interface>
+</node>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]