mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-18 18:03:08 +08:00
[feat] add HarmonyOS desktop and mobile clients,issue #117
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @Author: DI JUNKUN
|
||||
* @Date: 2026-10-15
|
||||
* Copyright (c) 2026 by DI JUNKUN, All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MOBILE_SESSION_H_
|
||||
#define _MOBILE_SESSION_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace crossdesk::harmony {
|
||||
// Commands execute on one worker. MiniRTC callbacks copy their borrowed data
|
||||
// before queuing it. Poll is the only bridge to the ArkTS thread.
|
||||
// Mobile uses an identity-only signaling peer and can never accept a guest.
|
||||
__attribute__((visibility("default"))) void MobileCommand(const std::string& json);
|
||||
__attribute__((visibility("default"))) std::string MobilePoll();
|
||||
__attribute__((visibility("default"))) void MobileShutdown();
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user