LiteCore
Couchbase Lite cross-platform core implementation
Loading...
Searching...
No Matches
c4DocumentStruct.h
Go to the documentation of this file.
1//
2// c4DocumentStruct.h
3//
4// Copyright 2021-Present Couchbase, Inc.
5//
6// Use of this software is governed by the Business Source License included
7// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
8// in that file, in accordance with the Business Source License, use of this
9// software will be governed by the Apache License, Version 2.0, included in
10// the file licenses/APL2.txt.
11//
12
13#pragma once
14#include "c4DocumentTypes.h"
15
16#ifndef LITECORE_CPP_API
17# define LITECORE_CPP_API 0
18#endif
19
22
23// Ignore warning about not initializing members, it must be this way to be C-compatible
24// NOLINTBEGIN(cppcoreguidelines-pro-type-member-init)
26struct
27#if !LITECORE_CPP_API // C++ has a different declaration, in c4Document.hh
29#else
30 C4Document_C
31#endif
32{
33 void* _internal1; // placeholders for vtable-ptr and refcount (see c4Document.hh)
35
40
42
44};
45
46// NOLINTEND(cppcoreguidelines-pro-type-member-init)
47
#define C4_ASSUME_NONNULL_BEGIN
Definition c4Compat.h:36
#define C4API_END_DECLS
Definition c4Compat.h:116
#define C4API_BEGIN_DECLS
Definition c4Compat.h:115
#define C4_ASSUME_NONNULL_END
Definition c4Compat.h:37
uint64_t C4SequenceNumber
A database sequence number, representing the order in which a revision was created.
Definition c4Base.h:91
C4DocumentFlags
Definition c4DocumentTypes.h:25
Describes a version-controlled document.
Definition c4DocumentStruct.h:32
C4ExtraInfo extraInfo
For client use.
Definition c4DocumentStruct.h:43
C4Revision selectedRev
Describes the currently-selected revision.
Definition c4DocumentStruct.h:41
C4DocumentFlags flags
Document flags.
Definition c4DocumentStruct.h:36
C4HeapString docID
Document ID.
Definition c4DocumentStruct.h:37
void * _internal2
Definition c4DocumentStruct.h:34
C4SequenceNumber sequence
Sequence at which doc was last updated.
Definition c4DocumentStruct.h:39
void * _internal1
Definition c4DocumentStruct.h:33
C4HeapString revID
Revision ID of current revision.
Definition c4DocumentStruct.h:38
Client-defined metadata that can be associated with some objects like C4Database.
Definition c4Base.h:107
Describes a revision of a document.
Definition c4DocumentTypes.h:60
A simple reference to a block of memory.
Definition FLSlice.h:45