[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:
https://github.com/MythTV/mythtv/commit/681a33766aeed02f63295a8a613c5e70cb5b714d

as used in UpdateVideoMetaData:
https://github.com/MythTV/mythtv/blob/aac69a9f9a41bd32aedf7de4b7f2dae141a234b4/mythtv/programs/mythbackend/services/video.cpp#L503


More information about the mythtv-dev mailing list