TVSystemService JNI  0.10
HAL_common.h
1 /*****************************************************************************
2  * Copyright (c) TVStorm, Inc. http://www.tvstorm.com. All rights reserved.
3  * TVSTORM PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  *
5  * $LastChangedBy: loneowl $
6  * $LastChangedDate: 2012-05-11 15:19:25 +0900 (금, 11 5월 2012) $
7  * $LastChangedRevision: 3486 $
8  * Description:
9  * Note:
10  *****************************************************************************/
11 
12 #ifndef HALCOMMON_H_
13 #define HALCOMMON_H_
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <assert.h>
20 #include <string.h>
21 #include <unistd.h>
22 
23 typedef enum
24 {
25  PROGRESS_START,
26  PROGRESS_PHASE_START,
27  PROGERSS_PHASE_PROGRESS,
28  PROGRESS_COMPLETE,
29  PROGRESS_ERROR,
30 }
31 THAL_ProgressEvent;
32 
33 typedef enum
34 {
35  PROGRESS_FLAG_REBOOT_REQUIRED = (1 << 0),
36  PROGRESS_FLAG_FORCE_REBOOT_REQUIRED = (1 << 1),
37 }
38 THAL_ProgressFlag;
39 
48 typedef void (*THAL_ProgressCallback)(THAL_ProgressEvent event,
49  const char * phaseName, int phaseNumber, int phaseTotalCount,
50  int phasePercent, int flags);
51 
52 typedef void (*THAL_ErrorCallback)(unsigned int lastError);
53 
54 typedef struct
55 {
56  char name[64];
57  char value[128];
58 }
60 
61 typedef struct
62 {
63  char mac_addr[32];
64 }
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif
Definition: HAL_common.h:61
Definition: HAL_common.h:54