[mythtv] [PATCH] revised/added protocol extension patch -- ignore last one

David Shay david at shay.net
Sun May 1 04:53:35 UTC 2005


OK, I've decided to go ahead and complete the protocol extensions that I would 
need for most playback functions from alternate frontends.  Here are the 
additional commands and how they work:

QUERY_SQL [query statement]
    Returns all rows and columns of the resultset in []:[] delimited form
QUERY_COMMBREAK [chanid] [starttime in seconds since 1/1/1970]
    Returns the set of all commercial breaks.  Each set has 3 values:
    [4 or 5] -- commercial break type (4 = start, 5 = stop)
    2 values representing a long-long encoded in usual fashion
    All values are []:[] delimited
QUERY_CUTLIST [chanid] [starttime in seconds since 1/1/1970]
    As above, but returns the cutlist.  0 = start, 1 = stop of each section
QUERY_BOOKMARK [chanid] [starttime in seconds since 1/1/1970]
    Returns a long-long, encoded as usual with 2 values []:[] separated
SET_BOOKMARK [chanid] [starttime] [long value 1] [long value 2]
   Sets the bookmark, using the 2 values to form one long-long

All commands (except QUERY_SQL) use the ProgramInfo functions to get/set the 
data, so the logic is still in one place.

Comments,thoughts before I proceed?  Next steps would be to add functions to 
get guide data, in order to emulate the front-end guide, then add a function 
to schedule a recording.  Scheduling the recording is a pretty vital one.  If 
we can make that a protocol function, then MythWeb could use it as well, so 
that there would be much less dependence on the database structure for adding 
a scheduled program.

Thanks.

I've re-attached the mythweb protocol version update as well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: protocol3.diff
Type: text/x-diff
Size: 8025 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050501/4bbfe3c0/protocol3.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythwebproto.diff
Type: text/x-diff
Size: 771 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050501/4bbfe3c0/mythwebproto.bin


More information about the mythtv-dev mailing list