[TIVI-2848] Fix tethering configuration.
[profile/ivi/settings-daemon.git] / lib / registrar.cpp
1 /**
2  * @file registrar.cpp
3  *
4  * @brief Settings registrar implementation.
5  *
6  * @author Ossama Othman @<ossama.othman@@intel.com@>
7  *
8  * @copyright @par
9  * Copyright 2012, 2013 Intel Corporation All Rights Reserved.
10  * @par
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation;
14  * version 2.1 of the License.
15  * @par
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Lesser General Public License for more details.
20  * @par
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
24  * Boston, MA  02110-1301  USA
25  */
26
27 #include <settingsd/registrar.hpp>
28 #include <settingsd/plugin.hpp>
29
30 #include "manager.hpp"
31
32
33 ivi::settings::registrar::registrar(ivi::settings::manager & m)
34   : manager_(m)
35 {
36 }
37
38 bool
39 ivi::settings::registrar::register_setting(std::unique_ptr<plugin> p)
40 {
41   return manager_.register_setting(std::move(p));
42 }
43
44
45 // Local Variables:
46 // mode:c++
47 // c-basic-offset:2
48 // indent-tabs-mode: nil
49 // End: