Brenton Bostick
0d4838bd66
reimplement VirtualNetworkConfig.compareTo
2023-03-02 13:03:17 +01:00
Brenton Bostick
7372faf75e
reimplement VirtualNetworkConfig.equals
2023-03-02 13:03:17 +01:00
Brenton Bostick
a3c6d3e27f
fix ANDROID-49: VirtualNetworkConfig.equals is wrong
2023-03-02 13:03:17 +01:00
Brenton Bostick
61361f9a52
fix ANDROID-42: copy/paste error
2023-03-02 13:03:17 +01:00
Brenton Bostick
b5b6ce357f
make Version a plain data class
2023-03-02 13:03:17 +01:00
Brenton Bostick
a75c75c2cb
make Peer a plain data class
2023-03-02 13:03:17 +01:00
Brenton Bostick
a0a0d0dffe
add array functions
2023-03-02 13:03:17 +01:00
Brenton Bostick
35ae63cf10
remove unused PeerPhysicalPath.fixed
2023-03-02 13:03:17 +01:00
Brenton Bostick
0f687c8223
make PeerPhysicalPath a plain data class
2023-03-02 13:03:17 +01:00
Brenton Bostick
d1c2d4b996
add Node.toString
2023-03-02 13:03:17 +01:00
Brenton Bostick
eab289aed9
Node init work: separate Node construction and init
2023-03-02 13:03:17 +01:00
Brenton Bostick
1aa2139652
fix ANDROID-52: synchronization bug with nodeMap
2023-03-02 13:03:17 +01:00
Brenton Bostick
d810510c7f
make NodeStatus a plain data class
2023-03-02 13:03:17 +01:00
Brenton Bostick
1eb5d6674b
add VirtualNetworkType.fromInt
2023-03-02 13:03:17 +01:00
Brenton Bostick
373e1865a1
fix ANDROID-37: VirtualNetworkStatus out-of-sync with ZT_VirtualNetworkStatus enum
2023-03-02 13:03:17 +01:00
Brenton Bostick
af5b99a061
add VirtualNetworkStatus.fromInt
2023-03-02 13:03:17 +01:00
Brenton Bostick
1de1c50660
fix ANDROID-40: VirtualNetworkConfigOperation out-of-sync with ZT_VirtualNetworkConfigOperation enum
2023-03-02 13:03:17 +01:00
Brenton Bostick
e2d33ab3ff
add VirtualNetworkConfigOperation.fromInt
2023-03-02 13:03:17 +01:00
Brenton Bostick
210180ef97
fix ANDROID-36: issues with ResultCode
2023-03-02 13:03:17 +01:00
Brenton Bostick
ab164655f4
add ResultCode.fromInt
2023-03-02 13:03:17 +01:00
Brenton Bostick
43bf875e61
add PeerRole.fromInt
2023-03-02 13:03:17 +01:00
Brenton Bostick
5c9fbb90f5
add Event.fromInt
2023-03-02 13:03:17 +01:00
Brenton Bostick
1a97b5467b
ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jniarray.cpp
2023-03-02 13:03:17 +01:00
Brenton Bostick
3405bf0325
ANDROID-48: add ZT_jnicache.cpp
2023-03-02 13:03:17 +01:00
Brenton Bostick
e9154b986f
add LOG_TAG defines
2023-03-02 13:03:17 +01:00
Brenton Bostick
d65116efd7
add GETENV macro
2023-03-02 13:03:17 +01:00
Brenton Bostick
75d39a4193
update to use unique error codes
2023-03-02 13:03:17 +01:00
Brenton Bostick
eac55e3927
fix missing DeleteLocalRef in loops
2023-03-02 13:03:17 +01:00
Brenton Bostick
47023792c9
fix ANDROID-35: memory leak
2023-03-02 13:03:17 +01:00
Brenton Bostick
d24b706c7f
fix ANDROID-51: fieldName is uninitialized
2023-03-02 13:03:17 +01:00
Brenton Bostick
dde885f035
fix typo
2023-03-02 13:03:17 +01:00
Brenton Bostick
e840b31a7b
fix typos in JNI method signatures
2023-03-02 13:03:17 +01:00
Brenton Bostick
ea36b7cac2
fix typo in log message
2023-03-02 13:03:17 +01:00
Brenton Bostick
b11f323d6f
fix ANDROID-50: RESULT_ERROR_BAD_PARAMETER typo
2023-03-02 13:03:17 +01:00
Brenton Bostick
d81932307f
cleanup
2023-03-02 13:03:17 +01:00
Brenton Bostick
e20dfeaa82
move extern "C"
...
only JNI functions need to be exported
2023-03-02 13:03:17 +01:00
Brenton Bostick
951dc75d97
fix headers
...
use recommended headers and remove unused headers
2023-03-02 13:03:17 +01:00
Brenton Bostick
b2d779525d
add StringUtils
2023-03-02 13:03:17 +01:00
Brenton Bostick
d31f238be0
fix typos ( #1843 )
2023-01-11 19:42:30 +01:00
Grant Limberg
065f42af1d
Merge pull request #1807 from zerotier/cleanup/typos
...
fix typos
2022-12-05 08:34:53 -08:00
Brenton Bostick
5b5f9a069a
fix typos
2022-12-05 11:29:21 -05:00
Brenton Bostick
77c7f9133f
Migrate from ndk-build to CMake
2022-12-05 10:34:12 -05:00
Brenton Bostick
475281935e
Remove unused flags for arm64-v8a
...
Through using ndk-build, -Wno-unused-command-line-argument is passed in
somewhere in the pipeline and hides this warning.
The warning can be turned on with:
APP_CPPFLAGS := -Wunused-command-line-argument ...
and then when building, you can see:
C/C++: clang++: warning: argument unused during compilation: '-mfloat-abi=softfp' [-Wunused-command-line-argument]
C/C++: clang++: warning: argument unused during compilation: '-mfpu=neon' [-Wunused-command-line-argument]
C/C++: clang++: warning: argument unused during compilation: '-maes' [-Wunused-command-line-argument]
These are unused because both floating-point and NEON are required in
all standard ARMv8 implementations. [1] [2]
[1] https://developer.arm.com/documentation/den0024/a/AArch64-Floating-point-and-NEON
[2] https://stackoverflow.com/a/29891469
2022-12-05 10:34:12 -05:00
Brenton Bostick
cdf248b1e2
Fix build problem related to unified headers
...
Since NDKr15 (released 2017), unified headers are used by default [1]
Remove -isystem option that was passing bad values to command-line.
The actual value being passed to command-line was:
```
-isystem DK/sysroot/usr/include/RIPLE
```
because of using $NDK and $TRIPLE instead of $(NDK) and $(TRIPLE)
But regardless, $NDK and $TRIPLE were never actually defined values and were just
place-holders mentioned in [1]
[1] https://android.googlesource.com/platform/ndk/+/ndk-release-r16/docs/UnifiedHeaders.md
2022-12-05 10:34:12 -05:00
Brenton Bostick
9ac2cfe611
Fix warning: suggest braces around initialization of subobject
2022-12-01 08:35:31 -05:00
Brenton Bostick
3b8c33d49a
fix typos in code
2022-11-28 09:23:58 -05:00
Brenton Bostick
f74a594e98
fix typos in comments and strings
2022-11-28 09:23:45 -05:00
Grant Limberg
b41e0910b0
Fun times in ~~cleveland~~ NDK-land
2022-11-09 11:11:10 -08:00
Grant Limberg
a8dde7b89b
update JNI to add new status code
2022-03-04 14:28:25 -08:00
Grant Limberg
7a626abf15
remove BondController.cpp from android makefile
2021-10-28 12:37:36 -07:00