[mythtv] Services API for ChannelServices / Video Source

Roger Siddons dizygotheca at ntlworld.com
Sat Nov 2 16:55:19 UTC 2019

On Fri, 1 Nov 2019 09:49:05 -0500
David Engel <david at istwok.net> wrote:

> Also, another failing of the current API is the inability to pass an
> "unspecified" indication to the endpoint.  In some cases, it's
> possible to use an empty string or numeric 0 but that doesn't work
> everywhere where such values are valid.  It might be nice if the API
> layer could pass something like QVariants which could be tested to see
> if they are of the expected type or are "NULL".

That would be a big job, obscuring the interfaces and creating a endless
list of "this service doesn't work like it used to" bugs. It may also
break the wsdl.

The server encapsulates the type conversions to make the service
handlers more robust and simple to maintain.

Most endpoints happily use default values to determine unspecified
parameters. The few that can't can use the solution in:

as used in UpdateVideoMetaData:

More information about the mythtv-dev mailing list