From b23518442fd30d93383d46a0235d895221105979 Mon Sep 17 00:00:00 2001 From: illybyy Date: Thu, 31 Mar 2022 16:52:07 +0800 Subject: [PATCH] innerkits interface Signed-off-by: illybyy --- interfaces/innerkits/distributeddata/include/types.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interfaces/innerkits/distributeddata/include/types.h b/interfaces/innerkits/distributeddata/include/types.h index ddb686207..2709604ee 100644 --- a/interfaces/innerkits/distributeddata/include/types.h +++ b/interfaces/innerkits/distributeddata/include/types.h @@ -224,6 +224,11 @@ enum class DeviceFilterStrategy { NO_FILTER = 1, }; +struct CommunicationParam { + std::string pipeId; // Declare data synchronization channel + std::string userId; // Compatible use only +}; + struct Options { bool createIfMissing = true; bool encrypt = false; @@ -236,6 +241,7 @@ struct Options { bool syncable = true; // let bms delete first std::string schema = ""; bool dataOwnership = true; // true indicates the ownership of distributed data is DEVICE, otherwise, ACCOUNT + CommunicationParam communicationParam = {"", ""}; // Communication customization inline bool IsValidType() const { -- Gitee