// app.c #include // Include the FlipSocialApp structure #include // Include the allocation functions /** * @brief Entry point for the Hello World application. * @details Initializes the app, runs the view dispatcher, and cleans up upon exit. * @param p Input parameter - unused * @return 0 to indicate success, -1 on failure */ int32_t main_flip_social(void *p) { UNUSED(p); // Initialize the Hello World application app_instance = flip_social_app_alloc(); if (!app_instance) { // Allocation failed return -1; // Indicate failure } if (!flipper_http_ping()) { FURI_LOG_E(TAG, "Failed to ping the device"); return -1; } // Run the view dispatcher view_dispatcher_run(app_instance->view_dispatcher); // Free the resources used by the Hello World application flip_social_app_free(app_instance); // Return 0 to indicate success return 0; }