mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-17 17:33:21 +08:00
22 lines
656 B
C++
22 lines
656 B
C++
/*
|
|
* @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
|