rpc_app.h 626 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "rpc.h"
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef enum {
  7. RpcAppEventSessionClose,
  8. RpcAppEventAppExit,
  9. RpcAppEventLoadFile,
  10. RpcAppEventButtonPress,
  11. RpcAppEventButtonRelease,
  12. } RpcAppSystemEvent;
  13. typedef bool (*RpcAppSystemCallback)(RpcAppSystemEvent event, const char* arg, void* context);
  14. typedef struct RpcAppSystem RpcAppSystem;
  15. void rpc_system_app_set_callback(RpcAppSystem* rpc_app, RpcAppSystemCallback callback, void* ctx);
  16. void rpc_system_app_send_started(RpcAppSystem* rpc_app);
  17. void rpc_system_app_send_exited(RpcAppSystem* rpc_app);
  18. #ifdef __cplusplus
  19. }
  20. #endif