-
Notifications
You must be signed in to change notification settings - Fork 2
/
sophia.h
47 lines (40 loc) · 1.03 KB
/
sophia.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef SOPHIA_H_
#define SOPHIA_H_
/*
* sophia database
* sphia.org
*
* Copyright (c) Dmitry Simonenko
* BSD License
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <stdint.h>
#if __GNUC__ >= 4
# define SP_API __attribute__((visibility("default")))
#else
# define SP_API
#endif
SP_API void *sp_env(void);
SP_API void *sp_document(void*);
SP_API int sp_setstring(void*, const char*, const void*, int);
SP_API int sp_setint(void*, const char*, int64_t);
SP_API void *sp_getobject(void*, const char*);
SP_API void *sp_getstring(void*, const char*, int*);
SP_API int64_t sp_getint(void*, const char*);
SP_API int sp_open(void*);
SP_API int sp_destroy(void*);
SP_API int sp_set(void*, void*);
SP_API int sp_upsert(void*, void*);
SP_API int sp_delete(void*, void*);
SP_API void *sp_get(void*, void*);
SP_API void *sp_cursor(void*);
SP_API void *sp_begin(void*);
SP_API int sp_prepare(void*);
SP_API int sp_commit(void*);
#ifdef __cplusplus
}
#endif
#endif