xremote_pause_set.h 629 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "../xremote.h"
  3. //#include <gui/view.h>
  4. #include "../helpers/xremote_custom_event.h"
  5. #define SECONDS_LENGHT 3
  6. #define SECONDS_FORMAT "%ds"
  7. typedef struct XRemotePauseSet XRemotePauseSet;
  8. typedef void (*XRemotePauseSetCallback)(XRemoteCustomEvent event, void* context);
  9. void xremote_pause_set_set_callback(
  10. XRemotePauseSet* instance,
  11. XRemotePauseSetCallback callback,
  12. void* context);
  13. XRemotePauseSet* xremote_pause_set_alloc();
  14. void xremote_pause_set_free(XRemotePauseSet* instance);
  15. void xremote_pause_set_enter(void* context);
  16. View* xremote_pause_set_get_view(XRemotePauseSet* instance);