RDK Documentation (Open Sourced RDK Components)
receiverMgr.h
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 #ifndef _IARM_BUS_RECEIVERMGR_H
21 #define _IARM_BUS_RECEIVERMGR_H
22 
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28 
29 #define IARM_RECEIVER_NAME "XRE_native_receiver"
30 
31 #define IARM_RECEIVER_GET_APP_INFO "XRE_RECEIVER_getAppInfo"
32 #define IARM_RECEIVER_SET_CONNECTION_RESET "XRE_RECEIVER_setConnectionReset"
33 #define IARM_RECEIVER_IS_MINI_DIAGNOSTICS_ENABLED "XRE_RECEIVER_isMiniDiagnosticsEnabled"
34 
35 #define APP_INFO_JSON_MAX 4096
36 
37 typedef struct _AppInfoData {
38  char appInfoJson[APP_INFO_JSON_MAX];
39 } AppInfoData;
40 
41 #define CONNECTION_ID_MAX 1024
42 typedef struct _ConnectionResetData {
43  char applicationID[CONNECTION_ID_MAX];
44  char connectionID[CONNECTION_ID_MAX];
45  char connectionResetLevel[CONNECTION_ID_MAX];
47 
49  union {
50  AppInfoData appInfoData;
51  ConnectionResetData connectionResetData;
52  bool isMiniDiagnosticsEnabled;
53  } data;
54  int status;
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
62 
63 
64 
_IARM_Bus_Receiver_Param_t
Definition: receiverMgr.h:48
_AppInfoData
Definition: receiverMgr.h:37
_ConnectionResetData
Definition: receiverMgr.h:42