diff --git a/applications/menu/menu_item.c b/applications/menu/menu_item.c index e4d3143f..87c081c1 100644 --- a/applications/menu/menu_item.c +++ b/applications/menu/menu_item.c @@ -33,7 +33,8 @@ MenuItem* menu_item_alloc_menu(const char* label, void* icon) { return menu_item; } -MenuItem* menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context) { +MenuItem* +menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context) { MenuItem* menu_item = menu_item_alloc(); menu_item->type = MenuItemTypeFunction; diff --git a/applications/menu/menu_item.h b/applications/menu/menu_item.h index 19f1a38e..06838d6e 100644 --- a/applications/menu/menu_item.h +++ b/applications/menu/menu_item.h @@ -9,13 +9,14 @@ typedef enum { } MenuItemType; typedef struct MenuItem MenuItem; -typedef void (*MenuItemCallback)(void *context); +typedef void (*MenuItemCallback)(void* context); ARRAY_DEF(MenuItemArray, MenuItem*, M_PTR_OPLIST); MenuItem* menu_item_alloc_menu(const char* label, void* icon); -MenuItem* menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context); +MenuItem* +menu_item_alloc_function(const char* label, void* icon, MenuItemCallback callback, void* context); void menu_item_release(MenuItem* menu_item);