[mythtv-firehose] mythtv branch master updated by stuartm. v0.28-pre-1437-g40a2a13

Git Repo Owner noreply at mythtv.org
Sat May 31 08:59:58 UTC 2014


The branch, master has been updated on the
mythtv repository by gitolite user stuartm.
       via  40a2a13869d9c19bd1d122d2fdae26f20885a2dd (commit)
      from  8116fde7f46494dda0c7ca7658c3bf22e9340b34 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 40a2a13869d9c19bd1d122d2fdae26f20885a2dd
Author:    Stuart Morgan <smorgan at mythtv.org> at Fri, 30 May 2014 21:28:41 +0100
Committer: Stuart Morgan <smorgan at mythtv.org> at Sat, 31 May 2014 05:30:07 +0100
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=40a2a13869d9c19bd1d122d2fdae26f20885a2dd

Services API: Add GetFrontends endpoint which returns a list of frontends connected to the backend.
The endpoint takes a boolean 'OnLine' arg which limits the list to
only frontends which are currently connected, excluding those which
have connected but are presently offline.

The frontend information return is limited to it's hostname (Name) and
it's IP address. This should improve in time.

The frontend IP (and port 6547) enables a services client to connect
to the frontend http service where they can then fetch further
frontend information or control aspects of the frontend.

This adds a BackendContext global object to the backend which
maintains a list of all frontends which connect to the backend and
those which are presently connected. This is an incomplete
implementation as we don't yet store the frontend information in the
database so that it will persist through backend restarts.

Ultimately the BackendContext may evole to track other information.



-----------------------------------------------------------------------

Summary of changes:
 .../datacontracts/frontend.h                       |   75 +++++++++++++++++
 .../datacontracts/frontendList.h                   |   88 ++++++++++++++++++++
 .../libmythservicecontracts.pro                    |    1 +
 .../services/mythServices.h                        |    4 +
 mythtv/programs/mythbackend/backendcontext.cpp     |   76 +++++++++++++++++
 mythtv/programs/mythbackend/backendcontext.h       |   32 +++++++-
 mythtv/programs/mythbackend/main_helpers.cpp       |    6 ++
 mythtv/programs/mythbackend/mainserver.cpp         |   19 ++++
 mythtv/programs/mythbackend/services/guide.cpp     |    2 +-
 mythtv/programs/mythbackend/services/myth.cpp      |   26 ++++++
 mythtv/programs/mythbackend/services/myth.h        |   11 +++
 11 files changed, 338 insertions(+), 2 deletions(-)
 create mode 100644 mythtv/libs/libmythservicecontracts/datacontracts/frontend.h
 create mode 100644 mythtv/libs/libmythservicecontracts/datacontracts/frontendList.h

-- 



More information about the mythtv-firehose mailing list