feat: add missing const qualifiers (#2233)

* feat: make `ViewPort` getters const
* feat: make tx-buffers const
* feat: make `canvas_get_buffer_size` const
* feat: make `canvas` methods const
* feat: make `icon_animation` methods const
* feat: make `scene_manager` methods const
* feat: make `loader` method const
* feat: make `canvas_get_font_params` const

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
Petr Portnov | PROgrm_JARvis 2023-02-09 07:58:01 +03:00 committed by GitHub
parent 163be139eb
commit 4265057ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 78 additions and 77 deletions

View File

@ -57,7 +57,7 @@ uint8_t* canvas_get_buffer(Canvas* canvas) {
return u8g2_GetBufferPtr(&canvas->fb);
}
size_t canvas_get_buffer_size(Canvas* canvas) {
size_t canvas_get_buffer_size(const Canvas* canvas) {
furi_assert(canvas);
return u8g2_GetBufferTileWidth(&canvas->fb) * u8g2_GetBufferTileHeight(&canvas->fb) * 8;
}
@ -75,17 +75,17 @@ void canvas_frame_set(
canvas->height = height;
}
uint8_t canvas_width(Canvas* canvas) {
uint8_t canvas_width(const Canvas* canvas) {
furi_assert(canvas);
return canvas->width;
}
uint8_t canvas_height(Canvas* canvas) {
uint8_t canvas_height(const Canvas* canvas) {
furi_assert(canvas);
return canvas->height;
}
uint8_t canvas_current_font_height(Canvas* canvas) {
uint8_t canvas_current_font_height(const Canvas* canvas) {
furi_assert(canvas);
uint8_t font_height = u8g2_GetMaxCharHeight(&canvas->fb);
@ -96,10 +96,10 @@ uint8_t canvas_current_font_height(Canvas* canvas) {
return font_height;
}
CanvasFontParameters* canvas_get_font_params(Canvas* canvas, Font font) {
const CanvasFontParameters* canvas_get_font_params(const Canvas* canvas, Font font) {
furi_assert(canvas);
furi_assert(font < FontTotalNumber);
return (CanvasFontParameters*)&canvas_font_params[font];
return &canvas_font_params[font];
}
void canvas_clear(Canvas* canvas) {

View File

@ -85,7 +85,7 @@ void canvas_commit(Canvas* canvas);
*
* @return width in pixels.
*/
uint8_t canvas_width(Canvas* canvas);
uint8_t canvas_width(const Canvas* canvas);
/** Get Canvas height
*
@ -93,7 +93,7 @@ uint8_t canvas_width(Canvas* canvas);
*
* @return height in pixels.
*/
uint8_t canvas_height(Canvas* canvas);
uint8_t canvas_height(const Canvas* canvas);
/** Get current font height
*
@ -101,7 +101,7 @@ uint8_t canvas_height(Canvas* canvas);
*
* @return height in pixels.
*/
uint8_t canvas_current_font_height(Canvas* canvas);
uint8_t canvas_current_font_height(const Canvas* canvas);
/** Get font parameters
*
@ -110,7 +110,7 @@ uint8_t canvas_current_font_height(Canvas* canvas);
*
* @return pointer to CanvasFontParameters structure
*/
CanvasFontParameters* canvas_get_font_params(Canvas* canvas, Font font);
const CanvasFontParameters* canvas_get_font_params(const Canvas* canvas, Font font);
/** Clear canvas
*

View File

@ -45,7 +45,7 @@ uint8_t* canvas_get_buffer(Canvas* canvas);
*
* @return size of canvas in bytes
*/
size_t canvas_get_buffer_size(Canvas* canvas);
size_t canvas_get_buffer_size(const Canvas* canvas);
/** Set drawing region relative to real screen buffer
*

View File

@ -639,7 +639,7 @@ void elements_text_box(
bool inversed_present = false;
Font current_font = FontSecondary;
Font prev_font = FontSecondary;
CanvasFontParameters* font_params = canvas_get_font_params(canvas, current_font);
const CanvasFontParameters* font_params = canvas_get_font_params(canvas, current_font);
// Fill line parameters
uint8_t line_leading_min = font_params->leading_min;

View File

@ -467,7 +467,7 @@ void gui_remove_framebuffer_callback(Gui* gui, GuiCanvasCommitCallback callback,
gui_unlock(gui);
}
size_t gui_get_framebuffer_size(Gui* gui) {
size_t gui_get_framebuffer_size(const Gui* gui) {
furi_assert(gui);
return canvas_get_buffer_size(gui->canvas);
}

View File

@ -94,7 +94,7 @@ void gui_remove_framebuffer_callback(Gui* gui, GuiCanvasCommitCallback callback,
* @param gui Gui instance
* @return size_t size of frame buffer in bytes
*/
size_t gui_get_framebuffer_size(Gui* gui);
size_t gui_get_framebuffer_size(const Gui* gui);
/** Set lockdown mode
*

View File

@ -29,7 +29,7 @@ void icon_animation_set_update_callback(
instance->callback_context = context;
}
const uint8_t* icon_animation_get_data(IconAnimation* instance) {
const uint8_t* icon_animation_get_data(const IconAnimation* instance) {
return instance->icon->frames[instance->frame];
}
@ -51,12 +51,12 @@ void icon_animation_timer_callback(void* context) {
}
}
uint8_t icon_animation_get_width(IconAnimation* instance) {
uint8_t icon_animation_get_width(const IconAnimation* instance) {
furi_assert(instance);
return instance->icon->width;
}
uint8_t icon_animation_get_height(IconAnimation* instance) {
uint8_t icon_animation_get_height(const IconAnimation* instance) {
furi_assert(instance);
return instance->icon->height;
}
@ -83,7 +83,7 @@ void icon_animation_stop(IconAnimation* instance) {
}
}
bool icon_animation_is_last_frame(IconAnimation* instance) {
bool icon_animation_is_last_frame(const IconAnimation* instance) {
furi_assert(instance);
return instance->icon->frame_count - instance->frame <= 1;
}

View File

@ -55,7 +55,7 @@ void icon_animation_set_update_callback(
*
* @return width in pixels
*/
uint8_t icon_animation_get_width(IconAnimation* instance);
uint8_t icon_animation_get_width(const IconAnimation* instance);
/** Get icon animation height
*
@ -63,7 +63,7 @@ uint8_t icon_animation_get_width(IconAnimation* instance);
*
* @return height in pixels
*/
uint8_t icon_animation_get_height(IconAnimation* instance);
uint8_t icon_animation_get_height(const IconAnimation* instance);
/** Start icon animation
*
@ -83,7 +83,7 @@ void icon_animation_stop(IconAnimation* instance);
*
* @return true if last frame
*/
bool icon_animation_is_last_frame(IconAnimation* instance);
bool icon_animation_is_last_frame(const IconAnimation* instance);
#ifdef __cplusplus
}

View File

@ -24,7 +24,7 @@ struct IconAnimation {
*
* @return pointer to current frame XBM bitmap data
*/
const uint8_t* icon_animation_get_data(IconAnimation* instance);
const uint8_t* icon_animation_get_data(const IconAnimation* instance);
/** Advance to next frame
*

View File

@ -74,7 +74,7 @@ static void widget_element_text_scroll_fill_lines(Canvas* canvas, WidgetElement*
}
// Set canvas font
canvas_set_font(canvas, line_tmp.font);
CanvasFontParameters* params = canvas_get_font_params(canvas, line_tmp.font);
const CanvasFontParameters* params = canvas_get_font_params(canvas, line_tmp.font);
total_height += params->height;
if(total_height > model->height) {
model->scroll_pos_total++;
@ -138,7 +138,7 @@ static void widget_element_text_scroll_draw(Canvas* canvas, WidgetElement* eleme
TextScrollLineArray_next(it), curr_line++) {
if(curr_line < model->scroll_pos_current) continue;
TextScrollLineArray* line = TextScrollLineArray_ref(it);
CanvasFontParameters* params = canvas_get_font_params(canvas, line->font);
const CanvasFontParameters* params = canvas_get_font_params(canvas, line->font);
if(y + params->descender > model->y + model->height) break;
canvas_set_font(canvas, line->font);
if(line->horizontal == AlignLeft) {

View File

@ -34,7 +34,7 @@ void scene_manager_set_scene_state(SceneManager* scene_manager, uint32_t scene_i
scene_manager->scene[scene_id].state = state;
}
uint32_t scene_manager_get_scene_state(SceneManager* scene_manager, uint32_t scene_id) {
uint32_t scene_manager_get_scene_state(const SceneManager* scene_manager, uint32_t scene_id) {
furi_assert(scene_manager);
furi_assert(scene_id < scene_manager->scene_handlers->scene_num);
@ -184,7 +184,7 @@ bool scene_manager_search_and_switch_to_previous_scene_one_of(
return scene_found;
}
bool scene_manager_has_previous_scene(SceneManager* scene_manager, uint32_t scene_id) {
bool scene_manager_has_previous_scene(const SceneManager* scene_manager, uint32_t scene_id) {
furi_assert(scene_manager);
bool scene_found = false;

View File

@ -63,7 +63,7 @@ void scene_manager_set_scene_state(SceneManager* scene_manager, uint32_t scene_i
*
* @return Scene state
*/
uint32_t scene_manager_get_scene_state(SceneManager* scene_manager, uint32_t scene_id);
uint32_t scene_manager_get_scene_state(const SceneManager* scene_manager, uint32_t scene_id);
/** Scene Manager allocation and configuration
*
@ -134,7 +134,7 @@ bool scene_manager_previous_scene(SceneManager* scene_manager);
*
* @return true if previous scene was found, false otherwise
*/
bool scene_manager_has_previous_scene(SceneManager* scene_manager, uint32_t scene_id);
bool scene_manager_has_previous_scene(const SceneManager* scene_manager, uint32_t scene_id);
/** Search and switch to previous Scene
*

View File

@ -89,7 +89,7 @@ void view_port_set_width(ViewPort* view_port, uint8_t width) {
view_port->width = width;
}
uint8_t view_port_get_width(ViewPort* view_port) {
uint8_t view_port_get_width(const ViewPort* view_port) {
furi_assert(view_port);
return view_port->width;
}
@ -99,7 +99,7 @@ void view_port_set_height(ViewPort* view_port, uint8_t height) {
view_port->height = height;
}
uint8_t view_port_get_height(ViewPort* view_port) {
uint8_t view_port_get_height(const ViewPort* view_port) {
furi_assert(view_port);
return view_port->height;
}
@ -112,7 +112,7 @@ void view_port_enabled_set(ViewPort* view_port, bool enabled) {
}
}
bool view_port_is_enabled(ViewPort* view_port) {
bool view_port_is_enabled(const ViewPort* view_port) {
furi_assert(view_port);
return view_port->is_enabled;
}

View File

@ -56,7 +56,7 @@ void view_port_free(ViewPort* view_port);
* @param width wanted width, 0 - auto.
*/
void view_port_set_width(ViewPort* view_port, uint8_t width);
uint8_t view_port_get_width(ViewPort* view_port);
uint8_t view_port_get_width(const ViewPort* view_port);
/** Set view_port height.
*
@ -66,7 +66,7 @@ uint8_t view_port_get_width(ViewPort* view_port);
* @param height wanted height, 0 - auto.
*/
void view_port_set_height(ViewPort* view_port, uint8_t height);
uint8_t view_port_get_height(ViewPort* view_port);
uint8_t view_port_get_height(const ViewPort* view_port);
/** Enable or disable view_port rendering.
*
@ -75,7 +75,7 @@ uint8_t view_port_get_height(ViewPort* view_port);
* @warning automatically dispatches update event
*/
void view_port_enabled_set(ViewPort* view_port, bool enabled);
bool view_port_is_enabled(ViewPort* view_port);
bool view_port_is_enabled(const ViewPort* view_port);
/** ViewPort event callbacks
*

View File

@ -262,7 +262,7 @@ void loader_unlock(Loader* instance) {
FURI_CRITICAL_EXIT();
}
bool loader_is_locked(Loader* instance) {
bool loader_is_locked(const Loader* instance) {
return instance->lock_count > 0;
}

View File

@ -43,7 +43,7 @@ bool loader_lock(Loader* instance);
void loader_unlock(Loader* instance);
/** Get loader lock status */
bool loader_is_locked(Loader* instance);
bool loader_is_locked(const Loader* instance);
/** Show primary loader */
void loader_show_menu();

View File

@ -81,7 +81,7 @@ void locale_format_time(
*
* @return The Locale DateFormat.
*/
LocaleDateFormat locale_get_date_format();
LocaleDateFormat locale_get_date_format(void);
/** Set Locale DateFormat
*

View File

@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,13.1,,
Version,+,14.0,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@ -522,7 +522,7 @@ Function,-,bzero,void,"void*, size_t"
Function,-,calloc,void*,"size_t, size_t"
Function,+,canvas_clear,void,Canvas*
Function,+,canvas_commit,void,Canvas*
Function,+,canvas_current_font_height,uint8_t,Canvas*
Function,+,canvas_current_font_height,uint8_t,const Canvas*
Function,+,canvas_draw_bitmap,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*"
Function,+,canvas_draw_box,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t"
Function,+,canvas_draw_circle,void,"Canvas*, uint8_t, uint8_t, uint8_t"
@ -539,9 +539,9 @@ Function,+,canvas_draw_str,void,"Canvas*, uint8_t, uint8_t, const char*"
Function,+,canvas_draw_str_aligned,void,"Canvas*, uint8_t, uint8_t, Align, Align, const char*"
Function,+,canvas_draw_triangle,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, CanvasDirection"
Function,+,canvas_draw_xbm,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*"
Function,+,canvas_get_font_params,CanvasFontParameters*,"Canvas*, Font"
Function,+,canvas_get_font_params,const CanvasFontParameters*,"const Canvas*, Font"
Function,+,canvas_glyph_width,uint8_t,"Canvas*, char"
Function,+,canvas_height,uint8_t,Canvas*
Function,+,canvas_height,uint8_t,const Canvas*
Function,+,canvas_invert_color,void,Canvas*
Function,+,canvas_reset,void,Canvas*
Function,+,canvas_set_bitmap_mode,void,"Canvas*, _Bool"
@ -550,7 +550,7 @@ Function,+,canvas_set_custom_u8g2_font,void,"Canvas*, const uint8_t*"
Function,+,canvas_set_font,void,"Canvas*, Font"
Function,+,canvas_set_font_direction,void,"Canvas*, CanvasDirection"
Function,+,canvas_string_width,uint16_t,"Canvas*, const char*"
Function,+,canvas_width,uint8_t,Canvas*
Function,+,canvas_width,uint8_t,const Canvas*
Function,-,cfree,void,void*
Function,-,clearerr,void,FILE*
Function,-,clearerr_unlocked,void,FILE*
@ -1063,9 +1063,9 @@ Function,+,furi_hal_spi_bus_handle_deinit,void,FuriHalSpiBusHandle*
Function,+,furi_hal_spi_bus_handle_init,void,FuriHalSpiBusHandle*
Function,+,furi_hal_spi_bus_init,void,FuriHalSpiBus*
Function,+,furi_hal_spi_bus_rx,_Bool,"FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_trx,_Bool,"FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_trx,_Bool,"FuriHalSpiBusHandle*, const uint8_t*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_trx_dma,_Bool,"FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_tx,_Bool,"FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_tx,_Bool,"FuriHalSpiBusHandle*, const uint8_t*, size_t, uint32_t"
Function,-,furi_hal_spi_config_deinit_early,void,
Function,-,furi_hal_spi_config_init,void,
Function,-,furi_hal_spi_config_init_early,void,
@ -1123,6 +1123,7 @@ Function,+,furi_kernel_unlock,int32_t,
Function,+,furi_log_get_level,FuriLogLevel,
Function,-,furi_log_init,void,
Function,+,furi_log_print_format,void,"FuriLogLevel, const char*, const char*, ..."
Function,+,furi_log_print_raw_format,void,"FuriLogLevel, const char*, ..."
Function,+,furi_log_set_level,void,FuriLogLevel
Function,-,furi_log_set_puts,void,FuriLogPuts
Function,-,furi_log_set_timestamp,void,FuriLogTimestamp
@ -1287,7 +1288,7 @@ Function,+,gui_add_framebuffer_callback,void,"Gui*, GuiCanvasCommitCallback, voi
Function,+,gui_add_view_port,void,"Gui*, ViewPort*, GuiLayer"
Function,+,gui_direct_draw_acquire,Canvas*,Gui*
Function,+,gui_direct_draw_release,void,Gui*
Function,+,gui_get_framebuffer_size,size_t,Gui*
Function,+,gui_get_framebuffer_size,size_t,const Gui*
Function,+,gui_remove_framebuffer_callback,void,"Gui*, GuiCanvasCommitCallback, void*"
Function,+,gui_remove_view_port,void,"Gui*, ViewPort*"
Function,+,gui_set_lockdown,void,"Gui*, _Bool"
@ -1301,9 +1302,9 @@ Function,+,hmac_sha256_init,void,"hmac_sha256_context*, const uint8_t*"
Function,+,hmac_sha256_update,void,"const hmac_sha256_context*, const uint8_t*, unsigned"
Function,+,icon_animation_alloc,IconAnimation*,const Icon*
Function,+,icon_animation_free,void,IconAnimation*
Function,+,icon_animation_get_height,uint8_t,IconAnimation*
Function,+,icon_animation_get_width,uint8_t,IconAnimation*
Function,+,icon_animation_is_last_frame,_Bool,IconAnimation*
Function,+,icon_animation_get_height,uint8_t,const IconAnimation*
Function,+,icon_animation_get_width,uint8_t,const IconAnimation*
Function,+,icon_animation_is_last_frame,_Bool,const IconAnimation*
Function,+,icon_animation_set_update_callback,void,"IconAnimation*, IconAnimationCallback, void*"
Function,+,icon_animation_start,void,IconAnimation*
Function,+,icon_animation_stop,void,IconAnimation*
@ -1352,7 +1353,7 @@ Function,-,ldiv,ldiv_t,"long, long"
Function,-,llabs,long long,long long
Function,-,lldiv,lldiv_t,"long long, long long"
Function,+,loader_get_pubsub,FuriPubSub*,Loader*
Function,+,loader_is_locked,_Bool,Loader*
Function,+,loader_is_locked,_Bool,const Loader*
Function,+,loader_lock,_Bool,Loader*
Function,+,loader_show_menu,void,
Function,+,loader_start,LoaderStatus,"Loader*, const char*, const char*"
@ -1570,11 +1571,11 @@ Function,+,saved_struct_save,_Bool,"const char*, void*, size_t, uint8_t, uint8_t
Function,-,scanf,int,"const char*, ..."
Function,+,scene_manager_alloc,SceneManager*,"const SceneManagerHandlers*, void*"
Function,+,scene_manager_free,void,SceneManager*
Function,+,scene_manager_get_scene_state,uint32_t,"SceneManager*, uint32_t"
Function,+,scene_manager_get_scene_state,uint32_t,"const SceneManager*, uint32_t"
Function,+,scene_manager_handle_back_event,_Bool,SceneManager*
Function,+,scene_manager_handle_custom_event,_Bool,"SceneManager*, uint32_t"
Function,+,scene_manager_handle_tick_event,void,SceneManager*
Function,+,scene_manager_has_previous_scene,_Bool,"SceneManager*, uint32_t"
Function,+,scene_manager_has_previous_scene,_Bool,"const SceneManager*, uint32_t"
Function,+,scene_manager_next_scene,void,"SceneManager*, uint32_t"
Function,+,scene_manager_previous_scene,_Bool,SceneManager*
Function,+,scene_manager_search_and_switch_to_another_scene,_Bool,"SceneManager*, uint32_t"
@ -1946,11 +1947,11 @@ Function,+,view_port_alloc,ViewPort*,
Function,+,view_port_draw_callback_set,void,"ViewPort*, ViewPortDrawCallback, void*"
Function,+,view_port_enabled_set,void,"ViewPort*, _Bool"
Function,+,view_port_free,void,ViewPort*
Function,+,view_port_get_height,uint8_t,ViewPort*
Function,+,view_port_get_height,uint8_t,const ViewPort*
Function,+,view_port_get_orientation,ViewPortOrientation,const ViewPort*
Function,+,view_port_get_width,uint8_t,ViewPort*
Function,+,view_port_get_width,uint8_t,const ViewPort*
Function,+,view_port_input_callback_set,void,"ViewPort*, ViewPortInputCallback, void*"
Function,+,view_port_is_enabled,_Bool,ViewPort*
Function,+,view_port_is_enabled,_Bool,const ViewPort*
Function,+,view_port_set_height,void,"ViewPort*, uint8_t"
Function,+,view_port_set_orientation,void,"ViewPort*, ViewPortOrientation"
Function,+,view_port_set_width,void,"ViewPort*, uint8_t"

1 entry status name type params
2 Version + 13.1 14.0
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h
522 Function - calloc void* size_t, size_t
523 Function + canvas_clear void Canvas*
524 Function + canvas_commit void Canvas*
525 Function + canvas_current_font_height uint8_t Canvas* const Canvas*
526 Function + canvas_draw_bitmap void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*
527 Function + canvas_draw_box void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t
528 Function + canvas_draw_circle void Canvas*, uint8_t, uint8_t, uint8_t
539 Function + canvas_draw_str_aligned void Canvas*, uint8_t, uint8_t, Align, Align, const char*
540 Function + canvas_draw_triangle void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, CanvasDirection
541 Function + canvas_draw_xbm void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*
542 Function + canvas_get_font_params CanvasFontParameters* const CanvasFontParameters* Canvas*, Font const Canvas*, Font
543 Function + canvas_glyph_width uint8_t Canvas*, char
544 Function + canvas_height uint8_t Canvas* const Canvas*
545 Function + canvas_invert_color void Canvas*
546 Function + canvas_reset void Canvas*
547 Function + canvas_set_bitmap_mode void Canvas*, _Bool
550 Function + canvas_set_font void Canvas*, Font
551 Function + canvas_set_font_direction void Canvas*, CanvasDirection
552 Function + canvas_string_width uint16_t Canvas*, const char*
553 Function + canvas_width uint8_t Canvas* const Canvas*
554 Function - cfree void void*
555 Function - clearerr void FILE*
556 Function - clearerr_unlocked void FILE*
1063 Function + furi_hal_spi_bus_handle_init void FuriHalSpiBusHandle*
1064 Function + furi_hal_spi_bus_init void FuriHalSpiBus*
1065 Function + furi_hal_spi_bus_rx _Bool FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t
1066 Function + furi_hal_spi_bus_trx _Bool FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t FuriHalSpiBusHandle*, const uint8_t*, uint8_t*, size_t, uint32_t
1067 Function + furi_hal_spi_bus_trx_dma _Bool FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t
1068 Function + furi_hal_spi_bus_tx _Bool FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t FuriHalSpiBusHandle*, const uint8_t*, size_t, uint32_t
1069 Function - furi_hal_spi_config_deinit_early void
1070 Function - furi_hal_spi_config_init void
1071 Function - furi_hal_spi_config_init_early void
1123 Function + furi_log_get_level FuriLogLevel
1124 Function - furi_log_init void
1125 Function + furi_log_print_format void FuriLogLevel, const char*, const char*, ...
1126 Function + furi_log_print_raw_format void FuriLogLevel, const char*, ...
1127 Function + furi_log_set_level void FuriLogLevel
1128 Function - furi_log_set_puts void FuriLogPuts
1129 Function - furi_log_set_timestamp void FuriLogTimestamp
1288 Function + gui_add_view_port void Gui*, ViewPort*, GuiLayer
1289 Function + gui_direct_draw_acquire Canvas* Gui*
1290 Function + gui_direct_draw_release void Gui*
1291 Function + gui_get_framebuffer_size size_t Gui* const Gui*
1292 Function + gui_remove_framebuffer_callback void Gui*, GuiCanvasCommitCallback, void*
1293 Function + gui_remove_view_port void Gui*, ViewPort*
1294 Function + gui_set_lockdown void Gui*, _Bool
1302 Function + hmac_sha256_update void const hmac_sha256_context*, const uint8_t*, unsigned
1303 Function + icon_animation_alloc IconAnimation* const Icon*
1304 Function + icon_animation_free void IconAnimation*
1305 Function + icon_animation_get_height uint8_t IconAnimation* const IconAnimation*
1306 Function + icon_animation_get_width uint8_t IconAnimation* const IconAnimation*
1307 Function + icon_animation_is_last_frame _Bool IconAnimation* const IconAnimation*
1308 Function + icon_animation_set_update_callback void IconAnimation*, IconAnimationCallback, void*
1309 Function + icon_animation_start void IconAnimation*
1310 Function + icon_animation_stop void IconAnimation*
1353 Function - llabs long long long long
1354 Function - lldiv lldiv_t long long, long long
1355 Function + loader_get_pubsub FuriPubSub* Loader*
1356 Function + loader_is_locked _Bool Loader* const Loader*
1357 Function + loader_lock _Bool Loader*
1358 Function + loader_show_menu void
1359 Function + loader_start LoaderStatus Loader*, const char*, const char*
1571 Function - scanf int const char*, ...
1572 Function + scene_manager_alloc SceneManager* const SceneManagerHandlers*, void*
1573 Function + scene_manager_free void SceneManager*
1574 Function + scene_manager_get_scene_state uint32_t SceneManager*, uint32_t const SceneManager*, uint32_t
1575 Function + scene_manager_handle_back_event _Bool SceneManager*
1576 Function + scene_manager_handle_custom_event _Bool SceneManager*, uint32_t
1577 Function + scene_manager_handle_tick_event void SceneManager*
1578 Function + scene_manager_has_previous_scene _Bool SceneManager*, uint32_t const SceneManager*, uint32_t
1579 Function + scene_manager_next_scene void SceneManager*, uint32_t
1580 Function + scene_manager_previous_scene _Bool SceneManager*
1581 Function + scene_manager_search_and_switch_to_another_scene _Bool SceneManager*, uint32_t
1947 Function + view_port_draw_callback_set void ViewPort*, ViewPortDrawCallback, void*
1948 Function + view_port_enabled_set void ViewPort*, _Bool
1949 Function + view_port_free void ViewPort*
1950 Function + view_port_get_height uint8_t ViewPort* const ViewPort*
1951 Function + view_port_get_orientation ViewPortOrientation const ViewPort*
1952 Function + view_port_get_width uint8_t ViewPort* const ViewPort*
1953 Function + view_port_input_callback_set void ViewPort*, ViewPortInputCallback, void*
1954 Function + view_port_is_enabled _Bool ViewPort* const ViewPort*
1955 Function + view_port_set_height void ViewPort*, uint8_t
1956 Function + view_port_set_orientation void ViewPort*, ViewPortOrientation
1957 Function + view_port_set_width void ViewPort*, uint8_t

View File

@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,13.1,,
Version,+,14.0,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@ -607,7 +607,7 @@ Function,-,bzero,void,"void*, size_t"
Function,-,calloc,void*,"size_t, size_t"
Function,+,canvas_clear,void,Canvas*
Function,+,canvas_commit,void,Canvas*
Function,+,canvas_current_font_height,uint8_t,Canvas*
Function,+,canvas_current_font_height,uint8_t,const Canvas*
Function,+,canvas_draw_bitmap,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*"
Function,+,canvas_draw_box,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t"
Function,+,canvas_draw_circle,void,"Canvas*, uint8_t, uint8_t, uint8_t"
@ -624,18 +624,18 @@ Function,+,canvas_draw_str,void,"Canvas*, uint8_t, uint8_t, const char*"
Function,+,canvas_draw_str_aligned,void,"Canvas*, uint8_t, uint8_t, Align, Align, const char*"
Function,+,canvas_draw_triangle,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, CanvasDirection"
Function,+,canvas_draw_xbm,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*"
Function,+,canvas_get_font_params,CanvasFontParameters*,"Canvas*, Font"
Function,+,canvas_get_font_params,const CanvasFontParameters*,"const Canvas*, Font"
Function,+,canvas_glyph_width,uint8_t,"Canvas*, char"
Function,+,canvas_height,uint8_t,Canvas*
Function,+,canvas_height,uint8_t,const Canvas*
Function,+,canvas_invert_color,void,Canvas*
Function,+,canvas_reset,void,Canvas*
Function,+,canvas_set_bitmap_mode,void,"Canvas*, _Bool"
Function,+,canvas_set_color,void,"Canvas*, Color"
Function,+,canvas_set_font,void,"Canvas*, Font"
Function,+,canvas_set_custom_u8g2_font,void,"Canvas*, const uint8_t*"
Function,+,canvas_set_font,void,"Canvas*, Font"
Function,+,canvas_set_font_direction,void,"Canvas*, CanvasDirection"
Function,+,canvas_string_width,uint16_t,"Canvas*, const char*"
Function,+,canvas_width,uint8_t,Canvas*
Function,+,canvas_width,uint8_t,const Canvas*
Function,-,cbrt,double,double
Function,-,cbrtf,float,float
Function,-,cbrtl,long double,long double
@ -1095,7 +1095,6 @@ Function,-,furi_hal_flash_write_dword,void,"size_t, uint64_t"
Function,+,furi_hal_gpio_add_int_callback,void,"const GpioPin*, GpioExtiCallback, void*"
Function,+,furi_hal_gpio_disable_int_callback,void,const GpioPin*
Function,+,furi_hal_gpio_enable_int_callback,void,const GpioPin*
Function,+,furi_hal_resources_get_ext_pin_number,int32_t,const GpioPin*
Function,+,furi_hal_gpio_init,void,"const GpioPin*, const GpioMode, const GpioPull, const GpioSpeed"
Function,+,furi_hal_gpio_init_ex,void,"const GpioPin*, const GpioMode, const GpioPull, const GpioSpeed, const GpioAltFn"
Function,+,furi_hal_gpio_init_simple,void,"const GpioPin*, const GpioMode"
@ -1249,6 +1248,7 @@ Function,+,furi_hal_region_is_frequency_allowed,_Bool,uint32_t
Function,+,furi_hal_region_is_provisioned,_Bool,
Function,+,furi_hal_region_set,void,FuriHalRegion*
Function,-,furi_hal_resources_deinit_early,void,
Function,+,furi_hal_resources_get_ext_pin_number,int32_t,const GpioPin*
Function,-,furi_hal_resources_init,void,
Function,-,furi_hal_resources_init_early,void,
Function,+,furi_hal_rfid_change_read_config,void,"float, float"
@ -1319,9 +1319,9 @@ Function,+,furi_hal_spi_bus_handle_deinit,void,FuriHalSpiBusHandle*
Function,+,furi_hal_spi_bus_handle_init,void,FuriHalSpiBusHandle*
Function,+,furi_hal_spi_bus_init,void,FuriHalSpiBus*
Function,+,furi_hal_spi_bus_rx,_Bool,"FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_trx,_Bool,"FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_trx,_Bool,"FuriHalSpiBusHandle*, const uint8_t*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_trx_dma,_Bool,"FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_tx,_Bool,"FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t"
Function,+,furi_hal_spi_bus_tx,_Bool,"FuriHalSpiBusHandle*, const uint8_t*, size_t, uint32_t"
Function,-,furi_hal_spi_config_deinit_early,void,
Function,-,furi_hal_spi_config_init,void,
Function,-,furi_hal_spi_config_init_early,void,
@ -1578,7 +1578,7 @@ Function,+,gui_add_framebuffer_callback,void,"Gui*, GuiCanvasCommitCallback, voi
Function,+,gui_add_view_port,void,"Gui*, ViewPort*, GuiLayer"
Function,+,gui_direct_draw_acquire,Canvas*,Gui*
Function,+,gui_direct_draw_release,void,Gui*
Function,+,gui_get_framebuffer_size,size_t,Gui*
Function,+,gui_get_framebuffer_size,size_t,const Gui*
Function,+,gui_remove_framebuffer_callback,void,"Gui*, GuiCanvasCommitCallback, void*"
Function,+,gui_remove_view_port,void,"Gui*, ViewPort*"
Function,+,gui_set_lockdown,void,"Gui*, _Bool"
@ -1621,9 +1621,9 @@ Function,+,ibutton_worker_write_set_callback,void,"iButtonWorker*, iButtonWorker
Function,+,ibutton_worker_write_start,void,"iButtonWorker*, iButtonKey*"
Function,+,icon_animation_alloc,IconAnimation*,const Icon*
Function,+,icon_animation_free,void,IconAnimation*
Function,+,icon_animation_get_height,uint8_t,IconAnimation*
Function,+,icon_animation_get_width,uint8_t,IconAnimation*
Function,+,icon_animation_is_last_frame,_Bool,IconAnimation*
Function,+,icon_animation_get_height,uint8_t,const IconAnimation*
Function,+,icon_animation_get_width,uint8_t,const IconAnimation*
Function,+,icon_animation_is_last_frame,_Bool,const IconAnimation*
Function,+,icon_animation_set_update_callback,void,"IconAnimation*, IconAnimationCallback, void*"
Function,+,icon_animation_start,void,IconAnimation*
Function,+,icon_animation_stop,void,IconAnimation*
@ -1763,7 +1763,7 @@ Function,-,llround,long long int,double
Function,-,llroundf,long long int,float
Function,-,llroundl,long long int,long double
Function,+,loader_get_pubsub,FuriPubSub*,Loader*
Function,+,loader_is_locked,_Bool,Loader*
Function,+,loader_is_locked,_Bool,const Loader*
Function,+,loader_lock,_Bool,Loader*
Function,+,loader_show_menu,void,
Function,+,loader_start,LoaderStatus,"Loader*, const char*, const char*"
@ -2372,11 +2372,11 @@ Function,-,scalbnl,long double,"long double, int"
Function,-,scanf,int,"const char*, ..."
Function,+,scene_manager_alloc,SceneManager*,"const SceneManagerHandlers*, void*"
Function,+,scene_manager_free,void,SceneManager*
Function,+,scene_manager_get_scene_state,uint32_t,"SceneManager*, uint32_t"
Function,+,scene_manager_get_scene_state,uint32_t,"const SceneManager*, uint32_t"
Function,+,scene_manager_handle_back_event,_Bool,SceneManager*
Function,+,scene_manager_handle_custom_event,_Bool,"SceneManager*, uint32_t"
Function,+,scene_manager_handle_tick_event,void,SceneManager*
Function,+,scene_manager_has_previous_scene,_Bool,"SceneManager*, uint32_t"
Function,+,scene_manager_has_previous_scene,_Bool,"const SceneManager*, uint32_t"
Function,+,scene_manager_next_scene,void,"SceneManager*, uint32_t"
Function,+,scene_manager_previous_scene,_Bool,SceneManager*
Function,+,scene_manager_search_and_switch_to_another_scene,_Bool,"SceneManager*, uint32_t"
@ -2895,11 +2895,11 @@ Function,+,view_port_alloc,ViewPort*,
Function,+,view_port_draw_callback_set,void,"ViewPort*, ViewPortDrawCallback, void*"
Function,+,view_port_enabled_set,void,"ViewPort*, _Bool"
Function,+,view_port_free,void,ViewPort*
Function,+,view_port_get_height,uint8_t,ViewPort*
Function,+,view_port_get_height,uint8_t,const ViewPort*
Function,+,view_port_get_orientation,ViewPortOrientation,const ViewPort*
Function,+,view_port_get_width,uint8_t,ViewPort*
Function,+,view_port_get_width,uint8_t,const ViewPort*
Function,+,view_port_input_callback_set,void,"ViewPort*, ViewPortInputCallback, void*"
Function,+,view_port_is_enabled,_Bool,ViewPort*
Function,+,view_port_is_enabled,_Bool,const ViewPort*
Function,+,view_port_set_height,void,"ViewPort*, uint8_t"
Function,+,view_port_set_orientation,void,"ViewPort*, ViewPortOrientation"
Function,+,view_port_set_width,void,"ViewPort*, uint8_t"

1 entry status name type params
2 Version + 13.1 14.0
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h
607 Function - calloc void* size_t, size_t
608 Function + canvas_clear void Canvas*
609 Function + canvas_commit void Canvas*
610 Function + canvas_current_font_height uint8_t Canvas* const Canvas*
611 Function + canvas_draw_bitmap void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*
612 Function + canvas_draw_box void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t
613 Function + canvas_draw_circle void Canvas*, uint8_t, uint8_t, uint8_t
624 Function + canvas_draw_str_aligned void Canvas*, uint8_t, uint8_t, Align, Align, const char*
625 Function + canvas_draw_triangle void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, CanvasDirection
626 Function + canvas_draw_xbm void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, const uint8_t*
627 Function + canvas_get_font_params CanvasFontParameters* const CanvasFontParameters* Canvas*, Font const Canvas*, Font
628 Function + canvas_glyph_width uint8_t Canvas*, char
629 Function + canvas_height uint8_t Canvas* const Canvas*
630 Function + canvas_invert_color void Canvas*
631 Function + canvas_reset void Canvas*
632 Function + canvas_set_bitmap_mode void Canvas*, _Bool
633 Function + canvas_set_color void Canvas*, Color
Function + canvas_set_font void Canvas*, Font
634 Function + canvas_set_custom_u8g2_font void Canvas*, const uint8_t*
635 Function + canvas_set_font void Canvas*, Font
636 Function + canvas_set_font_direction void Canvas*, CanvasDirection
637 Function + canvas_string_width uint16_t Canvas*, const char*
638 Function + canvas_width uint8_t Canvas* const Canvas*
639 Function - cbrt double double
640 Function - cbrtf float float
641 Function - cbrtl long double long double
1095 Function + furi_hal_gpio_add_int_callback void const GpioPin*, GpioExtiCallback, void*
1096 Function + furi_hal_gpio_disable_int_callback void const GpioPin*
1097 Function + furi_hal_gpio_enable_int_callback void const GpioPin*
Function + furi_hal_resources_get_ext_pin_number int32_t const GpioPin*
1098 Function + furi_hal_gpio_init void const GpioPin*, const GpioMode, const GpioPull, const GpioSpeed
1099 Function + furi_hal_gpio_init_ex void const GpioPin*, const GpioMode, const GpioPull, const GpioSpeed, const GpioAltFn
1100 Function + furi_hal_gpio_init_simple void const GpioPin*, const GpioMode
1248 Function + furi_hal_region_is_provisioned _Bool
1249 Function + furi_hal_region_set void FuriHalRegion*
1250 Function - furi_hal_resources_deinit_early void
1251 Function + furi_hal_resources_get_ext_pin_number int32_t const GpioPin*
1252 Function - furi_hal_resources_init void
1253 Function - furi_hal_resources_init_early void
1254 Function + furi_hal_rfid_change_read_config void float, float
1319 Function + furi_hal_spi_bus_handle_init void FuriHalSpiBusHandle*
1320 Function + furi_hal_spi_bus_init void FuriHalSpiBus*
1321 Function + furi_hal_spi_bus_rx _Bool FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t
1322 Function + furi_hal_spi_bus_trx _Bool FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t FuriHalSpiBusHandle*, const uint8_t*, uint8_t*, size_t, uint32_t
1323 Function + furi_hal_spi_bus_trx_dma _Bool FuriHalSpiBusHandle*, uint8_t*, uint8_t*, size_t, uint32_t
1324 Function + furi_hal_spi_bus_tx _Bool FuriHalSpiBusHandle*, uint8_t*, size_t, uint32_t FuriHalSpiBusHandle*, const uint8_t*, size_t, uint32_t
1325 Function - furi_hal_spi_config_deinit_early void
1326 Function - furi_hal_spi_config_init void
1327 Function - furi_hal_spi_config_init_early void
1578 Function + gui_add_view_port void Gui*, ViewPort*, GuiLayer
1579 Function + gui_direct_draw_acquire Canvas* Gui*
1580 Function + gui_direct_draw_release void Gui*
1581 Function + gui_get_framebuffer_size size_t Gui* const Gui*
1582 Function + gui_remove_framebuffer_callback void Gui*, GuiCanvasCommitCallback, void*
1583 Function + gui_remove_view_port void Gui*, ViewPort*
1584 Function + gui_set_lockdown void Gui*, _Bool
1621 Function + ibutton_worker_write_start void iButtonWorker*, iButtonKey*
1622 Function + icon_animation_alloc IconAnimation* const Icon*
1623 Function + icon_animation_free void IconAnimation*
1624 Function + icon_animation_get_height uint8_t IconAnimation* const IconAnimation*
1625 Function + icon_animation_get_width uint8_t IconAnimation* const IconAnimation*
1626 Function + icon_animation_is_last_frame _Bool IconAnimation* const IconAnimation*
1627 Function + icon_animation_set_update_callback void IconAnimation*, IconAnimationCallback, void*
1628 Function + icon_animation_start void IconAnimation*
1629 Function + icon_animation_stop void IconAnimation*
1763 Function - llroundf long long int float
1764 Function - llroundl long long int long double
1765 Function + loader_get_pubsub FuriPubSub* Loader*
1766 Function + loader_is_locked _Bool Loader* const Loader*
1767 Function + loader_lock _Bool Loader*
1768 Function + loader_show_menu void
1769 Function + loader_start LoaderStatus Loader*, const char*, const char*
2372 Function - scanf int const char*, ...
2373 Function + scene_manager_alloc SceneManager* const SceneManagerHandlers*, void*
2374 Function + scene_manager_free void SceneManager*
2375 Function + scene_manager_get_scene_state uint32_t SceneManager*, uint32_t const SceneManager*, uint32_t
2376 Function + scene_manager_handle_back_event _Bool SceneManager*
2377 Function + scene_manager_handle_custom_event _Bool SceneManager*, uint32_t
2378 Function + scene_manager_handle_tick_event void SceneManager*
2379 Function + scene_manager_has_previous_scene _Bool SceneManager*, uint32_t const SceneManager*, uint32_t
2380 Function + scene_manager_next_scene void SceneManager*, uint32_t
2381 Function + scene_manager_previous_scene _Bool SceneManager*
2382 Function + scene_manager_search_and_switch_to_another_scene _Bool SceneManager*, uint32_t
2895 Function + view_port_draw_callback_set void ViewPort*, ViewPortDrawCallback, void*
2896 Function + view_port_enabled_set void ViewPort*, _Bool
2897 Function + view_port_free void ViewPort*
2898 Function + view_port_get_height uint8_t ViewPort* const ViewPort*
2899 Function + view_port_get_orientation ViewPortOrientation const ViewPort*
2900 Function + view_port_get_width uint8_t ViewPort* const ViewPort*
2901 Function + view_port_input_callback_set void ViewPort*, ViewPortInputCallback, void*
2902 Function + view_port_is_enabled _Bool ViewPort* const ViewPort*
2903 Function + view_port_set_height void ViewPort*, uint8_t
2904 Function + view_port_set_orientation void ViewPort*, ViewPortOrientation
2905 Function + view_port_set_width void ViewPort*, uint8_t

View File

@ -103,7 +103,7 @@ bool furi_hal_spi_bus_rx(
bool furi_hal_spi_bus_tx(
FuriHalSpiBusHandle* handle,
uint8_t* buffer,
const uint8_t* buffer,
size_t size,
uint32_t timeout) {
furi_assert(handle);
@ -128,7 +128,7 @@ bool furi_hal_spi_bus_tx(
bool furi_hal_spi_bus_trx(
FuriHalSpiBusHandle* handle,
uint8_t* tx_buffer,
const uint8_t* tx_buffer,
uint8_t* rx_buffer,
size_t size,
uint32_t timeout) {

View File

@ -85,7 +85,7 @@ bool furi_hal_spi_bus_rx(
*/
bool furi_hal_spi_bus_tx(
FuriHalSpiBusHandle* handle,
uint8_t* buffer,
const uint8_t* buffer,
size_t size,
uint32_t timeout);
@ -101,7 +101,7 @@ bool furi_hal_spi_bus_tx(
*/
bool furi_hal_spi_bus_trx(
FuriHalSpiBusHandle* handle,
uint8_t* tx_buffer,
const uint8_t* tx_buffer,
uint8_t* rx_buffer,
size_t size,
uint32_t timeout);