Skip to content
  • Romain Vimont's avatar
    media source: introduce media source/tree API · 3e0cc194
    Romain Vimont authored and Thomas Guillem's avatar Thomas Guillem committed
    
    
    Add an API to manage "services discovery" easily from UI clients.
    
    A "media source provider" allows to retrieve media sources (each
    associated to a services discovery module).
    
    A media source holds a media tree, containing both the media detected by
    the services discovery module and the media detected by preparsing.
    Clients may listen to the tree to be notified of changes.
    
    A client may retrieve a media source at any time and listen to its
    media tree, even if it is already populated, without race condition.
    
    Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
    3e0cc194