mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Make restGetFile extern C
This commit is contained in:
@@ -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. */
|
||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user