xremote_settings.c 752 B

123456789101112131415161718192021222324
  1. /*!
  2. * @file flipper-xremote/xremote_settings.c
  3. @license This project is released under the GNU GPLv3 License
  4. * @copyright (c) 2023 Sandro Kalatozishvili (s.kalatoz@gmail.com)
  5. *
  6. * @brief Remote controller application menu and view factory.
  7. */
  8. #include "xremote_settings.h"
  9. #include "views/xremote_settings_view.h"
  10. static uint32_t xremote_settings_view_exit_callback(void* context)
  11. {
  12. UNUSED(context);
  13. return XRemoteViewSubmenu;
  14. }
  15. XRemoteApp* xremote_settings_alloc(XRemoteAppContext* app_ctx)
  16. {
  17. XRemoteApp* app = xremote_app_alloc(app_ctx);
  18. xremote_app_view_alloc(app, XRemoteViewSettings, xremote_settings_view_alloc);
  19. xremote_app_view_set_previous_callback(app, xremote_settings_view_exit_callback);
  20. return app;
  21. }