-
Notifications
You must be signed in to change notification settings - Fork 84
/
OsmAndCore.h
77 lines (69 loc) · 2.2 KB
/
OsmAndCore.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef _OSMAND_CORE_OSMAND_CORE_H_
#define _OSMAND_CORE_OSMAND_CORE_H_
#if defined(OSMAND_CORE_EXPORTS)
# if defined(_WIN32) || defined(__CYGWIN__)
# define OSMAND_CORE_API \
__declspec(dllexport)
# define OSMAND_CORE_CALL \
__stdcall
# else
# if __GNUC__ >= 4
# define OSMAND_CORE_API \
__attribute__ ((visibility ("default")))
# else
# define OSMAND_CORE_API
# endif
# define OSMAND_CORE_CALL
# endif
#elif !defined(OSMAND_CORE_STATIC)
# if defined(_WIN32) || defined(__CYGWIN__)
# define OSMAND_CORE_API \
__declspec(dllimport)
# define OSMAND_CORE_API_FUNCTION \
extern OSMAND_CORE_API
# define OSMAND_CORE_CALL \
__stdcall
# else
# if __GNUC__ >= 4
# define OSMAND_CORE_API \
__attribute__ ((visibility ("default")))
# else
# define OSMAND_CORE_API
# endif
# define OSMAND_CORE_CALL
# endif
#else
# define OSMAND_CORE_API
# define OSMAND_CORE_CALL
#endif
#if !defined(OSMAND_DEBUG)
# if defined(DEBUG) || defined(_DEBUG)
# define OSMAND_DEBUG 1
# endif
#endif
#if !defined(OSMAND_DEBUG)
# define OSMAND_DEBUG 0
#endif
#include <memory>
#include <OsmAndCore/QtExtensions.h>
#include <QtGlobal>
// Ensure that SKIA is using RGBA order
#include <OsmAndCore/ignore_warnings_on_external_includes.h>
#include <SkColor.h>
#include <OsmAndCore/restore_internal_warnings.h>
#if !SK_PMCOLOR_BYTE_ORDER(R,G,B,A)
# error SKIA must be configured to use RGBA color order
#endif
namespace OsmAnd
{
class ICoreResourcesProvider;
class IMemoryManager;
OSMAND_CORE_API bool OSMAND_CORE_CALL InitializeCore(
const std::shared_ptr<const ICoreResourcesProvider>& coreResourcesProvider,
const char* appFontsPath = nullptr);
OSMAND_CORE_API const std::shared_ptr<const ICoreResourcesProvider>& OSMAND_CORE_CALL getCoreResourcesProvider();
OSMAND_CORE_API const QString& OSMAND_CORE_CALL getFontDirectory();
OSMAND_CORE_API IMemoryManager* OSMAND_CORE_CALL getMemoryManager();
OSMAND_CORE_API void OSMAND_CORE_CALL ReleaseCore();
}
#endif // !defined(_OSMAND_CORE_OSMAND_CORE_H_)