formalized naming
This commit is contained in:
@@ -513,7 +513,7 @@ INT8 ir_tv_lib_open(UINT8 *binary, UINT16 binary_length);
|
||||
*
|
||||
* return: IR_DECODE_SUCCEEDED / IR_DECODE_FAILED
|
||||
*/
|
||||
extern INT8 ir_tv_lib_parse(UINT8 irda_hex_encode);
|
||||
extern INT8 ir_tv_lib_parse(UINT8 ir_hex_encode);
|
||||
|
||||
/*
|
||||
* function ir_tv_lib_control
|
||||
@@ -587,7 +587,7 @@ extern INT8 get_supported_wind_direction(UINT8* supported_wind_direction);
|
||||
|
||||
// private extern function
|
||||
#if (defined BOARD_PC || defined BOARD_PC_DLL)
|
||||
extern void irda_lib_free_inner_buffer();
|
||||
extern void ir_lib_free_inner_buffer();
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////// Utils End /////////////////////////////////////////////////
|
||||
|
||||
@@ -19,7 +19,7 @@ extern "C"
|
||||
|
||||
#if defined BOARD_ANDROID
|
||||
#include <android/log.h>
|
||||
#define LOG_TAG "irda_decode"
|
||||
#define LOG_TAG "ir_decode"
|
||||
#endif
|
||||
|
||||
#define TRUE 1
|
||||
@@ -33,12 +33,12 @@ typedef signed int INT;
|
||||
typedef unsigned int UINT;
|
||||
typedef int BOOL;
|
||||
|
||||
#define irda_malloc(A) malloc(A)
|
||||
#define irda_free(A) free(A)
|
||||
#define irda_memcpy(A, B, C) memcpy(A, B, C)
|
||||
#define irda_memset(A, B, C) memset(A, B, C)
|
||||
#define irda_strlen(A) strlen(A)
|
||||
#define IR_PRINTF printf
|
||||
#define ir_malloc(A) malloc(A)
|
||||
#define ir_free(A) free(A)
|
||||
#define ir_memcpy(A, B, C) memcpy(A, B, C)
|
||||
#define ir_memset(A, B, C) memset(A, B, C)
|
||||
#define ir_strlen(A) strlen(A)
|
||||
#define ir_printf printf
|
||||
#define USER_DATA_SIZE 2048
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -40,7 +40,7 @@ enum
|
||||
/*
|
||||
* global type definitions
|
||||
*/
|
||||
typedef enum irda_flags
|
||||
typedef enum ir_flags
|
||||
{
|
||||
IRDA_BOOT = 0,
|
||||
IRDA_STOP,
|
||||
@@ -63,25 +63,25 @@ typedef enum irda_flags
|
||||
IRDA_E,
|
||||
IRDA_F,
|
||||
IRDA_MAX = 20,
|
||||
} irda_flags_t;
|
||||
} ir_flags_t;
|
||||
|
||||
typedef struct irda_data
|
||||
typedef struct ir_data
|
||||
{
|
||||
UINT8 bits;
|
||||
UINT8 lsb;
|
||||
UINT8 mode;
|
||||
UINT8 index;
|
||||
} irda_data_t;
|
||||
} ir_data_t;
|
||||
|
||||
#if !defined BOARD_51
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
typedef struct irda_cycles
|
||||
typedef struct ir_cycles
|
||||
{
|
||||
UINT8 flag;
|
||||
UINT16 mask;
|
||||
UINT16 space;
|
||||
} irda_cycles_t;
|
||||
} ir_cycles_t;
|
||||
#if !defined BOARD_51
|
||||
#pragma pack()
|
||||
#endif
|
||||
@@ -191,11 +191,11 @@ typedef enum cm_key_value
|
||||
CM_KEY_MAX,
|
||||
} cm_key_value_t;
|
||||
|
||||
typedef struct irda_data_tv
|
||||
typedef struct ir_data_tv
|
||||
{
|
||||
char magic[4];
|
||||
UINT8 per_keycode_bytes;
|
||||
} irda_data_tv_t;
|
||||
} ir_data_tv_t;
|
||||
|
||||
|
||||
extern INT8 tv_lib_open(UINT8* binary, UINT16 binary_length);
|
||||
|
||||
Reference in New Issue
Block a user