RDK Documentation (Open Sourced RDK Components)
dsMgr.c
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 
22 /**
23 * @defgroup devicesettings
24 * @{
25 * @defgroup rpc
26 * @{
27 **/
28 
29 
30 #include "dsMgr.h"
31 #include "libIARM.h"
32 #include "dsError.h"
33 #include "libIARM.h"
34 #include "dsHost.h"
35 #include <stdlib.h>
36 #include <stdio.h>
37 #include "dsserverlogger.h"
38 
39 #include <iostream>
40 #include "hostPersistence.hpp"
41 
42 
43 extern IARM_Result_t dsAudioMgr_init();
44 extern IARM_Result_t dsVideoPortMgr_init();
45 extern IARM_Result_t dsVideoDeviceMgr_init();
46 extern IARM_Result_t dsFPDMgr_init();
47 extern IARM_Result_t dsDisplayMgr_init();
48 extern IARM_Result_t dsHostMgr_init();
49 extern IARM_Result_t dsAudioMgr_term();
50 extern IARM_Result_t dsVideoPortMgr_term();
51 extern IARM_Result_t dsVideoDeviceMgr_term();
52 extern IARM_Result_t dsFPDMgr_term();
53 extern IARM_Result_t dsDisplayMgr_term();
54 extern IARM_Result_t dsHostMgr_term();
55 extern IARM_Result_t dsHdmiInMgr_init();
56 extern IARM_Result_t dsHdmiInMgr_term();
57 extern IARM_Result_t dsCompositeInMgr_init();
58 extern IARM_Result_t dsCompositeInMgr_term();
59 
60 IARM_Result_t dsMgr_init()
61 {
62  IARM_Result_t ret = IARM_RESULT_SUCCESS;
63 
65  dsHostInit();
66  dsDisplayMgr_init();
67  dsAudioMgr_init();
68  dsVideoPortMgr_init();
69  dsVideoDeviceMgr_init();
70  dsFPDMgr_init();
71  dsHostMgr_init();
72  dsHdmiInMgr_init();
73  dsCompositeInMgr_init();
74  return ret;
75 }
76 
77 IARM_Result_t dsMgr_term()
78 {
79  IARM_Result_t ret = IARM_RESULT_SUCCESS;
80 
81  dsAudioMgr_term();
82  dsVideoPortMgr_term();
83  dsVideoDeviceMgr_term();
84  dsFPDMgr_term();
85  dsDisplayMgr_term();
86  dsHostMgr_term();
87  dsHdmiInMgr_term();
88  dsCompositeInMgr_term();
89  return ret;
90 }
91 
92 
93 /** @} */
94 /** @} */
dsHostInit
dsError_t dsHostInit()
Initialize the Host sub-system.
dsError.h
Device Settings HAL error codes.
device::HostPersistence::load
void load()
Definition: hostPersistence.cpp:133
device::HostPersistence::getInstance
static HostPersistence & getInstance(void)
Definition: hostPersistence.cpp:122