bool simply_window_stack_handle_packet(Simply *simply, Packet *packet) { switch (packet->type) { case CommandWindowShow: handle_window_show_packet(simply, packet); return true; case CommandWindowHide: handle_window_hide_packet(simply, packet); return true; } return false; }
static void handle_packet(Simply *simply, Packet *packet) { switch (packet->type) { case CommandWindowShow: handle_window_show_packet(simply, packet); break; case CommandWindowHide: handle_window_hide_packet(simply, packet); break; case CommandWindowShowEvent: break; case CommandWindowHideEvent: break; case CommandWindowProps: handle_window_props_packet(simply, packet); break; case CommandWindowButtonConfig: handle_window_button_config_packet(simply, packet); break; case CommandWindowActionBar: handle_window_action_bar_packet(simply, packet); break; case CommandClick: break; case CommandLongClick: break; case CommandImagePacket: handle_image_packet(simply, packet); break; case CommandCardClear: handle_card_clear_packet(simply, packet); break; case CommandCardText: handle_card_text_packet(simply, packet); break; case CommandCardImage: handle_card_image_packet(simply, packet); break; case CommandCardStyle: handle_card_style_packet(simply, packet); break; case CommandVibe: handle_vibe_packet(simply, packet); break; case CommandAccelPeek: handle_accel_peek_packet(simply, packet); break; case CommandAccelConfig: handle_accel_config_packet(simply, packet); break; case CommandAccelData: break; case CommandAccelTap: break; case CommandMenuClear: handle_menu_clear_packet(simply, packet); break; case CommandMenuClearSection: handle_menu_clear_section_packet(simply, packet); break; case CommandMenuProps: handle_menu_props_packet(simply, packet); break; case CommandMenuSection: handle_menu_section_packet(simply, packet); break; case CommandMenuGetSection: break; case CommandMenuItem: handle_menu_item_packet(simply, packet); break; case CommandMenuGetItem: break; case CommandMenuSelection: handle_menu_selection_packet(simply, packet); break; case CommandMenuGetSelection: handle_menu_get_selection_packet(simply, packet); break; case CommandMenuSelectionEvent: break; case CommandMenuSelect: break; case CommandMenuLongSelect: break; case CommandStageClear: handle_stage_clear_packet(simply, packet); break; case CommandElementInsert: handle_element_insert_packet(simply, packet); break; case CommandElementRemove: handle_element_remove_packet(simply, packet); break; case CommandElementCommon: handle_element_common_packet(simply, packet); break; case CommandElementRadius: handle_element_radius_packet(simply, packet); break; case CommandElementText: handle_element_text_packet(simply, packet); break; case CommandElementTextStyle: handle_element_text_style_packet(simply, packet); break; case CommandElementImage: handle_element_image_packet(simply, packet); break; case CommandElementAnimate: handle_element_animate_packet(simply, packet); break; case CommandElementAnimateDone: break; } }