Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
579d572d
Commit
579d572d
authored
Dec 03, 2019
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make restGetFile extern C
parent
64b1b959
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
storage/connect/restget.cpp
storage/connect/restget.cpp
+2
-0
storage/connect/tabrest.cpp
storage/connect/tabrest.cpp
+3
-3
storage/connect/tabrest.h
storage/connect/tabrest.h
+3
-1
No files found.
storage/connect/restget.cpp
View file @
579d572d
...
@@ -13,6 +13,8 @@ using namespace concurrency::streams; // Asynchronous streams
...
@@ -13,6 +13,8 @@ using namespace concurrency::streams; // Asynchronous streams
typedef
const
char
*
PCSZ
;
typedef
const
char
*
PCSZ
;
extern
"C"
int
restGetFile
(
char
*
m
,
bool
xt
,
PCSZ
http
,
PCSZ
uri
,
PCSZ
fn
);
/***********************************************************************/
/***********************************************************************/
/* Make a local copy of the requested file. */
/* Make a local copy of the requested file. */
/***********************************************************************/
/***********************************************************************/
...
...
storage/connect/tabrest.cpp
View file @
579d572d
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#define _MAX_PATH 260
#define _MAX_PATH 260
#if !defined(__WIN__)
#if !defined(__WIN__)
#define __stdcall
#define __stdcall
//
#if !defined(REST_SOURCE)
#if !defined(REST_SOURCE)
//
#include <dlfcn.h> // dlopen(), dlclose(), dlsym() ...
#include <dlfcn.h> // dlopen(), dlclose(), dlsym() ...
//
#endif
#endif
#endif // !__WIN__
#endif // !__WIN__
#define _OS_H_INCLUDED // Prevent os.h to be called
#define _OS_H_INCLUDED // Prevent os.h to be called
#endif // !MARIADB
#endif // !MARIADB
...
...
storage/connect/tabrest.h
View file @
579d572d
...
@@ -18,7 +18,9 @@ typedef int(__stdcall* XGETREST) (char*, bool, PCSZ, PCSZ, PCSZ);
...
@@ -18,7 +18,9 @@ typedef int(__stdcall* XGETREST) (char*, bool, PCSZ, PCSZ, PCSZ);
/* Functions used by REST. */
/* Functions used by REST. */
/***********************************************************************/
/***********************************************************************/
XGETREST
GetRestFunction
(
PGLOBAL
g
);
XGETREST
GetRestFunction
(
PGLOBAL
g
);
int
restGetFile
(
char
*
m
,
bool
x
,
PCSZ
http
,
PCSZ
uri
,
PCSZ
fn
);
#if defined(REST_SOURCE)
extern
"C"
int
restGetFile
(
char
*
m
,
bool
xt
,
PCSZ
http
,
PCSZ
uri
,
PCSZ
fn
);
#endif // REST_SOURCE
#if defined(MARIADB)
#if defined(MARIADB)
PQRYRES
RESTColumns
(
PGLOBAL
g
,
PTOS
tp
,
char
*
tab
,
char
*
db
,
bool
info
);
PQRYRES
RESTColumns
(
PGLOBAL
g
,
PTOS
tp
,
char
*
tab
,
char
*
db
,
bool
info
);
#endif // !MARIADB
#endif // !MARIADB
...
...
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