Hey,
On Wed, 2007-08-08 at 15:05 +0300, Zeeshan Ali wrote:
> > > One thing that I am trying to figure right now is, given a list (a
> > > GList or array) of action arguments (tuples of name, type and value)
> > > how do i turn it into a gupnp_service_proxy_send_action() call. Is the
> > > _valist exactly for such cases? Perhaps i should read on va_list..
> >
> > Hmm right, I didn't envision this would be necessary when designing the
> > API (due to its initial focus on specific service implementations). I am
> > not particularly enthusiastic about adding additional API for this (also
> > as nor DBus proxy nor Bonobo API have anything else besides va_list
> > calls for this), but because we have gotten so far already with the
> > device spy perhaps we should just add something. I guess the most
> > sensible thing to do would be to add calls taking hashtables of
> > argname-GValue pairs. What do you think?
>
> Sounds good!
Does attached patch do what you need?
It's still rather rough and in need of cleaning up but it should work.
Also do you have any naming suggestions? I don't like the "_hash" suffix
much but can't think of a better alternative.
Thanks,
Jorn
-- To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com
This archive was generated by hypermail 2.1.8 : Wed Aug 08 2007 - 16:00:06 EDT