Add mvcc.h to the tree

This commit is contained in:
Pekka Enberg 2023-05-09 10:41:33 +03:00
parent 779ad3066a
commit c94561a646
2 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,2 @@
Cargo.lock
bindings/c/include
target/

View file

@ -0,0 +1,26 @@
#ifndef MVCC_H
#define MVCC_H
#define MVCC_OK 0
#define MVCC_IO_ERROR_WRITE 778
typedef struct DbContext DbContext;
typedef const DbContext *MVCCDatabaseRef;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
MVCCDatabaseRef MVCCDatabaseOpen(const char *path);
void MVCCDatabaseClose(MVCCDatabaseRef db);
int32_t MVCCDatabaseInsert(MVCCDatabaseRef db, uint64_t id, const uint8_t *value_ptr, uintptr_t value_len);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif /* MVCC_H */