First time using gdbus

From: Agustin Gimeno <hidden>
Date: 2015-09-04 19:34:11

Hi,

I started recently to work with bluez. I have already compiled bluez
without any issues.
My long term objective is to make an embedded device in linux that
works as an CT in AVRCP with 1.4 capabilities.

I started to read the example of the client and in particular i
focused in how to register an agent.
Yes, i want to understand how all this work from its bare bones.

Its the first time i use glib for something like this and its the
first time i use dbus.
I made a simple-agent by myself copying some parts of the client i
state before. Yet i do not understand how the proxy call really works.
I understand how a proxy works, between process; but what i don't get
is how the instance of main loop is tied with the calls to dbus, so
then it finally calls the handler i passed to the proxy. Or if their
are not tied at all, then how is that i get my handler call, lets say
how does that proxy works. The api call i'm using is:
g_dbus_cllient_set_proxy_handlers.

Can someone please point me in the right direction, I'm sure there are
some things I'm not getting and that is probably why i don't
understand how gdbus is working.

I got the agent to register to dbus, but i want to understand how all
this works.

Best regards,

Agustin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help