Ocean
network/jni/JNI.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
#ifndef META_OCEAN_NETWORK_JNI_JNI_H
9
#define META_OCEAN_NETWORK_JNI_JNI_H
10
11
#include "
ocean/network/Network.h
"
12
13
#include <jni.h>
14
15
namespace
Ocean
16
{
17
18
namespace
Network
19
{
20
21
namespace
JNI
22
{
23
24
/**
25
* @ingroup network
26
* @defgroup networkjni Ocean Network JNI Library
27
* @{
28
* The Ocean Network JNI Library provides a Java Native Interface for Android.
29
* The library is available on Android platforms only.
30
* @}
31
*/
32
33
/**
34
* @namespace Ocean::Network::JNI Namespace of the Network JNI library.<p>
35
* The Namespace Ocean::Network::JNI is used in the entire Ocean Network JNI Library.
36
*/
37
38
#ifndef _ANDROID
39
#error This library is available on android platforms only!
40
#endif
// _ANDROID
41
42
// Defines OCEAN_NETWORK_JNI_EXPORT for dll export and import.
43
#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
44
#ifdef USE_OCEAN_ANDROID_WIN_EXPORT
45
#define OCEAN_NETWORK_JNI_EXPORT __declspec(dllexport)
46
#else
47
#define OCEAN_NETWORK_JNI_EXPORT __declspec(dllimport)
48
#endif
49
#else
50
#define OCEAN_NETWORK_JNI_EXPORT
51
#endif
52
53
}
54
55
}
56
57
}
58
59
#endif
// META_OCEAN_NETWORK_JNI_JNI_H
Network.h
Ocean
The namespace covering the entire Ocean framework.
Definition:
Accessor.h:15
impl
ocean
network
jni
JNI.h
Generated on Thu Nov 14 2024 06:04:22 for Ocean by
1.9.1