OpenClovis Logo

clAlarmUtils.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : alarm
21  * File : clAlarmUtils.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * This module contains Alarm Service utility related APIs
28  *
29  *****************************************************************************/
30 
31 #ifndef _CL_ALARM_UTIL_H
32 #define _CL_ALARM_UTIL_H
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #include <clCommon.h>
39 #include <clCommonErrors.h>
40 #include <clCorMetaData.h>
41 
42 
62 typedef struct ClAlarmUtilTlv{
74  ClUint32T length;
80  ClPtrT value;
82 
83 typedef struct ClAlarmUtilTlv *ClAlarmUtilTlvPtrT;
84 
85 
97 typedef struct ClAlarmUtilTlvInfo{
102  ClUint32T numTlvs;
108  ClAlarmUtilTlvPtrT pTlv;
110 
112 
124 typedef struct ClAlarmUtilPayLoad{
135  ClUint32T numTlvs;
141  ClAlarmUtilTlvPtrT pTlv;
143 
145 
156 {
170  ClAlarmUtilPayLoadPtrT pPayload;
172 
174 
212 ClRcT clAlarmUtilPayloadFlatten(ClAlarmUtilPayLoadListPtrT pPayLoadList, ClUint32T *pSize, ClUint8T **ppBuf);
213 
250 ClRcT clAlarmUtilPayLoadExtract(ClUint8T *pBuf, ClUint32T size, ClAlarmUtilPayLoadListT **ppPayloadList);
251 
274 void clAlarmUtilPayloadBufFree(ClUint8T *pBuf);
275 
302 
303 
304 ClRcT
305 clAlarmClientDebugRegister (CL_OUT ClHandleT * pAlarmDebugHandle);
306 
307 ClRcT
308 clAlarmClientDebugDeregister (CL_IN ClHandleT alarmDebugHandle);
309 
310 #ifdef __cplusplus
311 }
312 #endif
313 
314 #endif /*_CL_ALARM_UTIL_H */
315 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen