-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain_base.h
47 lines (38 loc) · 1.12 KB
/
main_base.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
/// @file
/// @author Boris Mikic
/// @version 3.3
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
///
/// @section DESCRIPTION
///
/// Defines main functions.
#ifndef APRIL_MAIN_BASE_H
#define APRIL_MAIN_BASE_H
#ifdef _ANDROID
#include <jni.h>
#include <string.h>
#endif
#include <hltypes/harray.h>
#include <hltypes/hstring.h>
#include "aprilExport.h"
#ifdef __APRIL_SINGLE_INSTANCE_NAME
#define __SINGLE_INSTANCE
#endif
namespace april
{
aprilFnExport bool __lockSingleInstanceMutex(hstr instanceName, chstr fallbackName);
aprilFnExport void __unlockSingleInstanceMutex();
#ifdef _ANDROID
aprilFnExport jint JNI_OnLoad(void (*anAprilInit)(const harray<hstr>&), void (*anAprilDestroy)(), JavaVM* vm, void* reserved);
#endif
}
#if !defined(_ANDROID) || defined(_OPENKODE)
aprilExport int april_main(void (*anAprilInit)(const harray<hstr>&), void (*anAprilDestroy)(), int argc, char** argv);
#endif
extern void april_init(const harray<hstr>& args);
extern void april_destroy();
#endif