Couchbase Lite C
Couchbase Lite C API
CBLPlatform.h
Go to the documentation of this file.
1//
2// CBLPlatform.h
3//
4// Copyright © 2019 Couchbase. All rights reserved.
5//
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17//
18
19#pragma once
20#include "CBLBase.h"
21
23
24#ifdef __ANDROID__
25
31typedef struct {
38 const char* filesDir;
39
45 const char* tempDir;
46} CBLInitContext;
47
54bool CBL_Init(CBLInitContext context, CBLError* _cbl_nullable outError) CBLAPI;
55
58#endif
59
#define CBLAPI
Definition: CBL_Compat.h:98
#define _cbl_nullable
Definition: CBL_Compat.h:86
#define CBL_CAPI_BEGIN
Definition: CBL_Compat.h:99
#define CBL_CAPI_END
Definition: CBL_Compat.h:100
A struct holding information about an error.
Definition: CBLBase.h:104