1
- //
2
- // cevfs.h
3
- // sqlite
4
- //
5
- // Created by Ryan Homer on 5/2/2016.
6
- // Copyright © 2016 Murage Inc. All rights reserved.
7
- //
1
+ /**
2
+ CEVFS
3
+ Compression & Encryption VFS
8
4
9
- #ifndef cevfs_h
10
- #define cevfs_h
5
+ Copyright (c) 2016 Ryan Homer, Murage Inc.
6
+
7
+ MIT License
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+ */
27
+
28
+ #ifndef __CEVFS_H__
29
+ #define __CEVFS_H__
11
30
12
31
#define CEVFS_OK 0
13
32
@@ -50,7 +69,12 @@ struct CevfsMethods {
50
69
};
51
70
typedef struct CevfsMethods CevfsMethods ;
52
71
53
- typedef int (* t_xAutoDetect )(void * pCtx , const char * zFile , const char * zHdr , size_t * pEncIvSz , CevfsMethods * );
72
+ typedef int (* t_xAutoDetect )(
73
+ void * pCtx , // Pointer to context passed in via 3rd param of cevfs_create_vfs.
74
+ const char * zFile , // Pointer to buffer containing the database filename.
75
+ const char * zHdr , // NULL if new database, otherwise database header after CEVFS- prefix.
76
+ size_t * pEncIvSz , // Pointer to encryption initialization vector (IV) size.
77
+ CevfsMethods * ); // Pointer to compression/encryption methods.
54
78
55
79
int cevfs_create_vfs (
56
80
char const * zName , // Name of the newly constructed VFS.
@@ -60,7 +84,6 @@ int cevfs_create_vfs(
60
84
int makeDefault // BOOL: Make this the default VFS? Typically false.
61
85
);
62
86
63
- int cevfs_set_vfs_key (const char * zName , const char * pExpr );
64
87
int cevfs_destroy_vfs (const char * zName );
65
88
66
89
/*!
@@ -76,4 +99,4 @@ int cevfs_build(
76
99
t_xAutoDetect // xAutoDetect method to set up xMethods.
77
100
);
78
101
79
- #endif /* cevfs_h */
102
+ #endif /* __CEVFS_H__ */
0 commit comments