Skip to content

Commit 4e4031d

Browse files
committed
Add MIT license text to source files.
1 parent 8e77074 commit 4e4031d

File tree

3 files changed

+88
-22
lines changed

3 files changed

+88
-22
lines changed

cevfs/cevfs.c

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1-
/*
2-
Compression & Encryption VFS
3-
*/
1+
/**
2+
CEVFS
3+
Compression & Encryption VFS
4+
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+
428
#ifndef SQLITE_AMALGAMATION
529
#include <stdlib.h>
630
#include <string.h>

cevfs/cevfs.h

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
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
84
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__
1130

1231
#define CEVFS_OK 0
1332

@@ -50,7 +69,12 @@ struct CevfsMethods {
5069
};
5170
typedef struct CevfsMethods CevfsMethods;
5271

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.
5478

5579
int cevfs_create_vfs(
5680
char const *zName, // Name of the newly constructed VFS.
@@ -60,7 +84,6 @@ int cevfs_create_vfs(
6084
int makeDefault // BOOL: Make this the default VFS? Typically false.
6185
);
6286

63-
int cevfs_set_vfs_key(const char *zName, const char *pExpr);
6487
int cevfs_destroy_vfs(const char *zName);
6588

6689
/*!
@@ -76,4 +99,4 @@ int cevfs_build(
7699
t_xAutoDetect // xAutoDetect method to set up xMethods.
77100
);
78101

79-
#endif /* cevfs_h */
102+
#endif /* __CEVFS_H__ */

cevfs_build/cevfs_build.c

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1-
//
2-
// main.c
3-
// ceimport
4-
//
5-
// Created by Ryan Homer on 2/4/2016.
6-
// Copyright © 2016 Murage Inc. All rights reserved.
7-
//
1+
/**
2+
CEVFS - Compression & Encryption VFS
3+
cevfs_build
4+
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+
*/
827

928
#include <stdio.h>
1029
#include <assert.h>

0 commit comments

Comments
 (0)