-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnvirons.Mobile.h
78 lines (58 loc) · 2.9 KB
/
Environs.Mobile.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
78
/**
* Environs mobile specific
* ------------------------------------------------------------------
* Copyright (c) Chi-Tai Dang
*
* @author Chi-Tai Dang
* @version 1.0
* @remarks
*
* This file is part of the Environs framework developed at the
* Lab for Human Centered Multimedia of the University of Augsburg.
* http://hcm-lab.de/environs
*
* Environ is free software; you can redistribute it and/or modify
* it under the terms of the Eclipse Public License v1.0.
* A copy of the license may be obtained at:
* http://www.eclipse.org/org/documents/epl-v10.html
* --------------------------------------------------------------------
*/
#ifndef INCLUDE_HCM_ENVIRONS_MOBILE_COMMON_H
#define INCLUDE_HCM_ENVIRONS_MOBILE_COMMON_H
#ifndef DISPLAYDEVICE
# include "Environs.Native.h"
# include "Environs.Msg.Types.h"
# include "Environs.Android.h"
# include "Environs.iOS.h"
# include "Environs.Win.Phone.h"
namespace environs
{
extern lib::SensorFrame g_OrientationFrame;
extern lib::SensorFrame g_AccelFrame;
extern unsigned int g_sendSequenceNumber;
extern bool opt_useSensors;
extern bool opt_usePushNotifications;
extern bool opt_useNativeDecoder;
extern bool opt_useHardwareEncoder;
extern bool AllocNativePlatformMobile ();
extern bool DetermineAndInitWorkDir ();
extern void DeallocNativePlatform ();
namespace API
{
extern bool opt ( int hInst, const char * key, const char * value );
extern bool opt ( JNIEnv * jenv, int hInst, const char * key, jstring value );
extern const char * opt ( int hInst, const char * key );
extern bool opt ( int hInst, const char * key, bool value );
extern bool optBool ( int hInst, const char * key );
extern const char * optString ( int hInst, const char * key );
extern void BridgeForData ( jint hInst, jint objID, jint nativeID, jint type, jint fileID, const char * fileDescriptor, jint size );
extern void BridgeForUdpData ( jint hInst, jint objID, SensorFrame * pack, int packSize );
extern void BridgeForMessage ( jint hInst, jint objID, int type, const void * message, int length );
extern void BridgeForMessageExt ( jint hInst, int deviceID, const char * areaName, const char * appName, int type, const void * message, int length );
extern void BridgeForNotify ( jint hInst, jint objID, int notification, jint source, void * contextPtr, int context );
extern void BridgeForNotifyExt ( jint hInst, jint deviceID, const char * areaName, const char * appName, jint notification, jint source, void * contextPtr );
extern void BridgeForStatusMessage ( jint hInst, const char * message );
} /* namespace API */
} /* namespace environs */
#endif
#endif /// end-INCLUDE_HCM_ENVIRONS_MOBILE_COMMON_H