[gnome-online-accounts] Generate stubs for the dleyna-server D-Bus API



commit 168efe683ee2da14d6bfbf34f77fada3f1cadf8e
Author: Pranav Kant <pranav913 gmail com>
Date:   Tue Jun 3 16:44:35 2014 +0530

    Generate stubs for the dleyna-server D-Bus API
    
    These will be useful for adding a GoaMediaServerProvider.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730890

 src/goabackend/Makefile.am                    |   33 ++++++++++++++++++++++++
 src/goabackend/goadleynaservermanager.xml     |   34 +++++++++++++++++++++++++
 src/goabackend/goadleynaservermediadevice.xml |   27 +++++++++++++++++++
 3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/Makefile.am b/src/goabackend/Makefile.am
index ab41d6d..38a4f8d 100644
--- a/src/goabackend/Makefile.am
+++ b/src/goabackend/Makefile.am
@@ -55,6 +55,15 @@ libgoa_backend_1_0_la_HEADERS =                                              \
        goaprovider.h                                                   \
        $(NULL)
 
+libgoa_backend_1_0_la_built_sources =                                          \
+       goadleynaservermanager.h                goadleynaservermanager.c        \
+       goadleynaservermediadevice.h            goadleynaservermediadevice.c    \
+       $(NULL)
+
+nodist_libgoa_backend_1_0_la_SOURCES =                                 \
+       $(libgoa_backend_1_0_la_built_sources)                          \
+       $(NULL)
+
 libgoa_backend_1_0_la_SOURCES =                                                \
        goabackend.h                                                    \
        goabackendtypes.h                                               \
@@ -88,6 +97,29 @@ libgoa_backend_1_0_la_SOURCES =                                              \
        $(top_builddir)/src/goaidentity/org.freedesktop.realmd.c        \
        $(NULL)
 
+BUILT_SOURCES =                                                                \
+       $(libgoa_backend_1_0_la_built_sources)                          \
+       $(NULL)
+
+EXTRA_DIST +=                                                          \
+       goadleynaservermanager.xml                                      \
+       goadleynaservermediadevice.xml                                  \
+       $(NULL)
+
+goadleynaservermanager.h goadleynaservermanager.c: goadleynaservermanager.xml
+       $(AM_V_GEN)gdbus-codegen                                                \
+               --c-namespace DleynaServer                                      \
+               --generate-c-code goadleynaservermanager                        \
+               --interface-prefix com.intel.dLeynaServer.                      \
+               $<
+
+goadleynaservermediadevice.h goadleynaservermediadevice.c: goadleynaservermediadevice.xml
+       $(AM_V_GEN)gdbus-codegen                                                                \
+               --c-namespace DleynaServer                                                      \
+               --generate-c-code goadleynaservermediadevice                                    \
+               --interface-prefix com.intel.dLeynaServer.                                      \
+               $<
+
 if BUILD_KERBEROS
 libgoa_backend_1_0_la_SOURCES +=                                       \
        goakerberosprovider.h           goakerberosprovider.c
@@ -134,6 +166,7 @@ pkgconfig_DATA = goa-backend-1.0.pc
 # ----------------------------------------------------------------------------------------------------
 
 CLEANFILES += \
+       $(BUILT_SOURCES) \
        $(enum_built_sources) \
        $(NULL)
 
diff --git a/src/goabackend/goadleynaservermanager.xml b/src/goabackend/goadleynaservermanager.xml
new file mode 100644
index 0000000..7b9ab91
--- /dev/null
+++ b/src/goabackend/goadleynaservermanager.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";>
+
+<!--
+  Copyright (C) 2014 Pranav Kant
+
+  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, see <http://www.gnu.org/licenses/>.
+-->
+
+<node>
+  <interface name="com.intel.dLeynaServer.Manager">
+    <method name="GetServers">
+      <arg name="Servers" type="ao" direction="out" />
+    </method>
+    <signal name="FoundServer">
+      <arg type="o" name="Path" />
+    </signal>
+    <signal name="LostServer">
+      <arg type="o" name="Path" />
+    </signal>
+  </interface>
+</node>
diff --git a/src/goabackend/goadleynaservermediadevice.xml b/src/goabackend/goadleynaservermediadevice.xml
new file mode 100644
index 0000000..cc8767a
--- /dev/null
+++ b/src/goabackend/goadleynaservermediadevice.xml
@@ -0,0 +1,27 @@
+<!DOCTYPE node PUBLIC
+"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+
+<!--
+  Copyright (C) 2014 Pranav Kant
+
+  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, see <http://www.gnu.org/licenses/>.
+-->
+
+<node>
+  <interface name="com.intel.dLeynaServer.MediaDevice">
+    <property type="s" name="UDN" access="read" />
+    <property type="s" name="FriendlyName" access="read" />
+  </interface>
+</node>


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