rpc_app.h 511 B

123456789101112131415161718192021222324
  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. #ifdef __cplusplus
  17. }
  18. #endif