implemented APIs for NO_FS case
This commit is contained in:
@@ -55,12 +55,19 @@ lp_apply_ac_parameter apply_table[AC_APPLY_MAX] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
// static functions declarations
|
// static functions declarations
|
||||||
|
#if !defined NO_FS
|
||||||
static INT8 ir_ac_file_open(const char *file_name);
|
static INT8 ir_ac_file_open(const char *file_name);
|
||||||
|
#endif
|
||||||
|
|
||||||
static INT8 ir_ac_binary_open(UINT8 *binary, UINT16 binary_length);
|
static INT8 ir_ac_binary_open(UINT8 *binary, UINT16 binary_length);
|
||||||
static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UINT8 function_code,
|
static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UINT8 function_code,
|
||||||
BOOL change_wind_direction);
|
BOOL change_wind_direction);
|
||||||
static INT8 ir_ac_binary_close();
|
static INT8 ir_ac_binary_close();
|
||||||
|
|
||||||
|
#if !defined NO_FS
|
||||||
static INT8 ir_tv_file_open(const char *file_name);
|
static INT8 ir_tv_file_open(const char *file_name);
|
||||||
|
#endif
|
||||||
|
|
||||||
static INT8 ir_tv_binary_open(UINT8 *binary, UINT16 binary_length);
|
static INT8 ir_tv_binary_open(UINT8 *binary, UINT16 binary_length);
|
||||||
static INT8 ir_tv_binary_parse(UINT8 ir_hex_encode);
|
static INT8 ir_tv_binary_parse(UINT8 ir_hex_encode);
|
||||||
static UINT16 ir_tv_control(UINT8 key, UINT16 *l_user_data);
|
static UINT16 ir_tv_control(UINT8 key, UINT16 *l_user_data);
|
||||||
@@ -218,9 +225,9 @@ void ir_lib_free_inner_buffer();
|
|||||||
// static function definitions
|
// static function definitions
|
||||||
|
|
||||||
//////// AC Begin ////////
|
//////// AC Begin ////////
|
||||||
|
#if !defined NO_FS
|
||||||
static INT8 ir_ac_file_open(const char *file_name)
|
static INT8 ir_ac_file_open(const char *file_name)
|
||||||
{
|
{
|
||||||
#if !defined NO_FS
|
|
||||||
size_t ret = 0;
|
size_t ret = 0;
|
||||||
#if !defined WIN32
|
#if !defined WIN32
|
||||||
FILE *stream = fopen(file_name, "rb");
|
FILE *stream = fopen(file_name, "rb");
|
||||||
@@ -264,9 +271,9 @@ static INT8 ir_ac_file_open(const char *file_name)
|
|||||||
binary_length = 0;
|
binary_length = 0;
|
||||||
return IR_DECODE_FAILED;
|
return IR_DECODE_FAILED;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return IR_DECODE_SUCCEEDED;
|
return IR_DECODE_SUCCEEDED;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static INT8 ir_ac_binary_open(UINT8 *binary, UINT16 binary_length)
|
static INT8 ir_ac_binary_open(UINT8 *binary, UINT16 binary_length)
|
||||||
{
|
{
|
||||||
@@ -585,9 +592,9 @@ INT8 get_supported_wind_direction(UINT8 *supported_wind_direction)
|
|||||||
//////// AC End ////////
|
//////// AC End ////////
|
||||||
|
|
||||||
//////// TV Begin ////////
|
//////// TV Begin ////////
|
||||||
|
#if !defined NO_FS
|
||||||
static INT8 ir_tv_file_open(const char *file_name)
|
static INT8 ir_tv_file_open(const char *file_name)
|
||||||
{
|
{
|
||||||
#if !defined NO_FS
|
|
||||||
size_t ret = 0;
|
size_t ret = 0;
|
||||||
|
|
||||||
#if !defined WIN32
|
#if !defined WIN32
|
||||||
@@ -632,9 +639,9 @@ static INT8 ir_tv_file_open(const char *file_name)
|
|||||||
binary_length = 0;
|
binary_length = 0;
|
||||||
return IR_DECODE_FAILED;
|
return IR_DECODE_FAILED;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return IR_DECODE_SUCCEEDED;
|
return IR_DECODE_SUCCEEDED;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static INT8 ir_tv_binary_open(UINT8 *binary, UINT16 binary_length)
|
static INT8 ir_tv_binary_open(UINT8 *binary, UINT16 binary_length)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user