RDK Documentation (Open Sourced RDK Components)
dsMgrInternal.h
Go to the documentation of this file.
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  * @file dsMgrInternal.h
24  *
25  * @defgroup IARMBUS_DS_MGR DS Manager
26  * @ingroup IARM_MGR_RPC
27  *
28  * DS (Device Settings) Manager is responsible for managing the following operations,
29  * - Audio Output Ports (Volume, Mute, etc.)
30  * - Video Ouptut Ports (Resolutions, Aspect Ratio, etc.)
31  * - Front Panel Indicators
32  * - Zoom Settings
33  * - Display (Aspect Ratio, EDID data etc.)
34  * - General Host configuration (Power managements, event management etc.)
35  */
36 
37 /**
38 * @defgroup iarmmgrs
39 * @{
40 * @defgroup dsmgr
41 * @{
42 **/
43 
44 
45 #ifndef _IARM_DSMGR_INTERNAL_
46 #define _IARM_DSMGR_INTERNAL_
47 #include "libIARM.h"
48 #include "libIBusDaemon.h"
49 
50 #define IARM_BUS_DSMGR_NAME "DSMgr"
51 #include <string.h>
52 #ifdef RDK_LOGGER_ENABLED
53 #include "rdk_debug.h"
54 #include "iarmUtil.h"
55 
56 
57 extern int b_rdk_logger_enabled;
58 
59 
60 #define INT_DEBUG(FORMAT, ...) if(b_rdk_logger_enabled) {\
61 RDK_LOG(RDK_LOG_DEBUG, "LOG.RDK.DSMGR", FORMAT , __VA_ARGS__);\
62 }\
63 else\
64 {\
65 printf(FORMAT, __VA_ARGS__);\
66 }
67 
68 #define INT_ERROR(FORMAT, ...) if(b_rdk_logger_enabled) {\
69 RDK_LOG(RDK_LOG_ERROR, "LOG.RDK.DSMGR", FORMAT , __VA_ARGS__);\
70 }\
71 else\
72 {\
73 printf(FORMAT, __VA_ARGS__);\
74 }
75 
76 #define INT_INFO(FORMAT, ...) if(b_rdk_logger_enabled) {\
77 RDK_LOG(RDK_LOG_INFO, "LOG.RDK.DSMGR", FORMAT , __VA_ARGS__);\
78 }\
79 else\
80 {\
81 printf(FORMAT, __VA_ARGS__);\
82 }
83 
84 #define INT_WARNING(FORMAT, ...) if(b_rdk_logger_enabled) {\
85 RDK_LOG(RDK_LOG_WARN, "LOG.RDK.DSMGR", FORMAT , __VA_ARGS__);\
86 }\
87 else\
88 {\
89 printf(FORMAT, __VA_ARGS__);\
90 }
91 
92 #else
93 
94 #define INT_DEBUG(FORMAT, ...) printf(FORMAT, ##__VA_ARGS__)
95 #define INT_ERROR(FORMAT, ...) printf(FORMAT, ##__VA_ARGS__)
96 #define INT_INFO(FORMAT, ...) printf(FORMAT, ##__VA_ARGS__)
97 #define INT_WARNING(FORMAT, ...) printf(FORMAT, ##__VA_ARGS__)
98 
99 #endif
100 
101 
102 extern IARM_Bus_Daemon_SysMode_t isEAS; // Default is Normal Mode
103 
104 IARM_Result_t DSMgr_Start();
105 IARM_Result_t DSMgr_Loop();
106 IARM_Result_t DSMgr_Stop(void);
107 
108 
109 #endif
110 
111 
112 /** @} */
113 /** @} */
rdk_debug.h