Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gosqlite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gosqlite
Commits
57134f1f
Commit
57134f1f
authored
Mar 10, 2012
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include _cgo_export.h generated header file.
parent
b2c37cab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
function.c
function.c
+1
-7
hook.c
hook.c
+1
-0
trace.c
trace.c
+2
-0
No files found.
function.c
View file @
57134f1f
#include <sqlite3.h>
#include <stdlib.h>
extern
void
goXAuxDataDestroy
(
void
*
ad
);
#include "_cgo_export.h"
void
goSqlite3SetAuxdata
(
sqlite3_context
*
ctx
,
int
N
,
void
*
ad
)
{
sqlite3_set_auxdata
(
ctx
,
N
,
ad
,
goXAuxDataDestroy
);
}
extern
void
goXFunc
(
sqlite3_context
*
ctx
,
void
*
udf
,
void
*
goctx
,
int
argc
,
sqlite3_value
**
argv
);
extern
void
goXStep
(
sqlite3_context
*
ctx
,
void
*
udf
,
int
argc
,
sqlite3_value
**
argv
);
extern
void
goXFinal
(
sqlite3_context
*
ctx
,
void
*
udf
);
extern
void
goXDestroy
(
void
*
pApp
);
static
void
cXFunc
(
sqlite3_context
*
ctx
,
int
argc
,
sqlite3_value
**
argv
)
{
void
*
udf
=
sqlite3_user_data
(
ctx
);
void
*
goctx
=
sqlite3_get_auxdata
(
ctx
,
0
);
...
...
hook.c
View file @
57134f1f
...
...
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
#include <sqlite3.h>
//#include "_cgo_export.h"
extern
int
goXCommitHook
(
void
*
udp
);
...
...
trace.c
View file @
57134f1f
...
...
@@ -4,12 +4,14 @@
#include <sqlite3.h>
#include <stdlib.h>
//#include "_cgo_export.h"
extern
void
goXTrace
(
void
*
udp
,
const
char
*
sql
);
void
goSqlite3Trace
(
sqlite3
*
db
,
void
*
udp
)
{
sqlite3_trace
(
db
,
goXTrace
,
udp
);
}
extern
void
goXProfile
(
void
*
udp
,
const
char
*
sql
,
sqlite3_uint64
nanoseconds
);
void
goSqlite3Profile
(
sqlite3
*
db
,
void
*
udp
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment