Re: [gupnp] Introspection is here!

From: Jorn Baayen <jorn@openedhand.com>
Date: Wed Jul 04 2007 - 05:05:46 EDT

On Wed, 2007-07-04 at 10:43 +0300, ذیشان ءلی (Zeeshan Ali) wrote:
> Hey!
>
> On 7/4/07, Jorn Baayen <jorn@openedhand.com> wrote:
> > > What initial event message? I am sorry i didn't get it.
> >
> > Whenever GUPnPService accepts a subscription from a client, it sends the
> > client an initial event message containing the values of all state
> > variables. Now in order to find out what state variables exist, we need
> > introspection (or additional GUPnPService API to have the implementer
> > specify these).
>
> Ah that initial event. Most of the clients are specific and hence
> they know what state variables they should be concerned about so they
> won't need introspection but OTOH all generic clients like device-spy
> would need such info. Plan to write a generic client? :P

We're not talking about clients here but about service
implementations :)
The service implementation code handles subscription and needs to send
out the initial event message at appropriate moments. To find out the
value of a state variable, the service object emits a 'query-variable'
signal.. but it still needs to take a list of all state variables from
somewhere. I thought of using introspection for that in order to keep
the API as simple as possible.

Cheers,

Jorn

--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com
Received on Wed, 04 Jul 2007 11:05:46 +0200

This archive was generated by hypermail 2.1.8 : Wed Jul 04 2007 - 06:00:06 EDT