mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
4d93c7f3b0
In addition to files and Mongo collections, JSON as well as XML and CSV data can be retrieved from the net as answers from REST queries. Because it uses and external package (cpprestsdk) this is currently available only to MariaDB servers compiled from source. -- Add compile flags needed on Windows /MD or /MDd (debug) -- Also include some changes needed on Linux modified: storage/connect/CMakeLists.txt - Add the xtrc tracing function modified: storage/connect/global.h modified: storage/connect/plugutil.cpp - Modify tracing to use xtrc and some typo modified: storage/connect/array.cpp modified: storage/connect/block.h modified: storage/connect/restget.cpp - Fix compilation error when ZIP is not supported modified: storage/connect/ha_connect.cc modified: storage/connect/tabfmt.cpp - Add some tracing + typo modified: storage/connect/mycat.cc modified: storage/connect/tabjson.cpp - Add conditional code based on MARIADB This to be able to use the same code in CONNECT and EOM modules modified: storage/connect/osutil.h modified: storage/connect/tabrest.cpp - Replace PlugSetPath by some concat (crashed on Fedora) + typo modified: storage/connect/reldef.cpp - Try to fix test failures modified: zlib/CMakeLists.txt
58 lines
1 KiB
C
58 lines
1 KiB
C
/* Copyright (C) MariaDB Corporation Ab */
|
|
#ifndef __OSUTIL_H__
|
|
#define __OSUTIL_H__
|
|
|
|
#if defined(UNIX) || defined(UNIV_LINUX)
|
|
#if defined(MARIADB)
|
|
#include "my_global.h"
|
|
#else
|
|
#include "mini-global.h"
|
|
#endif
|
|
#include <errno.h>
|
|
#include <stddef.h>
|
|
#include "os.h"
|
|
|
|
#define MB_OK 0x00000000
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int GetLastError();
|
|
void _splitpath(const char*, char*, char*, char*, char*);
|
|
void _makepath(char*, const char*, const char*, const char*, const char*);
|
|
char *_fullpath(char *absPath, const char *relPath, size_t maxLength);
|
|
BOOL MessageBeep(uint);
|
|
unsigned long _filelength(int fd);
|
|
|
|
PSZ strupr(PSZ s);
|
|
PSZ strlwr(PSZ s);
|
|
|
|
typedef size_t FILEPOS;
|
|
//pedef int FILEHANDLE; // UNIX
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#else /* WINDOWS */
|
|
#include <windows.h>
|
|
|
|
typedef __int64 FILEPOS;
|
|
//pedef HANDLE FILEHANDLE; // Win32
|
|
|
|
#endif /* WINDOWS */
|
|
|
|
#define XSTR(x) ((x)?(x):"<null>")
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
my_bool CloseFileHandle(HANDLE h);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* __OSUTIL_H__ */
|