Best way to have a GDBus based object support ObjectManager interface and others?

"Othman, Ossama" <[email protected]> Mon, 8 Jun 2015 10:22:29 -0700
Newsgroups gmane.comp.gnome.devel
Message-ID <CAPyD+=AJbhW6261aDo9u6dprQefd64Nh3k2SdeV8nFFwx-k3qA@mail.gmail.com>
--===============5325254831094348182==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



--===============5325254831094348182==
Content-Type: multipart/alternative; boundary=20cf3011e35decb639051804e26b

--20cf3011e35decb639051804e26b
Content-Type: text/plain; charset=UTF-8

Hi,

I'm currently using a D-Bus API that requires objects to support a specific
interface as well as the org.freedesktop.DBus.ObjectManager interface
rooted at the same object path, e.g.:

-> /com/example
  |
  -> /com/example/object
       - org.freedesktop.DBus.ObjectManager
       - org.freedesktop.DBus.Properties
       - org.foo.Bar1

In an attempt to avoid reinventing the wheel, I'm using
GDBusObjectManagerServer to implement the necessary
org.freedesktop.DBus.ObjectManager interface.  However, I have not yet been
able to figure out how to add another interface, such as the "org.foo.Bar1"
in the above hierarchy, to GDBusObjectManagerServer the object itself.  Any
ideas?

Thanks!
-Ossama

--20cf3011e35decb639051804e26b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m currently using a D-Bus API=
 that requires objects to support a specific interface as well as the org.f=
reedesktop.DBus.ObjectManager interface rooted at the same object path, e.g=
.:</div><div><br></div><div><div><font face=3D"monospace, monospace">-&gt; =
/com/example</font></div><div><font face=3D"monospace, monospace">=C2=A0 |<=
/font></div><div><font face=3D"monospace, monospace">=C2=A0 -&gt; /com/exam=
ple/object</font></div><div><font face=3D"monospace, monospace">=C2=A0 =C2=
=A0 =C2=A0 =C2=A0- org.freedesktop.DBus.ObjectManager</font></div><div><fon=
t face=3D"monospace, monospace">=C2=A0 =C2=A0 =C2=A0 =C2=A0- org.freedeskto=
p.DBus.Properties</font></div><div><font face=3D"monospace, monospace">=C2=
=A0 =C2=A0 =C2=A0 =C2=A0- org.foo.Bar1</font></div></div><div><br></div><di=
v>In an attempt to avoid reinventing the wheel, I&#39;m using GDBusObjectMa=
nagerServer to implement the necessary org.freedesktop.DBus.ObjectManager i=
nterface.=C2=A0 However, I have not yet been able to figure out how to add =
another interface, such as the &quot;org.foo.Bar1&quot; in the above hierar=
chy, to GDBusObjectManagerServer the object itself.=C2=A0 Any ideas?</div><=
div><br></div><div>Thanks!<br>-Ossama</div><div><br></div></div>

--20cf3011e35decb639051804e26b--

--===============5325254831094348182==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnome-devel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-devel-list

--===============5325254831094348182==--