Music Hub  ..
A session-wide music playback service
client_death_observer.cpp
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Thomas Voß <thomas.voss@canonical.com>
17  */
18 
20 
25 
26 namespace media = core::ubuntu::media;
27 
28 // Accesses the default client death observer implementation for the platform.
30 {
32  switch (b)
33  {
34  case media::AVBackend::Backend::hybris:
36  case media::AVBackend::Backend::mir:
37  case media::AVBackend::Backend::none:
38  MH_WARNING(
39  "No video backend selected. Client disconnect functionality won't work."
40  );
42  default:
43  MH_INFO("Invalid or no A/V backend specified, using \"hybris\" as a default.");
45  }
46 }
#define MH_INFO(...)
Definition: logger.h:125
std::shared_ptr< ClientDeathObserver > Ptr
#define MH_WARNING(...)
Definition: logger.h:127
static Backend get_backend_type()
Returns the type of audio/video decoding/encoding backend being used.
Definition: backend.cpp:26
ClientDeathObserver::Ptr platform_default_client_death_observer()