diff --git a/src/lv_api_map.h b/src/lv_api_map.h new file mode 100644 index 000000000..b1b638093 --- /dev/null +++ b/src/lv_api_map.h @@ -0,0 +1,43 @@ +/** + * @file lv_api_map.h + * + */ + +#ifndef LV_API_MAP_H +#define LV_API_MAP_H + +#ifdef __cplusplus +extern "C" { +#endif + +/********************* + * INCLUDES + *********************/ + +/********************* + * DEFINES + *********************/ + +/********************** + * TYPEDEFS + **********************/ + +/********************** + * GLOBAL PROTOTYPES + **********************/ + +/*--------------------- + * V6.0 COMPATIBILITY + *--------------------*/ +#define lv_chart_get_point_count lv_chart_get_point_cnt + + +/********************** + * MACROS + **********************/ + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*LV_API_MAP_H*/ diff --git a/src/lv_objx/lv_chart.c b/src/lv_objx/lv_chart.c index 2782ba68f..8d5ffaad0 100644 --- a/src/lv_objx/lv_chart.c +++ b/src/lv_objx/lv_chart.c @@ -633,7 +633,7 @@ lv_chart_type_t lv_chart_get_type(const lv_obj_t * chart) * @param chart pointer to chart object * @return point number on each data line */ -uint16_t lv_chart_get_point_cnt(const lv_obj_t * chart) +uint16_t lv_chart_get_point_count(const lv_obj_t * chart) { LV_ASSERT_OBJ(chart, LV_OBJX_NAME); diff --git a/src/lv_objx/lv_chart.h b/src/lv_objx/lv_chart.h index fc611f811..e775970f9 100644 --- a/src/lv_objx/lv_chart.h +++ b/src/lv_objx/lv_chart.h @@ -331,7 +331,7 @@ lv_chart_type_t lv_chart_get_type(const lv_obj_t * chart); * @param chart pointer to chart object * @return point number on each data line */ -uint16_t lv_chart_get_point_cnt(const lv_obj_t * chart); +uint16_t lv_chart_get_point_count(const lv_obj_t * chart); /** * Get the opacity of the data series