!958 pasteboard内存整改-结构体字节对齐

Merge pull request !958 from LittleGao/master
This commit is contained in:
openharmony_ci 2024-11-08 09:33:26 +00:00 committed by Gitee
commit 085de23f80
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 6 additions and 6 deletions

View File

@ -33,12 +33,12 @@ public:
uint8_t frameNum = 0;
uint16_t user = 0;
uint16_t seqId = 0;
uint64_t expiration = 0;
uint16_t status = EVT_UNKNOWN;
int32_t syncTime = 0;
uint64_t expiration = 0;
std::string deviceId;
std::string account;
std::vector<std::string> dataType;
int32_t syncTime = 0;
bool operator==(const GlobalEvent globalEvent)
{
return globalEvent.seqId == this->seqId && globalEvent.deviceId == this->deviceId;

View File

@ -23,11 +23,11 @@ extern "C" {
#define OUT_OF_RANGE 12900001
typedef struct {
CArrString mimeTypes;
char *tag;
int64_t timestamp;
bool localOnly;
int32_t shareOption;
char *tag;
int64_t timestamp;
CArrString mimeTypes;
} CPasteDataProperty;
typedef struct {

View File

@ -72,8 +72,8 @@ struct HistoryInfo {
struct PasteDateTime {
int32_t syncTime = 0;
std::shared_ptr<PasteData> data;
int32_t errorCode = 0;
std::shared_ptr<PasteData> data;
};
struct PasteDateResult {