Rename MpdHandler to MpdFrontend
This commit is contained in:
parent
97449f7d43
commit
da441b36b3
8
docs/api/mpd.rst
Normal file
8
docs/api/mpd.rst
Normal file
@ -0,0 +1,8 @@
|
||||
************************************************
|
||||
:mod:`mopidy.mpd` -- MPD protocol implementation
|
||||
************************************************
|
||||
|
||||
.. automodule:: mopidy.mpd.frontend
|
||||
:synopsis: Our implementation of the MPD protocol.
|
||||
:members:
|
||||
:undoc-members:
|
||||
@ -1,8 +0,0 @@
|
||||
********************************************************
|
||||
:mod:`mopidy.mpd.handler` -- MPD protocol implementation
|
||||
********************************************************
|
||||
|
||||
.. automodule:: mopidy.mpd.handler
|
||||
:synopsis: Our implementation of the MPD protocol.
|
||||
:members:
|
||||
:undoc-members:
|
||||
@ -27,16 +27,16 @@ not Mopidy. The red nodes lives in the ``main`` process (running an
|
||||
"CoreProcess" [ color="blue" ]
|
||||
"DespotifyBackend" [ color="blue" ]
|
||||
"AlsaMixer" [ color="blue" ]
|
||||
"MpdHandler" [ color="blue" ]
|
||||
"MpdFrontend" [ color="blue" ]
|
||||
"MpdServer" [ color="red" ]
|
||||
"MpdSession" [ color="red" ]
|
||||
"__main__" -> "CoreProcess" [ label="create" ]
|
||||
"__main__" -> "MpdServer" [ label="create" ]
|
||||
"CoreProcess" -> "DespotifyBackend" [ label="create" ]
|
||||
"CoreProcess" -> "MpdHandler" [ label="create" ]
|
||||
"CoreProcess" -> "MpdFrontend" [ label="create" ]
|
||||
"MpdServer" -> "MpdSession" [ label="create one per client" ]
|
||||
"MpdSession" -> "MpdHandler" [ label="pass MPD requests to" ]
|
||||
"MpdHandler" -> "DespotifyBackend" [ label="use backend API" ]
|
||||
"MpdSession" -> "MpdFrontend" [ label="pass MPD requests to" ]
|
||||
"MpdFrontend" -> "DespotifyBackend" [ label="use backend API" ]
|
||||
"DespotifyBackend" -> "AlsaMixer" [ label="create and use mixer API" ]
|
||||
"DespotifyBackend" -> "spytify" [ label="use Python wrapper" ]
|
||||
"spytify" -> "despotify" [ label="use C library" ]
|
||||
|
||||
@ -17,7 +17,7 @@ import sys
|
||||
|
||||
from mopidy.mpd import MpdAckError, MpdNotImplemented
|
||||
|
||||
logger = logging.getLogger('mpd.handler')
|
||||
logger = logging.getLogger('mopidy.mpd.frontend')
|
||||
|
||||
_request_handlers = {}
|
||||
|
||||
@ -41,7 +41,7 @@ def flatten(the_list):
|
||||
result.append(element)
|
||||
return result
|
||||
|
||||
class MpdHandler(object):
|
||||
class MpdFrontend(object):
|
||||
def __init__(self, backend=None):
|
||||
self.backend = backend
|
||||
self.command_list = False
|
||||
@ -27,8 +27,8 @@ CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s [%(process)d:%(threadName)s]
|
||||
|
||||
#: Protocol frontend to use. Default::
|
||||
#:
|
||||
#: FRONTEND = u'mopidy.mpd.handler.MpdHandler'
|
||||
FRONTEND = u'mopidy.mpd.handler.MpdHandler'
|
||||
#: FRONTEND = u'mopidy.mpd.frontend.MpdFrontend'
|
||||
FRONTEND = u'mopidy.mpd.frontend.MpdFrontend'
|
||||
|
||||
#: Sound mixer to use. See :mod:`mopidy.mixers` for all available mixers.
|
||||
#:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user