interest in a new Services-API (+threading support)

51 views
Skip to first unread message

bluegaspode

unread,
Jul 15, 2012, 4:41:08 PM7/15/12
to up...@googlegroups.com
I'm just starting with UPNP and this library (which is great and seems to be the only one available right now), but struggling a bit with the current API.
First of all it's very cumbersome to define all output parameters as mutable objects. Seconds - one should not be doing synchronous network calls from the UIThread (as done in the simple demo).

What I'd like to do (at least for myself) is the following:
- update the parser to generate real *Out-Objects.
- make all action calls asynchronous, one would need to specify a callback block which gets the result object.

A call would then look like the following
[service doSomeCallWithInParam:inParam1 inParam2: inParam2 callback:^(ServiceOut* out) {
   doSomeThingWithOut()} callBackInMainThread:YES;
} ]

I think such a change would not be too difficult, one probably only had to change the scpdcodegenerator.

Is there interest in sharing such a solution or should I be doing that on my own?
Any proposals of doing it differently/better?
Any plans of moving to git to make it easier to create custom branches and contributions?
Reply all
Reply to author
Forward
0 new messages