2022-07-04 16:09:46 +03:00
|
|
|
#pragma once
|
|
|
|
#include "rpc.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
RpcAppEventSessionClose,
|
|
|
|
RpcAppEventAppExit,
|
|
|
|
RpcAppEventLoadFile,
|
|
|
|
RpcAppEventButtonPress,
|
|
|
|
RpcAppEventButtonRelease,
|
|
|
|
} RpcAppSystemEvent;
|
|
|
|
|
2022-08-02 15:54:12 +03:00
|
|
|
typedef void (*RpcAppSystemCallback)(RpcAppSystemEvent event, void* context);
|
2022-07-04 16:09:46 +03:00
|
|
|
|
|
|
|
typedef struct RpcAppSystem RpcAppSystem;
|
|
|
|
|
|
|
|
void rpc_system_app_set_callback(RpcAppSystem* rpc_app, RpcAppSystemCallback callback, void* ctx);
|
|
|
|
|
2022-07-25 17:16:45 +03:00
|
|
|
void rpc_system_app_send_started(RpcAppSystem* rpc_app);
|
|
|
|
|
|
|
|
void rpc_system_app_send_exited(RpcAppSystem* rpc_app);
|
|
|
|
|
2022-08-02 15:54:12 +03:00
|
|
|
const char* rpc_system_app_get_data(RpcAppSystem* rpc_app);
|
|
|
|
|
|
|
|
void rpc_system_app_confirm(RpcAppSystem* rpc_app, RpcAppSystemEvent event, bool result);
|
|
|
|
|
2022-07-04 16:09:46 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|