@dittolive/ditto 4.12.0 → 5.0.0-experimental.js-cocoapods-publishing.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/node/ditto.cjs.js +247 -425
- package/node/ditto.darwin-arm64.node +0 -0
- package/node/ditto.darwin-x64.node +0 -0
- package/node/ditto.linux-arm64.node +0 -0
- package/node/ditto.linux-x64.node +0 -0
- package/node/ditto.win32-x64.node +0 -0
- package/package.json +1 -1
- package/react-native/android/dittoffi/src/ditto_c_string.i +33 -0
- package/react-native/android/dittoffi/src/dittoffi.h +68 -80
- package/react-native/android/dittoffi/src/dittoffi_java.cpp +761 -1174
- package/react-native/android/dittoffi/src/dittoffi_java.h +2 -8
- package/react-native/android/dittoffi/src/dittoffi_java.i +1 -0
- package/react-native/android/dittoffi/src/dittomesh_java.i +0 -9
- package/react-native/android/dittoffi/src/dittostore_java.i +12 -13
- package/react-native/android/dittoffi/src/presence.h +0 -36
- package/react-native/cpp/include/DQL.h +0 -2
- package/react-native/cpp/include/Presence.h +0 -2
- package/react-native/cpp/include/SyncSubscription.h +20 -0
- package/react-native/cpp/src/DQL.cpp +0 -59
- package/react-native/cpp/src/Lifecycle.cpp +1 -6
- package/react-native/cpp/src/Presence.cpp +0 -40
- package/react-native/cpp/src/SyncSubscription.cpp +180 -0
- package/react-native/cpp/src/main.cpp +27 -19
- package/react-native/ditto.es6.js +1 -1
- package/types/ditto.d.ts +44 -65
- package/web/ditto.es6.js +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.wasm +0 -0
|
@@ -797,7 +797,7 @@ namespace Swig {
|
|
|
797
797
|
namespace Swig {
|
|
798
798
|
namespace {
|
|
799
799
|
jclass jclass_dittoffiJNI = NULL;
|
|
800
|
-
jmethodID director_method_ids[
|
|
800
|
+
jmethodID director_method_ids[119];
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
|
|
@@ -985,6 +985,18 @@ SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
|
|
|
985
985
|
) {
|
|
986
986
|
return unsigned_long_ints[index];
|
|
987
987
|
}
|
|
988
|
+
|
|
989
|
+
// This makes working with sync subscriptions easier
|
|
990
|
+
dittoffi_sync_subscription_t const * dittoffi_sync_subscription_at_index(
|
|
991
|
+
dittoffi_sync_subscription_t const * * subscriptions,
|
|
992
|
+
unsigned long int index
|
|
993
|
+
) {
|
|
994
|
+
if (subscriptions == nullptr) {
|
|
995
|
+
throw std::invalid_argument("subscriptions pointer is null");
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
return subscriptions[index];
|
|
999
|
+
}
|
|
988
1000
|
}
|
|
989
1001
|
|
|
990
1002
|
|
|
@@ -4914,73 +4926,13 @@ void SwigDirector_PresenceRust::java_release() {
|
|
|
4914
4926
|
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
4915
4927
|
}
|
|
4916
4928
|
|
|
4917
|
-
void SwigDirector_PresenceRust::v1Callback(char const *const json) {
|
|
4918
|
-
JNIEnvWrapper swigjnienv(this) ;
|
|
4919
|
-
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
4920
|
-
jobject swigjobj = (jobject) NULL ;
|
|
4921
|
-
jstring jjson = 0 ;
|
|
4922
|
-
|
|
4923
|
-
if (!swig_override[2]) {
|
|
4924
|
-
SWIG_JavaThrowException(JNIEnvWrapper(this).getJNIEnv(), SWIG_JavaDirectorPureVirtual, "Attempted to invoke pure virtual method PresenceRust::v1Callback.");
|
|
4925
|
-
return;
|
|
4926
|
-
}
|
|
4927
|
-
swigjobj = swig_get_self(jenv);
|
|
4928
|
-
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
4929
|
-
jjson = 0;
|
|
4930
|
-
if (json) {
|
|
4931
|
-
jjson = jenv->NewStringUTF((const char *)json);
|
|
4932
|
-
if (!jjson) return ;
|
|
4933
|
-
}
|
|
4934
|
-
Swig::LocalRefGuard json_refguard(jenv, jjson);
|
|
4935
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[111], swigjobj, jjson);
|
|
4936
|
-
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
4937
|
-
if (swigerror) {
|
|
4938
|
-
Swig::DirectorException::raise(jenv, swigerror);
|
|
4939
|
-
}
|
|
4940
|
-
|
|
4941
|
-
} else {
|
|
4942
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object in PresenceRust::v1Callback ");
|
|
4943
|
-
}
|
|
4944
|
-
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
4945
|
-
}
|
|
4946
|
-
|
|
4947
|
-
void SwigDirector_PresenceRust::v2Callback(char const *const json) {
|
|
4948
|
-
JNIEnvWrapper swigjnienv(this) ;
|
|
4949
|
-
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
4950
|
-
jobject swigjobj = (jobject) NULL ;
|
|
4951
|
-
jstring jjson = 0 ;
|
|
4952
|
-
|
|
4953
|
-
if (!swig_override[3]) {
|
|
4954
|
-
SWIG_JavaThrowException(JNIEnvWrapper(this).getJNIEnv(), SWIG_JavaDirectorPureVirtual, "Attempted to invoke pure virtual method PresenceRust::v2Callback.");
|
|
4955
|
-
return;
|
|
4956
|
-
}
|
|
4957
|
-
swigjobj = swig_get_self(jenv);
|
|
4958
|
-
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
4959
|
-
jjson = 0;
|
|
4960
|
-
if (json) {
|
|
4961
|
-
jjson = jenv->NewStringUTF((const char *)json);
|
|
4962
|
-
if (!jjson) return ;
|
|
4963
|
-
}
|
|
4964
|
-
Swig::LocalRefGuard json_refguard(jenv, jjson);
|
|
4965
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[112], swigjobj, jjson);
|
|
4966
|
-
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
4967
|
-
if (swigerror) {
|
|
4968
|
-
Swig::DirectorException::raise(jenv, swigerror);
|
|
4969
|
-
}
|
|
4970
|
-
|
|
4971
|
-
} else {
|
|
4972
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object in PresenceRust::v2Callback ");
|
|
4973
|
-
}
|
|
4974
|
-
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
4975
|
-
}
|
|
4976
|
-
|
|
4977
4929
|
void SwigDirector_PresenceRust::v3Callback(char const *const json) {
|
|
4978
4930
|
JNIEnvWrapper swigjnienv(this) ;
|
|
4979
4931
|
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
4980
4932
|
jobject swigjobj = (jobject) NULL ;
|
|
4981
4933
|
jstring jjson = 0 ;
|
|
4982
4934
|
|
|
4983
|
-
if (!swig_override[
|
|
4935
|
+
if (!swig_override[2]) {
|
|
4984
4936
|
SWIG_JavaThrowException(JNIEnvWrapper(this).getJNIEnv(), SWIG_JavaDirectorPureVirtual, "Attempted to invoke pure virtual method PresenceRust::v3Callback.");
|
|
4985
4937
|
return;
|
|
4986
4938
|
}
|
|
@@ -4992,7 +4944,7 @@ void SwigDirector_PresenceRust::v3Callback(char const *const json) {
|
|
|
4992
4944
|
if (!jjson) return ;
|
|
4993
4945
|
}
|
|
4994
4946
|
Swig::LocalRefGuard json_refguard(jenv, jjson);
|
|
4995
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
4947
|
+
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[111], swigjobj, jjson);
|
|
4996
4948
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
4997
4949
|
if (swigerror) {
|
|
4998
4950
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5004,64 +4956,18 @@ void SwigDirector_PresenceRust::v3Callback(char const *const json) {
|
|
|
5004
4956
|
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
5005
4957
|
}
|
|
5006
4958
|
|
|
5007
|
-
void SwigDirector_PresenceRust::register_v1() {
|
|
5008
|
-
JNIEnvWrapper swigjnienv(this) ;
|
|
5009
|
-
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
5010
|
-
jobject swigjobj = (jobject) NULL ;
|
|
5011
|
-
|
|
5012
|
-
if (!swig_override[5]) {
|
|
5013
|
-
PresenceRust::register_v1();
|
|
5014
|
-
return;
|
|
5015
|
-
}
|
|
5016
|
-
swigjobj = swig_get_self(jenv);
|
|
5017
|
-
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5018
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[114], swigjobj);
|
|
5019
|
-
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5020
|
-
if (swigerror) {
|
|
5021
|
-
Swig::DirectorException::raise(jenv, swigerror);
|
|
5022
|
-
}
|
|
5023
|
-
|
|
5024
|
-
} else {
|
|
5025
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object in PresenceRust::register_v1 ");
|
|
5026
|
-
}
|
|
5027
|
-
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
5028
|
-
}
|
|
5029
|
-
|
|
5030
|
-
void SwigDirector_PresenceRust::register_v2() {
|
|
5031
|
-
JNIEnvWrapper swigjnienv(this) ;
|
|
5032
|
-
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
5033
|
-
jobject swigjobj = (jobject) NULL ;
|
|
5034
|
-
|
|
5035
|
-
if (!swig_override[6]) {
|
|
5036
|
-
PresenceRust::register_v2();
|
|
5037
|
-
return;
|
|
5038
|
-
}
|
|
5039
|
-
swigjobj = swig_get_self(jenv);
|
|
5040
|
-
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5041
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[115], swigjobj);
|
|
5042
|
-
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5043
|
-
if (swigerror) {
|
|
5044
|
-
Swig::DirectorException::raise(jenv, swigerror);
|
|
5045
|
-
}
|
|
5046
|
-
|
|
5047
|
-
} else {
|
|
5048
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object in PresenceRust::register_v2 ");
|
|
5049
|
-
}
|
|
5050
|
-
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
5051
|
-
}
|
|
5052
|
-
|
|
5053
4959
|
void SwigDirector_PresenceRust::register_v3() {
|
|
5054
4960
|
JNIEnvWrapper swigjnienv(this) ;
|
|
5055
4961
|
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
5056
4962
|
jobject swigjobj = (jobject) NULL ;
|
|
5057
4963
|
|
|
5058
|
-
if (!swig_override[
|
|
4964
|
+
if (!swig_override[3]) {
|
|
5059
4965
|
PresenceRust::register_v3();
|
|
5060
4966
|
return;
|
|
5061
4967
|
}
|
|
5062
4968
|
swigjobj = swig_get_self(jenv);
|
|
5063
4969
|
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5064
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
4970
|
+
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[112], swigjobj);
|
|
5065
4971
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5066
4972
|
if (swigerror) {
|
|
5067
4973
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5073,64 +4979,18 @@ void SwigDirector_PresenceRust::register_v3() {
|
|
|
5073
4979
|
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
5074
4980
|
}
|
|
5075
4981
|
|
|
5076
|
-
void SwigDirector_PresenceRust::requestV1Update() {
|
|
5077
|
-
JNIEnvWrapper swigjnienv(this) ;
|
|
5078
|
-
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
5079
|
-
jobject swigjobj = (jobject) NULL ;
|
|
5080
|
-
|
|
5081
|
-
if (!swig_override[8]) {
|
|
5082
|
-
PresenceRust::requestV1Update();
|
|
5083
|
-
return;
|
|
5084
|
-
}
|
|
5085
|
-
swigjobj = swig_get_self(jenv);
|
|
5086
|
-
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5087
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[117], swigjobj);
|
|
5088
|
-
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5089
|
-
if (swigerror) {
|
|
5090
|
-
Swig::DirectorException::raise(jenv, swigerror);
|
|
5091
|
-
}
|
|
5092
|
-
|
|
5093
|
-
} else {
|
|
5094
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object in PresenceRust::requestV1Update ");
|
|
5095
|
-
}
|
|
5096
|
-
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
|
-
void SwigDirector_PresenceRust::requestV2Update() {
|
|
5100
|
-
JNIEnvWrapper swigjnienv(this) ;
|
|
5101
|
-
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
5102
|
-
jobject swigjobj = (jobject) NULL ;
|
|
5103
|
-
|
|
5104
|
-
if (!swig_override[9]) {
|
|
5105
|
-
PresenceRust::requestV2Update();
|
|
5106
|
-
return;
|
|
5107
|
-
}
|
|
5108
|
-
swigjobj = swig_get_self(jenv);
|
|
5109
|
-
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5110
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[118], swigjobj);
|
|
5111
|
-
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5112
|
-
if (swigerror) {
|
|
5113
|
-
Swig::DirectorException::raise(jenv, swigerror);
|
|
5114
|
-
}
|
|
5115
|
-
|
|
5116
|
-
} else {
|
|
5117
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object in PresenceRust::requestV2Update ");
|
|
5118
|
-
}
|
|
5119
|
-
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
|
|
5120
|
-
}
|
|
5121
|
-
|
|
5122
4982
|
void SwigDirector_PresenceRust::requestV3Update() {
|
|
5123
4983
|
JNIEnvWrapper swigjnienv(this) ;
|
|
5124
4984
|
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
|
|
5125
4985
|
jobject swigjobj = (jobject) NULL ;
|
|
5126
4986
|
|
|
5127
|
-
if (!swig_override[
|
|
4987
|
+
if (!swig_override[4]) {
|
|
5128
4988
|
PresenceRust::requestV3Update();
|
|
5129
4989
|
return;
|
|
5130
4990
|
}
|
|
5131
4991
|
swigjobj = swig_get_self(jenv);
|
|
5132
4992
|
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5133
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
4993
|
+
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[113], swigjobj);
|
|
5134
4994
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5135
4995
|
if (swigerror) {
|
|
5136
4996
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5148,20 +5008,14 @@ void SwigDirector_PresenceRust::swig_connect_director(JNIEnv *jenv, jobject jsel
|
|
|
5148
5008
|
static SwigDirectorMethod methods[] = {
|
|
5149
5009
|
SwigDirectorMethod(jenv, baseclass, "java_retain", "()V"),
|
|
5150
5010
|
SwigDirectorMethod(jenv, baseclass, "java_release", "()V"),
|
|
5151
|
-
SwigDirectorMethod(jenv, baseclass, "v1Callback", "(Ljava/lang/String;)V"),
|
|
5152
|
-
SwigDirectorMethod(jenv, baseclass, "v2Callback", "(Ljava/lang/String;)V"),
|
|
5153
5011
|
SwigDirectorMethod(jenv, baseclass, "v3Callback", "(Ljava/lang/String;)V"),
|
|
5154
|
-
SwigDirectorMethod(jenv, baseclass, "register_v1", "()V"),
|
|
5155
|
-
SwigDirectorMethod(jenv, baseclass, "register_v2", "()V"),
|
|
5156
5012
|
SwigDirectorMethod(jenv, baseclass, "register_v3", "()V"),
|
|
5157
|
-
SwigDirectorMethod(jenv, baseclass, "requestV1Update", "()V"),
|
|
5158
|
-
SwigDirectorMethod(jenv, baseclass, "requestV2Update", "()V"),
|
|
5159
5013
|
SwigDirectorMethod(jenv, baseclass, "requestV3Update", "()V")
|
|
5160
5014
|
};
|
|
5161
5015
|
|
|
5162
5016
|
if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
|
|
5163
5017
|
bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
|
|
5164
|
-
for (int i = 0; i <
|
|
5018
|
+
for (int i = 0; i < 5; ++i) {
|
|
5165
5019
|
swig_override[i] = derived;
|
|
5166
5020
|
}
|
|
5167
5021
|
}
|
|
@@ -5187,7 +5041,7 @@ void SwigDirector_StoreObserverHandlerRust::java_retain() {
|
|
|
5187
5041
|
}
|
|
5188
5042
|
swigjobj = swig_get_self(jenv);
|
|
5189
5043
|
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5190
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
5044
|
+
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[114], swigjobj);
|
|
5191
5045
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5192
5046
|
if (swigerror) {
|
|
5193
5047
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5210,7 +5064,7 @@ void SwigDirector_StoreObserverHandlerRust::java_release() {
|
|
|
5210
5064
|
}
|
|
5211
5065
|
swigjobj = swig_get_self(jenv);
|
|
5212
5066
|
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5213
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
5067
|
+
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[115], swigjobj);
|
|
5214
5068
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5215
5069
|
if (swigerror) {
|
|
5216
5070
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5236,7 +5090,7 @@ void SwigDirector_StoreObserverHandlerRust::eventHandler(ChangeHandlerWithQueryR
|
|
|
5236
5090
|
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5237
5091
|
jc_cb_params = 0;
|
|
5238
5092
|
*((ChangeHandlerWithQueryResult_t **)&jc_cb_params) = new ChangeHandlerWithQueryResult_t(SWIG_STD_MOVE(c_cb_params));
|
|
5239
|
-
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
5093
|
+
jenv->CallStaticVoidMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[116], swigjobj, jc_cb_params);
|
|
5240
5094
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5241
5095
|
if (swigerror) {
|
|
5242
5096
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5280,7 +5134,7 @@ dittoffi_result_int64_t SwigDirector_StoreObserverHandlerRust::registerStoreObse
|
|
|
5280
5134
|
}
|
|
5281
5135
|
Swig::LocalRefGuard query_args_cbor_refguard(jenv, jquery_args_cbor);
|
|
5282
5136
|
jlq_availability = (jint) lq_availability;
|
|
5283
|
-
jresult = (jlong) jenv->CallStaticLongMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
5137
|
+
jresult = (jlong) jenv->CallStaticLongMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[117], swigjobj, jditto_raw, jquery, jquery_args_cbor, jlq_availability);
|
|
5284
5138
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5285
5139
|
if (swigerror) {
|
|
5286
5140
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -5316,7 +5170,7 @@ int SwigDirector_StoreObserverHandlerRust::startLiveQuery(CDitto *ditto_raw,int6
|
|
|
5316
5170
|
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
|
|
5317
5171
|
*((CDitto **)&jditto_raw) = (CDitto *) ditto_raw;
|
|
5318
5172
|
jid = (jlong) id;
|
|
5319
|
-
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[
|
|
5173
|
+
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_dittoffiJNI, Swig::director_method_ids[118], swigjobj, jditto_raw, jid);
|
|
5320
5174
|
jthrowable swigerror = jenv->ExceptionOccurred();
|
|
5321
5175
|
if (swigerror) {
|
|
5322
5176
|
Swig::DirectorException::raise(jenv, swigerror);
|
|
@@ -9466,6 +9320,35 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_get_1inde
|
|
|
9466
9320
|
}
|
|
9467
9321
|
|
|
9468
9322
|
|
|
9323
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1at_1index(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
|
|
9324
|
+
jlong jresult = 0 ;
|
|
9325
|
+
dittoffi_sync_subscription_t **arg1 = (dittoffi_sync_subscription_t **) 0 ;
|
|
9326
|
+
unsigned long arg2 ;
|
|
9327
|
+
dittoffi_sync_subscription_t *result = 0 ;
|
|
9328
|
+
|
|
9329
|
+
(void)jenv;
|
|
9330
|
+
(void)jcls;
|
|
9331
|
+
arg1 = *(dittoffi_sync_subscription_t ***)&jarg1;
|
|
9332
|
+
arg2 = (unsigned long)jarg2;
|
|
9333
|
+
{
|
|
9334
|
+
try {
|
|
9335
|
+
result = (dittoffi_sync_subscription_t *)dittoffi_sync_subscription_at_index((dittoffi_sync_subscription const **)arg1,arg2);
|
|
9336
|
+
} catch (const std::runtime_error &e) {
|
|
9337
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
9338
|
+
return 0;
|
|
9339
|
+
} catch (const std::exception &e) {
|
|
9340
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
9341
|
+
return 0;
|
|
9342
|
+
} catch (...) {
|
|
9343
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
9344
|
+
return 0;
|
|
9345
|
+
}
|
|
9346
|
+
}
|
|
9347
|
+
*(dittoffi_sync_subscription_t **)&jresult = result;
|
|
9348
|
+
return jresult;
|
|
9349
|
+
}
|
|
9350
|
+
|
|
9351
|
+
|
|
9469
9352
|
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_new_1Ditto_1DocumentHandle(JNIEnv *jenv, jclass jcls) {
|
|
9470
9353
|
jlong jresult = 0 ;
|
|
9471
9354
|
CDocument_t **result = 0 ;
|
|
@@ -11790,68 +11673,6 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_delete_1Pr
|
|
|
11790
11673
|
}
|
|
11791
11674
|
|
|
11792
11675
|
|
|
11793
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1v1Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
11794
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
11795
|
-
char *arg2 = (char *) (char *)0 ;
|
|
11796
|
-
|
|
11797
|
-
(void)jenv;
|
|
11798
|
-
(void)jcls;
|
|
11799
|
-
(void)jarg1_;
|
|
11800
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
11801
|
-
arg2 = 0;
|
|
11802
|
-
if (jarg2) {
|
|
11803
|
-
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
|
11804
|
-
if (!arg2) return ;
|
|
11805
|
-
}
|
|
11806
|
-
{
|
|
11807
|
-
try {
|
|
11808
|
-
(arg1)->v1Callback((char const *)arg2);
|
|
11809
|
-
} catch (const std::runtime_error &e) {
|
|
11810
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11811
|
-
return ;
|
|
11812
|
-
} catch (const std::exception &e) {
|
|
11813
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11814
|
-
return ;
|
|
11815
|
-
} catch (...) {
|
|
11816
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
11817
|
-
return ;
|
|
11818
|
-
}
|
|
11819
|
-
}
|
|
11820
|
-
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
11821
|
-
}
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1v2Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
11825
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
11826
|
-
char *arg2 = (char *) (char *)0 ;
|
|
11827
|
-
|
|
11828
|
-
(void)jenv;
|
|
11829
|
-
(void)jcls;
|
|
11830
|
-
(void)jarg1_;
|
|
11831
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
11832
|
-
arg2 = 0;
|
|
11833
|
-
if (jarg2) {
|
|
11834
|
-
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
|
11835
|
-
if (!arg2) return ;
|
|
11836
|
-
}
|
|
11837
|
-
{
|
|
11838
|
-
try {
|
|
11839
|
-
(arg1)->v2Callback((char const *)arg2);
|
|
11840
|
-
} catch (const std::runtime_error &e) {
|
|
11841
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11842
|
-
return ;
|
|
11843
|
-
} catch (const std::exception &e) {
|
|
11844
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11845
|
-
return ;
|
|
11846
|
-
} catch (...) {
|
|
11847
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
11848
|
-
return ;
|
|
11849
|
-
}
|
|
11850
|
-
}
|
|
11851
|
-
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
11852
|
-
}
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
11676
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1v3Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
11856
11677
|
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
11857
11678
|
char *arg2 = (char *) (char *)0 ;
|
|
@@ -11883,66 +11704,6 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRu
|
|
|
11883
11704
|
}
|
|
11884
11705
|
|
|
11885
11706
|
|
|
11886
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1invokeV1Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
|
|
11887
|
-
void *arg1 = (void *) (void *)0 ;
|
|
11888
|
-
char *arg2 = (char *) 0 ;
|
|
11889
|
-
|
|
11890
|
-
(void)jenv;
|
|
11891
|
-
(void)jcls;
|
|
11892
|
-
arg1 = *(void **)&jarg1;
|
|
11893
|
-
arg2 = 0;
|
|
11894
|
-
if (jarg2) {
|
|
11895
|
-
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
|
11896
|
-
if (!arg2) return ;
|
|
11897
|
-
}
|
|
11898
|
-
{
|
|
11899
|
-
try {
|
|
11900
|
-
PresenceRust::invokeV1Callback(arg1,(char const *)arg2);
|
|
11901
|
-
} catch (const std::runtime_error &e) {
|
|
11902
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11903
|
-
return ;
|
|
11904
|
-
} catch (const std::exception &e) {
|
|
11905
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11906
|
-
return ;
|
|
11907
|
-
} catch (...) {
|
|
11908
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
11909
|
-
return ;
|
|
11910
|
-
}
|
|
11911
|
-
}
|
|
11912
|
-
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
11913
|
-
}
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1invokeV2Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
|
|
11917
|
-
void *arg1 = (void *) (void *)0 ;
|
|
11918
|
-
char *arg2 = (char *) (char *)0 ;
|
|
11919
|
-
|
|
11920
|
-
(void)jenv;
|
|
11921
|
-
(void)jcls;
|
|
11922
|
-
arg1 = *(void **)&jarg1;
|
|
11923
|
-
arg2 = 0;
|
|
11924
|
-
if (jarg2) {
|
|
11925
|
-
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
|
11926
|
-
if (!arg2) return ;
|
|
11927
|
-
}
|
|
11928
|
-
{
|
|
11929
|
-
try {
|
|
11930
|
-
PresenceRust::invokeV2Callback(arg1,(char const *)arg2);
|
|
11931
|
-
} catch (const std::runtime_error &e) {
|
|
11932
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11933
|
-
return ;
|
|
11934
|
-
} catch (const std::exception &e) {
|
|
11935
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11936
|
-
return ;
|
|
11937
|
-
} catch (...) {
|
|
11938
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
11939
|
-
return ;
|
|
11940
|
-
}
|
|
11941
|
-
}
|
|
11942
|
-
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
11943
|
-
}
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
11707
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1invokeV3Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
|
|
11947
11708
|
void *arg1 = (void *) (void *)0 ;
|
|
11948
11709
|
char *arg2 = (char *) (char *)0 ;
|
|
@@ -11973,102 +11734,6 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRu
|
|
|
11973
11734
|
}
|
|
11974
11735
|
|
|
11975
11736
|
|
|
11976
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1register_1v1(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
11977
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
11978
|
-
|
|
11979
|
-
(void)jenv;
|
|
11980
|
-
(void)jcls;
|
|
11981
|
-
(void)jarg1_;
|
|
11982
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
11983
|
-
{
|
|
11984
|
-
try {
|
|
11985
|
-
(arg1)->register_v1();
|
|
11986
|
-
} catch (const std::runtime_error &e) {
|
|
11987
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11988
|
-
return ;
|
|
11989
|
-
} catch (const std::exception &e) {
|
|
11990
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
11991
|
-
return ;
|
|
11992
|
-
} catch (...) {
|
|
11993
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
11994
|
-
return ;
|
|
11995
|
-
}
|
|
11996
|
-
}
|
|
11997
|
-
}
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1register_1v1SwigExplicitPresenceRust(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12001
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12002
|
-
|
|
12003
|
-
(void)jenv;
|
|
12004
|
-
(void)jcls;
|
|
12005
|
-
(void)jarg1_;
|
|
12006
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12007
|
-
{
|
|
12008
|
-
try {
|
|
12009
|
-
(arg1)->PresenceRust::register_v1();
|
|
12010
|
-
} catch (const std::runtime_error &e) {
|
|
12011
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12012
|
-
return ;
|
|
12013
|
-
} catch (const std::exception &e) {
|
|
12014
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12015
|
-
return ;
|
|
12016
|
-
} catch (...) {
|
|
12017
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12018
|
-
return ;
|
|
12019
|
-
}
|
|
12020
|
-
}
|
|
12021
|
-
}
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1register_1v2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12025
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12026
|
-
|
|
12027
|
-
(void)jenv;
|
|
12028
|
-
(void)jcls;
|
|
12029
|
-
(void)jarg1_;
|
|
12030
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12031
|
-
{
|
|
12032
|
-
try {
|
|
12033
|
-
(arg1)->register_v2();
|
|
12034
|
-
} catch (const std::runtime_error &e) {
|
|
12035
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12036
|
-
return ;
|
|
12037
|
-
} catch (const std::exception &e) {
|
|
12038
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12039
|
-
return ;
|
|
12040
|
-
} catch (...) {
|
|
12041
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12042
|
-
return ;
|
|
12043
|
-
}
|
|
12044
|
-
}
|
|
12045
|
-
}
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1register_1v2SwigExplicitPresenceRust(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12049
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12050
|
-
|
|
12051
|
-
(void)jenv;
|
|
12052
|
-
(void)jcls;
|
|
12053
|
-
(void)jarg1_;
|
|
12054
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12055
|
-
{
|
|
12056
|
-
try {
|
|
12057
|
-
(arg1)->PresenceRust::register_v2();
|
|
12058
|
-
} catch (const std::runtime_error &e) {
|
|
12059
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12060
|
-
return ;
|
|
12061
|
-
} catch (const std::exception &e) {
|
|
12062
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12063
|
-
return ;
|
|
12064
|
-
} catch (...) {
|
|
12065
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12066
|
-
return ;
|
|
12067
|
-
}
|
|
12068
|
-
}
|
|
12069
|
-
}
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
11737
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1register_1v3(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12073
11738
|
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12074
11739
|
|
|
@@ -12117,102 +11782,6 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRu
|
|
|
12117
11782
|
}
|
|
12118
11783
|
|
|
12119
11784
|
|
|
12120
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1requestV1Update(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12121
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12122
|
-
|
|
12123
|
-
(void)jenv;
|
|
12124
|
-
(void)jcls;
|
|
12125
|
-
(void)jarg1_;
|
|
12126
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12127
|
-
{
|
|
12128
|
-
try {
|
|
12129
|
-
(arg1)->requestV1Update();
|
|
12130
|
-
} catch (const std::runtime_error &e) {
|
|
12131
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12132
|
-
return ;
|
|
12133
|
-
} catch (const std::exception &e) {
|
|
12134
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12135
|
-
return ;
|
|
12136
|
-
} catch (...) {
|
|
12137
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12138
|
-
return ;
|
|
12139
|
-
}
|
|
12140
|
-
}
|
|
12141
|
-
}
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1requestV1UpdateSwigExplicitPresenceRust(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12145
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12146
|
-
|
|
12147
|
-
(void)jenv;
|
|
12148
|
-
(void)jcls;
|
|
12149
|
-
(void)jarg1_;
|
|
12150
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12151
|
-
{
|
|
12152
|
-
try {
|
|
12153
|
-
(arg1)->PresenceRust::requestV1Update();
|
|
12154
|
-
} catch (const std::runtime_error &e) {
|
|
12155
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12156
|
-
return ;
|
|
12157
|
-
} catch (const std::exception &e) {
|
|
12158
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12159
|
-
return ;
|
|
12160
|
-
} catch (...) {
|
|
12161
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12162
|
-
return ;
|
|
12163
|
-
}
|
|
12164
|
-
}
|
|
12165
|
-
}
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1requestV2Update(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12169
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12170
|
-
|
|
12171
|
-
(void)jenv;
|
|
12172
|
-
(void)jcls;
|
|
12173
|
-
(void)jarg1_;
|
|
12174
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12175
|
-
{
|
|
12176
|
-
try {
|
|
12177
|
-
(arg1)->requestV2Update();
|
|
12178
|
-
} catch (const std::runtime_error &e) {
|
|
12179
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12180
|
-
return ;
|
|
12181
|
-
} catch (const std::exception &e) {
|
|
12182
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12183
|
-
return ;
|
|
12184
|
-
} catch (...) {
|
|
12185
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12186
|
-
return ;
|
|
12187
|
-
}
|
|
12188
|
-
}
|
|
12189
|
-
}
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1requestV2UpdateSwigExplicitPresenceRust(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12193
|
-
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12194
|
-
|
|
12195
|
-
(void)jenv;
|
|
12196
|
-
(void)jcls;
|
|
12197
|
-
(void)jarg1_;
|
|
12198
|
-
arg1 = *(PresenceRust **)&jarg1;
|
|
12199
|
-
{
|
|
12200
|
-
try {
|
|
12201
|
-
(arg1)->PresenceRust::requestV2Update();
|
|
12202
|
-
} catch (const std::runtime_error &e) {
|
|
12203
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12204
|
-
return ;
|
|
12205
|
-
} catch (const std::exception &e) {
|
|
12206
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
12207
|
-
return ;
|
|
12208
|
-
} catch (...) {
|
|
12209
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
12210
|
-
return ;
|
|
12211
|
-
}
|
|
12212
|
-
}
|
|
12213
|
-
}
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
11785
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_PresenceRust_1requestV3Update(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
12217
11786
|
PresenceRust *arg1 = (PresenceRust *) 0 ;
|
|
12218
11787
|
|
|
@@ -15565,6 +15134,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
|
|
|
15565
15134
|
}
|
|
15566
15135
|
}
|
|
15567
15136
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
15137
|
+
{
|
|
15138
|
+
if (result != NULL) {
|
|
15139
|
+
ditto_c_string_free(result);
|
|
15140
|
+
}
|
|
15141
|
+
}
|
|
15568
15142
|
return jresult;
|
|
15569
15143
|
}
|
|
15570
15144
|
|
|
@@ -16993,52 +16567,6 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1cle
|
|
|
16993
16567
|
}
|
|
16994
16568
|
|
|
16995
16569
|
|
|
16996
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1clear_1presence_1v1_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
16997
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
16998
|
-
|
|
16999
|
-
(void)jenv;
|
|
17000
|
-
(void)jcls;
|
|
17001
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
17002
|
-
{
|
|
17003
|
-
try {
|
|
17004
|
-
ditto_clear_presence_v1_callback((CDitto const *)arg1);
|
|
17005
|
-
} catch (const std::runtime_error &e) {
|
|
17006
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
17007
|
-
return ;
|
|
17008
|
-
} catch (const std::exception &e) {
|
|
17009
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
17010
|
-
return ;
|
|
17011
|
-
} catch (...) {
|
|
17012
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
17013
|
-
return ;
|
|
17014
|
-
}
|
|
17015
|
-
}
|
|
17016
|
-
}
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1clear_1presence_1v2_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
17020
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
17021
|
-
|
|
17022
|
-
(void)jenv;
|
|
17023
|
-
(void)jcls;
|
|
17024
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
17025
|
-
{
|
|
17026
|
-
try {
|
|
17027
|
-
ditto_clear_presence_v2_callback((CDitto const *)arg1);
|
|
17028
|
-
} catch (const std::runtime_error &e) {
|
|
17029
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
17030
|
-
return ;
|
|
17031
|
-
} catch (const std::exception &e) {
|
|
17032
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
17033
|
-
return ;
|
|
17034
|
-
} catch (...) {
|
|
17035
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
17036
|
-
return ;
|
|
17037
|
-
}
|
|
17038
|
-
}
|
|
17039
|
-
}
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
16570
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1clear_1presence_1v3_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
17043
16571
|
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
17044
16572
|
|
|
@@ -20114,6 +19642,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
|
|
|
20114
19642
|
}
|
|
20115
19643
|
}
|
|
20116
19644
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
19645
|
+
{
|
|
19646
|
+
if (result != NULL) {
|
|
19647
|
+
ditto_c_string_free(result);
|
|
19648
|
+
}
|
|
19649
|
+
}
|
|
20117
19650
|
return jresult;
|
|
20118
19651
|
}
|
|
20119
19652
|
|
|
@@ -22778,60 +22311,6 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1ne
|
|
|
22778
22311
|
}
|
|
22779
22312
|
|
|
22780
22313
|
|
|
22781
|
-
SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1presence_1v1(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
22782
|
-
jstring jresult = 0 ;
|
|
22783
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
22784
|
-
char *result = 0 ;
|
|
22785
|
-
|
|
22786
|
-
(void)jenv;
|
|
22787
|
-
(void)jcls;
|
|
22788
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
22789
|
-
{
|
|
22790
|
-
try {
|
|
22791
|
-
result = (char *)ditto_presence_v1((CDitto const *)arg1);
|
|
22792
|
-
} catch (const std::runtime_error &e) {
|
|
22793
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
22794
|
-
return 0;
|
|
22795
|
-
} catch (const std::exception &e) {
|
|
22796
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
22797
|
-
return 0;
|
|
22798
|
-
} catch (...) {
|
|
22799
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
22800
|
-
return 0;
|
|
22801
|
-
}
|
|
22802
|
-
}
|
|
22803
|
-
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
22804
|
-
return jresult;
|
|
22805
|
-
}
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1presence_1v2(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
22809
|
-
jstring jresult = 0 ;
|
|
22810
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
22811
|
-
char *result = 0 ;
|
|
22812
|
-
|
|
22813
|
-
(void)jenv;
|
|
22814
|
-
(void)jcls;
|
|
22815
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
22816
|
-
{
|
|
22817
|
-
try {
|
|
22818
|
-
result = (char *)ditto_presence_v2((CDitto const *)arg1);
|
|
22819
|
-
} catch (const std::runtime_error &e) {
|
|
22820
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
22821
|
-
return 0;
|
|
22822
|
-
} catch (const std::exception &e) {
|
|
22823
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
22824
|
-
return 0;
|
|
22825
|
-
} catch (...) {
|
|
22826
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
22827
|
-
return 0;
|
|
22828
|
-
}
|
|
22829
|
-
}
|
|
22830
|
-
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
22831
|
-
return jresult;
|
|
22832
|
-
}
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
22314
|
SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1presence_1v3(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
22836
22315
|
jstring jresult = 0 ;
|
|
22837
22316
|
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
@@ -22855,6 +22334,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
|
|
|
22855
22334
|
}
|
|
22856
22335
|
}
|
|
22857
22336
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
22337
|
+
{
|
|
22338
|
+
if (result != NULL) {
|
|
22339
|
+
ditto_c_string_free(result);
|
|
22340
|
+
}
|
|
22341
|
+
}
|
|
22858
22342
|
return jresult;
|
|
22859
22343
|
}
|
|
22860
22344
|
|
|
@@ -23366,68 +22850,6 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1reg
|
|
|
23366
22850
|
}
|
|
23367
22851
|
|
|
23368
22852
|
|
|
23369
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1register_1presence_1v1_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) {
|
|
23370
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
23371
|
-
void *arg2 = (void *) 0 ;
|
|
23372
|
-
void (*arg3)(void *) = (void (*)(void *)) 0 ;
|
|
23373
|
-
void (*arg4)(void *) = (void (*)(void *)) 0 ;
|
|
23374
|
-
void (*arg5)(void *,char const *) = (void (*)(void *,char const *)) 0 ;
|
|
23375
|
-
|
|
23376
|
-
(void)jenv;
|
|
23377
|
-
(void)jcls;
|
|
23378
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
23379
|
-
arg2 = *(void **)&jarg2;
|
|
23380
|
-
arg3 = *(void (**)(void *))&jarg3;
|
|
23381
|
-
arg4 = *(void (**)(void *))&jarg4;
|
|
23382
|
-
arg5 = *(void (**)(void *,char const *))&jarg5;
|
|
23383
|
-
{
|
|
23384
|
-
try {
|
|
23385
|
-
ditto_register_presence_v1_callback((CDitto const *)arg1,arg2,arg3,arg4,arg5);
|
|
23386
|
-
} catch (const std::runtime_error &e) {
|
|
23387
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
23388
|
-
return ;
|
|
23389
|
-
} catch (const std::exception &e) {
|
|
23390
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
23391
|
-
return ;
|
|
23392
|
-
} catch (...) {
|
|
23393
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
23394
|
-
return ;
|
|
23395
|
-
}
|
|
23396
|
-
}
|
|
23397
|
-
}
|
|
23398
|
-
|
|
23399
|
-
|
|
23400
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1register_1presence_1v2_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) {
|
|
23401
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
23402
|
-
void *arg2 = (void *) 0 ;
|
|
23403
|
-
void (*arg3)(void *) = (void (*)(void *)) 0 ;
|
|
23404
|
-
void (*arg4)(void *) = (void (*)(void *)) 0 ;
|
|
23405
|
-
void (*arg5)(void *,char const *) = (void (*)(void *,char const *)) 0 ;
|
|
23406
|
-
|
|
23407
|
-
(void)jenv;
|
|
23408
|
-
(void)jcls;
|
|
23409
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
23410
|
-
arg2 = *(void **)&jarg2;
|
|
23411
|
-
arg3 = *(void (**)(void *))&jarg3;
|
|
23412
|
-
arg4 = *(void (**)(void *))&jarg4;
|
|
23413
|
-
arg5 = *(void (**)(void *,char const *))&jarg5;
|
|
23414
|
-
{
|
|
23415
|
-
try {
|
|
23416
|
-
ditto_register_presence_v2_callback((CDitto const *)arg1,arg2,arg3,arg4,arg5);
|
|
23417
|
-
} catch (const std::runtime_error &e) {
|
|
23418
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
23419
|
-
return ;
|
|
23420
|
-
} catch (const std::exception &e) {
|
|
23421
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
23422
|
-
return ;
|
|
23423
|
-
} catch (...) {
|
|
23424
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
23425
|
-
return ;
|
|
23426
|
-
}
|
|
23427
|
-
}
|
|
23428
|
-
}
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
22853
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1register_1transport_1condition_1changed_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) {
|
|
23432
22854
|
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
23433
22855
|
void *arg2 = (void *) 0 ;
|
|
@@ -23864,6 +23286,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
|
|
|
23864
23286
|
}
|
|
23865
23287
|
}
|
|
23866
23288
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
23289
|
+
{
|
|
23290
|
+
if (result != NULL) {
|
|
23291
|
+
ditto_c_string_free(result);
|
|
23292
|
+
}
|
|
23293
|
+
}
|
|
23867
23294
|
return jresult;
|
|
23868
23295
|
}
|
|
23869
23296
|
|
|
@@ -24308,6 +23735,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
|
|
|
24308
23735
|
}
|
|
24309
23736
|
}
|
|
24310
23737
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
23738
|
+
{
|
|
23739
|
+
if (result != NULL) {
|
|
23740
|
+
ditto_c_string_free(result);
|
|
23741
|
+
}
|
|
23742
|
+
}
|
|
24311
23743
|
return jresult;
|
|
24312
23744
|
}
|
|
24313
23745
|
|
|
@@ -24572,6 +24004,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
|
|
|
24572
24004
|
}
|
|
24573
24005
|
}
|
|
24574
24006
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
24007
|
+
{
|
|
24008
|
+
if (result != NULL) {
|
|
24009
|
+
ditto_c_string_free(result);
|
|
24010
|
+
}
|
|
24011
|
+
}
|
|
24575
24012
|
return jresult;
|
|
24576
24013
|
}
|
|
24577
24014
|
|
|
@@ -25735,6 +25172,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
25735
25172
|
jenv->ReleaseByteArrayElements(jarg1, (jbyte *)(&arg1)->ptr, JNI_ABORT);
|
|
25736
25173
|
}
|
|
25737
25174
|
}
|
|
25175
|
+
{
|
|
25176
|
+
if (result != NULL) {
|
|
25177
|
+
ditto_c_string_free(result);
|
|
25178
|
+
}
|
|
25179
|
+
}
|
|
25738
25180
|
return jresult;
|
|
25739
25181
|
}
|
|
25740
25182
|
|
|
@@ -26025,6 +25467,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
26025
25467
|
}
|
|
26026
25468
|
}
|
|
26027
25469
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
25470
|
+
{
|
|
25471
|
+
if (result != NULL) {
|
|
25472
|
+
ditto_c_string_free(result);
|
|
25473
|
+
}
|
|
25474
|
+
}
|
|
26028
25475
|
return jresult;
|
|
26029
25476
|
}
|
|
26030
25477
|
|
|
@@ -26527,6 +25974,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
26527
25974
|
}
|
|
26528
25975
|
}
|
|
26529
25976
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
25977
|
+
{
|
|
25978
|
+
if (result != NULL) {
|
|
25979
|
+
ditto_c_string_free(result);
|
|
25980
|
+
}
|
|
25981
|
+
}
|
|
26530
25982
|
return jresult;
|
|
26531
25983
|
}
|
|
26532
25984
|
|
|
@@ -27997,6 +27449,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
27997
27449
|
}
|
|
27998
27450
|
}
|
|
27999
27451
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
27452
|
+
{
|
|
27453
|
+
if (result != NULL) {
|
|
27454
|
+
ditto_c_string_free(result);
|
|
27455
|
+
}
|
|
27456
|
+
}
|
|
28000
27457
|
return jresult;
|
|
28001
27458
|
}
|
|
28002
27459
|
|
|
@@ -28072,6 +27529,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
28072
27529
|
}
|
|
28073
27530
|
}
|
|
28074
27531
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
27532
|
+
{
|
|
27533
|
+
if (result != NULL) {
|
|
27534
|
+
ditto_c_string_free(result);
|
|
27535
|
+
}
|
|
27536
|
+
}
|
|
28075
27537
|
return jresult;
|
|
28076
27538
|
}
|
|
28077
27539
|
|
|
@@ -28329,6 +27791,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
28329
27791
|
}
|
|
28330
27792
|
}
|
|
28331
27793
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
27794
|
+
{
|
|
27795
|
+
if (result != NULL) {
|
|
27796
|
+
ditto_c_string_free(result);
|
|
27797
|
+
}
|
|
27798
|
+
}
|
|
28332
27799
|
return jresult;
|
|
28333
27800
|
}
|
|
28334
27801
|
|
|
@@ -28356,166 +27823,16 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
28356
27823
|
}
|
|
28357
27824
|
}
|
|
28358
27825
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
28359
|
-
return jresult;
|
|
28360
|
-
}
|
|
28361
|
-
|
|
28362
|
-
|
|
28363
|
-
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1graph(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
28364
|
-
jbyteArray jresult = 0 ;
|
|
28365
|
-
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
28366
|
-
slice_boxed_uint8_t result;
|
|
28367
|
-
|
|
28368
|
-
(void)jenv;
|
|
28369
|
-
(void)jcls;
|
|
28370
|
-
arg1 = *(CDitto_t **)&jarg1;
|
|
28371
|
-
{
|
|
28372
|
-
try {
|
|
28373
|
-
result = dittoffi_presence_graph((CDitto const *)arg1);
|
|
28374
|
-
} catch (const std::runtime_error &e) {
|
|
28375
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28376
|
-
return 0;
|
|
28377
|
-
} catch (const std::exception &e) {
|
|
28378
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28379
|
-
return 0;
|
|
28380
|
-
} catch (...) {
|
|
28381
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
28382
|
-
return 0;
|
|
28383
|
-
}
|
|
28384
|
-
}
|
|
28385
|
-
{
|
|
28386
|
-
if ((&result)->ptr != NULL) {
|
|
28387
|
-
jresult = jenv->NewByteArray((&result)->len);
|
|
28388
|
-
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
28389
|
-
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
28390
|
-
// takes care of that.
|
|
28391
|
-
} else {
|
|
28392
|
-
jresult = jenv->NewByteArray(0);
|
|
28393
|
-
}
|
|
28394
|
-
}
|
|
28395
|
-
{
|
|
28396
|
-
if ((&result)->ptr != NULL) {
|
|
28397
|
-
ditto_c_bytes_free(result);
|
|
28398
|
-
}
|
|
28399
|
-
}
|
|
28400
|
-
return jresult;
|
|
28401
|
-
}
|
|
28402
|
-
|
|
28403
|
-
|
|
28404
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1cancel(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
28405
|
-
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
28406
|
-
|
|
28407
|
-
(void)jenv;
|
|
28408
|
-
(void)jcls;
|
|
28409
|
-
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
28410
27826
|
{
|
|
28411
|
-
|
|
28412
|
-
|
|
28413
|
-
} catch (const std::runtime_error &e) {
|
|
28414
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28415
|
-
return ;
|
|
28416
|
-
} catch (const std::exception &e) {
|
|
28417
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28418
|
-
return ;
|
|
28419
|
-
} catch (...) {
|
|
28420
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
28421
|
-
return ;
|
|
28422
|
-
}
|
|
28423
|
-
}
|
|
28424
|
-
}
|
|
28425
|
-
|
|
28426
|
-
|
|
28427
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1free(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
28428
|
-
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
28429
|
-
|
|
28430
|
-
(void)jenv;
|
|
28431
|
-
(void)jcls;
|
|
28432
|
-
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
28433
|
-
{
|
|
28434
|
-
try {
|
|
28435
|
-
dittoffi_presence_observer_free(arg1);
|
|
28436
|
-
} catch (const std::runtime_error &e) {
|
|
28437
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28438
|
-
return ;
|
|
28439
|
-
} catch (const std::exception &e) {
|
|
28440
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28441
|
-
return ;
|
|
28442
|
-
} catch (...) {
|
|
28443
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
28444
|
-
return ;
|
|
28445
|
-
}
|
|
28446
|
-
}
|
|
28447
|
-
}
|
|
28448
|
-
|
|
28449
|
-
|
|
28450
|
-
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1id(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
28451
|
-
jbyteArray jresult = 0 ;
|
|
28452
|
-
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
28453
|
-
slice_boxed_uint8_t result;
|
|
28454
|
-
|
|
28455
|
-
(void)jenv;
|
|
28456
|
-
(void)jcls;
|
|
28457
|
-
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
28458
|
-
{
|
|
28459
|
-
try {
|
|
28460
|
-
result = dittoffi_presence_observer_id((dittoffi_presence_observer const *)arg1);
|
|
28461
|
-
} catch (const std::runtime_error &e) {
|
|
28462
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28463
|
-
return 0;
|
|
28464
|
-
} catch (const std::exception &e) {
|
|
28465
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28466
|
-
return 0;
|
|
28467
|
-
} catch (...) {
|
|
28468
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
28469
|
-
return 0;
|
|
28470
|
-
}
|
|
28471
|
-
}
|
|
28472
|
-
{
|
|
28473
|
-
if ((&result)->ptr != NULL) {
|
|
28474
|
-
jresult = jenv->NewByteArray((&result)->len);
|
|
28475
|
-
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
28476
|
-
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
28477
|
-
// takes care of that.
|
|
28478
|
-
} else {
|
|
28479
|
-
jresult = jenv->NewByteArray(0);
|
|
28480
|
-
}
|
|
28481
|
-
}
|
|
28482
|
-
{
|
|
28483
|
-
if ((&result)->ptr != NULL) {
|
|
28484
|
-
ditto_c_bytes_free(result);
|
|
28485
|
-
}
|
|
28486
|
-
}
|
|
28487
|
-
return jresult;
|
|
28488
|
-
}
|
|
28489
|
-
|
|
28490
|
-
|
|
28491
|
-
SWIGEXPORT jboolean JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1is_1cancelled(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
28492
|
-
jboolean jresult = 0 ;
|
|
28493
|
-
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
28494
|
-
bool result;
|
|
28495
|
-
|
|
28496
|
-
(void)jenv;
|
|
28497
|
-
(void)jcls;
|
|
28498
|
-
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
28499
|
-
{
|
|
28500
|
-
try {
|
|
28501
|
-
result = (bool)dittoffi_presence_observer_is_cancelled((dittoffi_presence_observer const *)arg1);
|
|
28502
|
-
} catch (const std::runtime_error &e) {
|
|
28503
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28504
|
-
return 0;
|
|
28505
|
-
} catch (const std::exception &e) {
|
|
28506
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28507
|
-
return 0;
|
|
28508
|
-
} catch (...) {
|
|
28509
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
28510
|
-
return 0;
|
|
27827
|
+
if (result != NULL) {
|
|
27828
|
+
ditto_c_string_free(result);
|
|
28511
27829
|
}
|
|
28512
27830
|
}
|
|
28513
|
-
jresult = (jboolean)result;
|
|
28514
27831
|
return jresult;
|
|
28515
27832
|
}
|
|
28516
27833
|
|
|
28517
27834
|
|
|
28518
|
-
SWIGEXPORT jbyteArray JNICALL
|
|
27835
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1graph(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
28519
27836
|
jbyteArray jresult = 0 ;
|
|
28520
27837
|
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
28521
27838
|
slice_boxed_uint8_t result;
|
|
@@ -28525,7 +27842,162 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
28525
27842
|
arg1 = *(CDitto_t **)&jarg1;
|
|
28526
27843
|
{
|
|
28527
27844
|
try {
|
|
28528
|
-
result =
|
|
27845
|
+
result = dittoffi_presence_graph((CDitto const *)arg1);
|
|
27846
|
+
} catch (const std::runtime_error &e) {
|
|
27847
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27848
|
+
return 0;
|
|
27849
|
+
} catch (const std::exception &e) {
|
|
27850
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27851
|
+
return 0;
|
|
27852
|
+
} catch (...) {
|
|
27853
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
27854
|
+
return 0;
|
|
27855
|
+
}
|
|
27856
|
+
}
|
|
27857
|
+
{
|
|
27858
|
+
if ((&result)->ptr != NULL) {
|
|
27859
|
+
jresult = jenv->NewByteArray((&result)->len);
|
|
27860
|
+
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
27861
|
+
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
27862
|
+
// takes care of that.
|
|
27863
|
+
} else {
|
|
27864
|
+
jresult = jenv->NewByteArray(0);
|
|
27865
|
+
}
|
|
27866
|
+
}
|
|
27867
|
+
{
|
|
27868
|
+
if ((&result)->ptr != NULL) {
|
|
27869
|
+
ditto_c_bytes_free(result);
|
|
27870
|
+
}
|
|
27871
|
+
}
|
|
27872
|
+
return jresult;
|
|
27873
|
+
}
|
|
27874
|
+
|
|
27875
|
+
|
|
27876
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1cancel(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
27877
|
+
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
27878
|
+
|
|
27879
|
+
(void)jenv;
|
|
27880
|
+
(void)jcls;
|
|
27881
|
+
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
27882
|
+
{
|
|
27883
|
+
try {
|
|
27884
|
+
dittoffi_presence_observer_cancel((dittoffi_presence_observer const *)arg1);
|
|
27885
|
+
} catch (const std::runtime_error &e) {
|
|
27886
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27887
|
+
return ;
|
|
27888
|
+
} catch (const std::exception &e) {
|
|
27889
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27890
|
+
return ;
|
|
27891
|
+
} catch (...) {
|
|
27892
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
27893
|
+
return ;
|
|
27894
|
+
}
|
|
27895
|
+
}
|
|
27896
|
+
}
|
|
27897
|
+
|
|
27898
|
+
|
|
27899
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1free(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
27900
|
+
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
27901
|
+
|
|
27902
|
+
(void)jenv;
|
|
27903
|
+
(void)jcls;
|
|
27904
|
+
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
27905
|
+
{
|
|
27906
|
+
try {
|
|
27907
|
+
dittoffi_presence_observer_free(arg1);
|
|
27908
|
+
} catch (const std::runtime_error &e) {
|
|
27909
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27910
|
+
return ;
|
|
27911
|
+
} catch (const std::exception &e) {
|
|
27912
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27913
|
+
return ;
|
|
27914
|
+
} catch (...) {
|
|
27915
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
27916
|
+
return ;
|
|
27917
|
+
}
|
|
27918
|
+
}
|
|
27919
|
+
}
|
|
27920
|
+
|
|
27921
|
+
|
|
27922
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1id(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
27923
|
+
jbyteArray jresult = 0 ;
|
|
27924
|
+
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
27925
|
+
slice_boxed_uint8_t result;
|
|
27926
|
+
|
|
27927
|
+
(void)jenv;
|
|
27928
|
+
(void)jcls;
|
|
27929
|
+
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
27930
|
+
{
|
|
27931
|
+
try {
|
|
27932
|
+
result = dittoffi_presence_observer_id((dittoffi_presence_observer const *)arg1);
|
|
27933
|
+
} catch (const std::runtime_error &e) {
|
|
27934
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27935
|
+
return 0;
|
|
27936
|
+
} catch (const std::exception &e) {
|
|
27937
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27938
|
+
return 0;
|
|
27939
|
+
} catch (...) {
|
|
27940
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
27941
|
+
return 0;
|
|
27942
|
+
}
|
|
27943
|
+
}
|
|
27944
|
+
{
|
|
27945
|
+
if ((&result)->ptr != NULL) {
|
|
27946
|
+
jresult = jenv->NewByteArray((&result)->len);
|
|
27947
|
+
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
27948
|
+
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
27949
|
+
// takes care of that.
|
|
27950
|
+
} else {
|
|
27951
|
+
jresult = jenv->NewByteArray(0);
|
|
27952
|
+
}
|
|
27953
|
+
}
|
|
27954
|
+
{
|
|
27955
|
+
if ((&result)->ptr != NULL) {
|
|
27956
|
+
ditto_c_bytes_free(result);
|
|
27957
|
+
}
|
|
27958
|
+
}
|
|
27959
|
+
return jresult;
|
|
27960
|
+
}
|
|
27961
|
+
|
|
27962
|
+
|
|
27963
|
+
SWIGEXPORT jboolean JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1observer_1is_1cancelled(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
27964
|
+
jboolean jresult = 0 ;
|
|
27965
|
+
dittoffi_presence_observer_t *arg1 = (dittoffi_presence_observer_t *) 0 ;
|
|
27966
|
+
bool result;
|
|
27967
|
+
|
|
27968
|
+
(void)jenv;
|
|
27969
|
+
(void)jcls;
|
|
27970
|
+
arg1 = *(dittoffi_presence_observer_t **)&jarg1;
|
|
27971
|
+
{
|
|
27972
|
+
try {
|
|
27973
|
+
result = (bool)dittoffi_presence_observer_is_cancelled((dittoffi_presence_observer const *)arg1);
|
|
27974
|
+
} catch (const std::runtime_error &e) {
|
|
27975
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27976
|
+
return 0;
|
|
27977
|
+
} catch (const std::exception &e) {
|
|
27978
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
27979
|
+
return 0;
|
|
27980
|
+
} catch (...) {
|
|
27981
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
27982
|
+
return 0;
|
|
27983
|
+
}
|
|
27984
|
+
}
|
|
27985
|
+
jresult = (jboolean)result;
|
|
27986
|
+
return jresult;
|
|
27987
|
+
}
|
|
27988
|
+
|
|
27989
|
+
|
|
27990
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1presence_1peer_1metadata_1json(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
27991
|
+
jbyteArray jresult = 0 ;
|
|
27992
|
+
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
27993
|
+
slice_boxed_uint8_t result;
|
|
27994
|
+
|
|
27995
|
+
(void)jenv;
|
|
27996
|
+
(void)jcls;
|
|
27997
|
+
arg1 = *(CDitto_t **)&jarg1;
|
|
27998
|
+
{
|
|
27999
|
+
try {
|
|
28000
|
+
result = dittoffi_presence_peer_metadata_json((CDitto const *)arg1);
|
|
28529
28001
|
} catch (const std::runtime_error &e) {
|
|
28530
28002
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
28531
28003
|
return 0;
|
|
@@ -29454,6 +28926,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
29454
28926
|
}
|
|
29455
28927
|
}
|
|
29456
28928
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
28929
|
+
{
|
|
28930
|
+
if (result != NULL) {
|
|
28931
|
+
ditto_c_string_free(result);
|
|
28932
|
+
}
|
|
28933
|
+
}
|
|
29457
28934
|
return jresult;
|
|
29458
28935
|
}
|
|
29459
28936
|
|
|
@@ -30154,99 +29631,17 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1
|
|
|
30154
29631
|
}
|
|
30155
29632
|
|
|
30156
29633
|
|
|
30157
|
-
SWIGEXPORT
|
|
30158
|
-
|
|
30159
|
-
dittoffi_store_observer_t
|
|
30160
|
-
|
|
30161
|
-
(void)jenv;
|
|
30162
|
-
(void)jcls;
|
|
30163
|
-
(void)jarg1_;
|
|
30164
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30165
|
-
arg2 = *(dittoffi_store_observer_t ***)&jarg2;
|
|
30166
|
-
if (arg1) (arg1)->ptr = arg2;
|
|
30167
|
-
}
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1ptr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
30171
|
-
jlong jresult = 0 ;
|
|
30172
|
-
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
30173
|
-
dittoffi_store_observer_t **result = 0 ;
|
|
30174
|
-
|
|
30175
|
-
(void)jenv;
|
|
30176
|
-
(void)jcls;
|
|
30177
|
-
(void)jarg1_;
|
|
30178
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30179
|
-
result = (dittoffi_store_observer_t **) ((arg1)->ptr);
|
|
30180
|
-
*(dittoffi_store_observer_t ***)&jresult = result;
|
|
30181
|
-
return jresult;
|
|
30182
|
-
}
|
|
30183
|
-
|
|
30184
|
-
|
|
30185
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
30186
|
-
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
30187
|
-
size_t arg2 ;
|
|
30188
|
-
|
|
30189
|
-
(void)jenv;
|
|
30190
|
-
(void)jcls;
|
|
30191
|
-
(void)jarg1_;
|
|
30192
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30193
|
-
arg2 = (size_t)jarg2;
|
|
30194
|
-
if (arg1) (arg1)->len = arg2;
|
|
30195
|
-
}
|
|
30196
|
-
|
|
30197
|
-
|
|
30198
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
30199
|
-
jlong jresult = 0 ;
|
|
30200
|
-
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
30201
|
-
size_t result;
|
|
30202
|
-
|
|
30203
|
-
(void)jenv;
|
|
30204
|
-
(void)jcls;
|
|
30205
|
-
(void)jarg1_;
|
|
30206
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30207
|
-
result = ((arg1)->len);
|
|
30208
|
-
jresult = (jlong)result;
|
|
30209
|
-
return jresult;
|
|
30210
|
-
}
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1cap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
30214
|
-
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
30215
|
-
size_t arg2 ;
|
|
30216
|
-
|
|
30217
|
-
(void)jenv;
|
|
30218
|
-
(void)jcls;
|
|
30219
|
-
(void)jarg1_;
|
|
30220
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30221
|
-
arg2 = (size_t)jarg2;
|
|
30222
|
-
if (arg1) (arg1)->cap = arg2;
|
|
30223
|
-
}
|
|
30224
|
-
|
|
30225
|
-
|
|
30226
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1cap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
30227
|
-
jlong jresult = 0 ;
|
|
30228
|
-
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
30229
|
-
size_t result;
|
|
30230
|
-
|
|
30231
|
-
(void)jenv;
|
|
30232
|
-
(void)jcls;
|
|
30233
|
-
(void)jarg1_;
|
|
30234
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30235
|
-
result = ((arg1)->cap);
|
|
30236
|
-
jresult = (jlong)result;
|
|
30237
|
-
return jresult;
|
|
30238
|
-
}
|
|
30239
|
-
|
|
30240
|
-
|
|
30241
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_new_1Vec_1dittoffi_1store_1observer_1ptr_1t(JNIEnv *jenv, jclass jcls) {
|
|
30242
|
-
jlong jresult = 0 ;
|
|
30243
|
-
Vec_dittoffi_store_observer_ptr *result = 0 ;
|
|
29634
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observer_1id(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
29635
|
+
jbyteArray jresult = 0 ;
|
|
29636
|
+
dittoffi_store_observer_t *arg1 = (dittoffi_store_observer_t *) 0 ;
|
|
29637
|
+
slice_boxed_uint8_t result;
|
|
30244
29638
|
|
|
30245
29639
|
(void)jenv;
|
|
30246
29640
|
(void)jcls;
|
|
29641
|
+
arg1 = *(dittoffi_store_observer_t **)&jarg1;
|
|
30247
29642
|
{
|
|
30248
29643
|
try {
|
|
30249
|
-
result = (
|
|
29644
|
+
result = dittoffi_store_observer_id((dittoffi_store_observer const *)arg1);
|
|
30250
29645
|
} catch (const std::runtime_error &e) {
|
|
30251
29646
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30252
29647
|
return 0;
|
|
@@ -30258,65 +29653,53 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_new_1Vec_
|
|
|
30258
29653
|
return 0;
|
|
30259
29654
|
}
|
|
30260
29655
|
}
|
|
30261
|
-
*(Vec_dittoffi_store_observer_ptr **)&jresult = result;
|
|
30262
|
-
return jresult;
|
|
30263
|
-
}
|
|
30264
|
-
|
|
30265
|
-
|
|
30266
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_delete_1Vec_1dittoffi_1store_1observer_1ptr_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30267
|
-
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
30268
|
-
|
|
30269
|
-
(void)jenv;
|
|
30270
|
-
(void)jcls;
|
|
30271
|
-
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
30272
29656
|
{
|
|
30273
|
-
|
|
30274
|
-
|
|
30275
|
-
|
|
30276
|
-
|
|
30277
|
-
|
|
30278
|
-
}
|
|
30279
|
-
|
|
30280
|
-
|
|
30281
|
-
|
|
30282
|
-
|
|
30283
|
-
|
|
29657
|
+
if ((&result)->ptr != NULL) {
|
|
29658
|
+
jresult = jenv->NewByteArray((&result)->len);
|
|
29659
|
+
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
29660
|
+
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
29661
|
+
// takes care of that.
|
|
29662
|
+
} else {
|
|
29663
|
+
jresult = jenv->NewByteArray(0);
|
|
29664
|
+
}
|
|
29665
|
+
}
|
|
29666
|
+
{
|
|
29667
|
+
if ((&result)->ptr != NULL) {
|
|
29668
|
+
ditto_c_bytes_free(result);
|
|
30284
29669
|
}
|
|
30285
29670
|
}
|
|
29671
|
+
return jresult;
|
|
30286
29672
|
}
|
|
30287
29673
|
|
|
30288
29674
|
|
|
30289
|
-
SWIGEXPORT
|
|
30290
|
-
|
|
30291
|
-
|
|
29675
|
+
SWIGEXPORT jboolean JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observer_1is_1cancelled(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
29676
|
+
jboolean jresult = 0 ;
|
|
29677
|
+
dittoffi_store_observer_t *arg1 = (dittoffi_store_observer_t *) 0 ;
|
|
29678
|
+
bool result;
|
|
30292
29679
|
|
|
30293
29680
|
(void)jenv;
|
|
30294
29681
|
(void)jcls;
|
|
30295
|
-
(
|
|
30296
|
-
argp1 = *(Vec_dittoffi_store_observer_ptr_t **)&jarg1;
|
|
30297
|
-
if (!argp1) {
|
|
30298
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Vec_dittoffi_store_observer_ptr_t");
|
|
30299
|
-
return ;
|
|
30300
|
-
}
|
|
30301
|
-
arg1 = *argp1;
|
|
29682
|
+
arg1 = *(dittoffi_store_observer_t **)&jarg1;
|
|
30302
29683
|
{
|
|
30303
29684
|
try {
|
|
30304
|
-
|
|
29685
|
+
result = (bool)dittoffi_store_observer_is_cancelled((dittoffi_store_observer const *)arg1);
|
|
30305
29686
|
} catch (const std::runtime_error &e) {
|
|
30306
29687
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30307
|
-
return ;
|
|
29688
|
+
return 0;
|
|
30308
29689
|
} catch (const std::exception &e) {
|
|
30309
29690
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30310
|
-
return ;
|
|
29691
|
+
return 0;
|
|
30311
29692
|
} catch (...) {
|
|
30312
29693
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30313
|
-
return ;
|
|
29694
|
+
return 0;
|
|
30314
29695
|
}
|
|
30315
29696
|
}
|
|
29697
|
+
jresult = (jboolean)result;
|
|
29698
|
+
return jresult;
|
|
30316
29699
|
}
|
|
30317
29700
|
|
|
30318
29701
|
|
|
30319
|
-
SWIGEXPORT jbyteArray JNICALL
|
|
29702
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observer_1query_1arguments(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30320
29703
|
jbyteArray jresult = 0 ;
|
|
30321
29704
|
dittoffi_store_observer_t *arg1 = (dittoffi_store_observer_t *) 0 ;
|
|
30322
29705
|
slice_boxed_uint8_t result;
|
|
@@ -30326,7 +29709,7 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
30326
29709
|
arg1 = *(dittoffi_store_observer_t **)&jarg1;
|
|
30327
29710
|
{
|
|
30328
29711
|
try {
|
|
30329
|
-
result =
|
|
29712
|
+
result = dittoffi_store_observer_query_arguments((dittoffi_store_observer const *)arg1);
|
|
30330
29713
|
} catch (const std::runtime_error &e) {
|
|
30331
29714
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30332
29715
|
return 0;
|
|
@@ -30357,17 +29740,17 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
30357
29740
|
}
|
|
30358
29741
|
|
|
30359
29742
|
|
|
30360
|
-
SWIGEXPORT
|
|
30361
|
-
|
|
29743
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observer_1query_1arguments_1cbor(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
29744
|
+
jbyteArray jresult = 0 ;
|
|
30362
29745
|
dittoffi_store_observer_t *arg1 = (dittoffi_store_observer_t *) 0 ;
|
|
30363
|
-
|
|
29746
|
+
slice_boxed_uint8_t result;
|
|
30364
29747
|
|
|
30365
29748
|
(void)jenv;
|
|
30366
29749
|
(void)jcls;
|
|
30367
29750
|
arg1 = *(dittoffi_store_observer_t **)&jarg1;
|
|
30368
29751
|
{
|
|
30369
29752
|
try {
|
|
30370
|
-
result = (
|
|
29753
|
+
result = dittoffi_store_observer_query_arguments_cbor((dittoffi_store_observer const *)arg1);
|
|
30371
29754
|
} catch (const std::runtime_error &e) {
|
|
30372
29755
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30373
29756
|
return 0;
|
|
@@ -30379,12 +29762,26 @@ SWIGEXPORT jboolean JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittof
|
|
|
30379
29762
|
return 0;
|
|
30380
29763
|
}
|
|
30381
29764
|
}
|
|
30382
|
-
|
|
29765
|
+
{
|
|
29766
|
+
if ((&result)->ptr != NULL) {
|
|
29767
|
+
jresult = jenv->NewByteArray((&result)->len);
|
|
29768
|
+
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
29769
|
+
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
29770
|
+
// takes care of that.
|
|
29771
|
+
} else {
|
|
29772
|
+
jresult = jenv->NewByteArray(0);
|
|
29773
|
+
}
|
|
29774
|
+
}
|
|
29775
|
+
{
|
|
29776
|
+
if ((&result)->ptr != NULL) {
|
|
29777
|
+
ditto_c_bytes_free(result);
|
|
29778
|
+
}
|
|
29779
|
+
}
|
|
30383
29780
|
return jresult;
|
|
30384
29781
|
}
|
|
30385
29782
|
|
|
30386
29783
|
|
|
30387
|
-
SWIGEXPORT jbyteArray JNICALL
|
|
29784
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observer_1query_1arguments_1json(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30388
29785
|
jbyteArray jresult = 0 ;
|
|
30389
29786
|
dittoffi_store_observer_t *arg1 = (dittoffi_store_observer_t *) 0 ;
|
|
30390
29787
|
slice_boxed_uint8_t result;
|
|
@@ -30394,7 +29791,7 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
30394
29791
|
arg1 = *(dittoffi_store_observer_t **)&jarg1;
|
|
30395
29792
|
{
|
|
30396
29793
|
try {
|
|
30397
|
-
result =
|
|
29794
|
+
result = dittoffi_store_observer_query_arguments_json((dittoffi_store_observer const *)arg1);
|
|
30398
29795
|
} catch (const std::runtime_error &e) {
|
|
30399
29796
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30400
29797
|
return 0;
|
|
@@ -30452,6 +29849,138 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
30452
29849
|
}
|
|
30453
29850
|
|
|
30454
29851
|
|
|
29852
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1ptr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
29853
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29854
|
+
dittoffi_store_observer_t **arg2 = (dittoffi_store_observer_t **) 0 ;
|
|
29855
|
+
|
|
29856
|
+
(void)jenv;
|
|
29857
|
+
(void)jcls;
|
|
29858
|
+
(void)jarg1_;
|
|
29859
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29860
|
+
arg2 = *(dittoffi_store_observer_t ***)&jarg2;
|
|
29861
|
+
if (arg1) (arg1)->ptr = arg2;
|
|
29862
|
+
}
|
|
29863
|
+
|
|
29864
|
+
|
|
29865
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1ptr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
29866
|
+
jlong jresult = 0 ;
|
|
29867
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29868
|
+
dittoffi_store_observer_t **result = 0 ;
|
|
29869
|
+
|
|
29870
|
+
(void)jenv;
|
|
29871
|
+
(void)jcls;
|
|
29872
|
+
(void)jarg1_;
|
|
29873
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29874
|
+
result = (dittoffi_store_observer_t **) ((arg1)->ptr);
|
|
29875
|
+
*(dittoffi_store_observer_t ***)&jresult = result;
|
|
29876
|
+
return jresult;
|
|
29877
|
+
}
|
|
29878
|
+
|
|
29879
|
+
|
|
29880
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
29881
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29882
|
+
size_t arg2 ;
|
|
29883
|
+
|
|
29884
|
+
(void)jenv;
|
|
29885
|
+
(void)jcls;
|
|
29886
|
+
(void)jarg1_;
|
|
29887
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29888
|
+
arg2 = (size_t)jarg2;
|
|
29889
|
+
if (arg1) (arg1)->len = arg2;
|
|
29890
|
+
}
|
|
29891
|
+
|
|
29892
|
+
|
|
29893
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
29894
|
+
jlong jresult = 0 ;
|
|
29895
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29896
|
+
size_t result;
|
|
29897
|
+
|
|
29898
|
+
(void)jenv;
|
|
29899
|
+
(void)jcls;
|
|
29900
|
+
(void)jarg1_;
|
|
29901
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29902
|
+
result = ((arg1)->len);
|
|
29903
|
+
jresult = (jlong)result;
|
|
29904
|
+
return jresult;
|
|
29905
|
+
}
|
|
29906
|
+
|
|
29907
|
+
|
|
29908
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1cap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
29909
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29910
|
+
size_t arg2 ;
|
|
29911
|
+
|
|
29912
|
+
(void)jenv;
|
|
29913
|
+
(void)jcls;
|
|
29914
|
+
(void)jarg1_;
|
|
29915
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29916
|
+
arg2 = (size_t)jarg2;
|
|
29917
|
+
if (arg1) (arg1)->cap = arg2;
|
|
29918
|
+
}
|
|
29919
|
+
|
|
29920
|
+
|
|
29921
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_Vec_1dittoffi_1store_1observer_1ptr_1t_1cap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
29922
|
+
jlong jresult = 0 ;
|
|
29923
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29924
|
+
size_t result;
|
|
29925
|
+
|
|
29926
|
+
(void)jenv;
|
|
29927
|
+
(void)jcls;
|
|
29928
|
+
(void)jarg1_;
|
|
29929
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29930
|
+
result = ((arg1)->cap);
|
|
29931
|
+
jresult = (jlong)result;
|
|
29932
|
+
return jresult;
|
|
29933
|
+
}
|
|
29934
|
+
|
|
29935
|
+
|
|
29936
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_new_1Vec_1dittoffi_1store_1observer_1ptr_1t(JNIEnv *jenv, jclass jcls) {
|
|
29937
|
+
jlong jresult = 0 ;
|
|
29938
|
+
Vec_dittoffi_store_observer_ptr *result = 0 ;
|
|
29939
|
+
|
|
29940
|
+
(void)jenv;
|
|
29941
|
+
(void)jcls;
|
|
29942
|
+
{
|
|
29943
|
+
try {
|
|
29944
|
+
result = (Vec_dittoffi_store_observer_ptr *)new Vec_dittoffi_store_observer_ptr();
|
|
29945
|
+
} catch (const std::runtime_error &e) {
|
|
29946
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
29947
|
+
return 0;
|
|
29948
|
+
} catch (const std::exception &e) {
|
|
29949
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
29950
|
+
return 0;
|
|
29951
|
+
} catch (...) {
|
|
29952
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
29953
|
+
return 0;
|
|
29954
|
+
}
|
|
29955
|
+
}
|
|
29956
|
+
*(Vec_dittoffi_store_observer_ptr **)&jresult = result;
|
|
29957
|
+
return jresult;
|
|
29958
|
+
}
|
|
29959
|
+
|
|
29960
|
+
|
|
29961
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_delete_1Vec_1dittoffi_1store_1observer_1ptr_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
29962
|
+
Vec_dittoffi_store_observer_ptr *arg1 = (Vec_dittoffi_store_observer_ptr *) 0 ;
|
|
29963
|
+
|
|
29964
|
+
(void)jenv;
|
|
29965
|
+
(void)jcls;
|
|
29966
|
+
arg1 = *(Vec_dittoffi_store_observer_ptr **)&jarg1;
|
|
29967
|
+
{
|
|
29968
|
+
try {
|
|
29969
|
+
delete arg1;
|
|
29970
|
+
} catch (const std::runtime_error &e) {
|
|
29971
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
29972
|
+
return ;
|
|
29973
|
+
} catch (const std::exception &e) {
|
|
29974
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
29975
|
+
return ;
|
|
29976
|
+
} catch (...) {
|
|
29977
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
29978
|
+
return ;
|
|
29979
|
+
}
|
|
29980
|
+
}
|
|
29981
|
+
}
|
|
29982
|
+
|
|
29983
|
+
|
|
30455
29984
|
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observers(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30456
29985
|
jlong jresult = 0 ;
|
|
30457
29986
|
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
@@ -30479,6 +30008,36 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_
|
|
|
30479
30008
|
}
|
|
30480
30009
|
|
|
30481
30010
|
|
|
30011
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1observers_1free_1sparse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
30012
|
+
Vec_dittoffi_store_observer_ptr_t arg1 ;
|
|
30013
|
+
Vec_dittoffi_store_observer_ptr_t *argp1 ;
|
|
30014
|
+
|
|
30015
|
+
(void)jenv;
|
|
30016
|
+
(void)jcls;
|
|
30017
|
+
(void)jarg1_;
|
|
30018
|
+
argp1 = *(Vec_dittoffi_store_observer_ptr_t **)&jarg1;
|
|
30019
|
+
if (!argp1) {
|
|
30020
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Vec_dittoffi_store_observer_ptr_t");
|
|
30021
|
+
return ;
|
|
30022
|
+
}
|
|
30023
|
+
arg1 = *argp1;
|
|
30024
|
+
{
|
|
30025
|
+
try {
|
|
30026
|
+
dittoffi_store_observers_free_sparse(SWIG_STD_MOVE(arg1));
|
|
30027
|
+
} catch (const std::runtime_error &e) {
|
|
30028
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30029
|
+
return ;
|
|
30030
|
+
} catch (const std::exception &e) {
|
|
30031
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30032
|
+
return ;
|
|
30033
|
+
} catch (...) {
|
|
30034
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30035
|
+
return ;
|
|
30036
|
+
}
|
|
30037
|
+
}
|
|
30038
|
+
}
|
|
30039
|
+
|
|
30040
|
+
|
|
30482
30041
|
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ArcDynFn0_1void_1t_1env_1ptr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
30483
30042
|
ArcDynFn0_void *arg1 = (ArcDynFn0_void *) 0 ;
|
|
30484
30043
|
void *arg2 = (void *) 0 ;
|
|
@@ -30880,8 +30439,8 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_
|
|
|
30880
30439
|
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
30881
30440
|
char *arg2 = (char *) 0 ;
|
|
30882
30441
|
slice_ref_uint8_t arg3 ;
|
|
30883
|
-
|
|
30884
|
-
|
|
30442
|
+
dittoffi_store_observation_handler_with_signal_next_t arg4 ;
|
|
30443
|
+
dittoffi_store_observation_handler_with_signal_next_t *argp4 ;
|
|
30885
30444
|
dittoffi_result_dittoffi_store_observer_ptr_t result;
|
|
30886
30445
|
|
|
30887
30446
|
(void)jenv;
|
|
@@ -30919,15 +30478,227 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_
|
|
|
30919
30478
|
};
|
|
30920
30479
|
}
|
|
30921
30480
|
}
|
|
30922
|
-
argp4 = *(
|
|
30923
|
-
if (!argp4) {
|
|
30924
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null
|
|
30925
|
-
return 0;
|
|
30926
|
-
}
|
|
30927
|
-
arg4 = *argp4;
|
|
30481
|
+
argp4 = *(dittoffi_store_observation_handler_with_signal_next_t **)&jarg4;
|
|
30482
|
+
if (!argp4) {
|
|
30483
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null dittoffi_store_observation_handler_with_signal_next_t");
|
|
30484
|
+
return 0;
|
|
30485
|
+
}
|
|
30486
|
+
arg4 = *argp4;
|
|
30487
|
+
{
|
|
30488
|
+
try {
|
|
30489
|
+
result = dittoffi_store_register_observer_throws((CDitto const *)arg1,(char const *)arg2,SWIG_STD_MOVE(arg3),SWIG_STD_MOVE(arg4));
|
|
30490
|
+
} catch (const std::runtime_error &e) {
|
|
30491
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30492
|
+
return 0;
|
|
30493
|
+
} catch (const std::exception &e) {
|
|
30494
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30495
|
+
return 0;
|
|
30496
|
+
} catch (...) {
|
|
30497
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30498
|
+
return 0;
|
|
30499
|
+
}
|
|
30500
|
+
}
|
|
30501
|
+
*(dittoffi_result_dittoffi_store_observer_ptr_t **)&jresult = new dittoffi_result_dittoffi_store_observer_ptr_t(result);
|
|
30502
|
+
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
30503
|
+
{
|
|
30504
|
+
// Free the allocation from `GetByteArrayElements`
|
|
30505
|
+
if (jarg3 != NULL) {
|
|
30506
|
+
jenv->ReleaseByteArrayElements(jarg3, (jbyte *)(&arg3)->ptr, JNI_ABORT);
|
|
30507
|
+
}
|
|
30508
|
+
}
|
|
30509
|
+
return jresult;
|
|
30510
|
+
}
|
|
30511
|
+
|
|
30512
|
+
|
|
30513
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1store_1transactions(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30514
|
+
jbyteArray jresult = 0 ;
|
|
30515
|
+
dittoffi_store_t *arg1 = (dittoffi_store_t *) 0 ;
|
|
30516
|
+
dittoffi_cbor_data_t result;
|
|
30517
|
+
|
|
30518
|
+
(void)jenv;
|
|
30519
|
+
(void)jcls;
|
|
30520
|
+
arg1 = *(dittoffi_store_t **)&jarg1;
|
|
30521
|
+
{
|
|
30522
|
+
try {
|
|
30523
|
+
result = dittoffi_store_transactions((CDitto const *)arg1);
|
|
30524
|
+
} catch (const std::runtime_error &e) {
|
|
30525
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30526
|
+
return 0;
|
|
30527
|
+
} catch (const std::exception &e) {
|
|
30528
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30529
|
+
return 0;
|
|
30530
|
+
} catch (...) {
|
|
30531
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30532
|
+
return 0;
|
|
30533
|
+
}
|
|
30534
|
+
}
|
|
30535
|
+
{
|
|
30536
|
+
if ((&result)->ptr != NULL) {
|
|
30537
|
+
jresult = jenv->NewByteArray((&result)->len);
|
|
30538
|
+
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
30539
|
+
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
30540
|
+
// takes care of that.
|
|
30541
|
+
} else {
|
|
30542
|
+
jresult = jenv->NewByteArray(0);
|
|
30543
|
+
}
|
|
30544
|
+
}
|
|
30545
|
+
{
|
|
30546
|
+
if ((&result)->ptr != NULL) {
|
|
30547
|
+
ditto_c_bytes_free(result);
|
|
30548
|
+
}
|
|
30549
|
+
}
|
|
30550
|
+
return jresult;
|
|
30551
|
+
}
|
|
30552
|
+
|
|
30553
|
+
|
|
30554
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1error_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
30555
|
+
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
30556
|
+
dittoffi_error_t *arg2 = (dittoffi_error_t *) 0 ;
|
|
30557
|
+
|
|
30558
|
+
(void)jenv;
|
|
30559
|
+
(void)jcls;
|
|
30560
|
+
(void)jarg1_;
|
|
30561
|
+
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
30562
|
+
arg2 = *(dittoffi_error_t **)&jarg2;
|
|
30563
|
+
if (arg1) (arg1)->error = arg2;
|
|
30564
|
+
}
|
|
30565
|
+
|
|
30566
|
+
|
|
30567
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1error_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
30568
|
+
jlong jresult = 0 ;
|
|
30569
|
+
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
30570
|
+
dittoffi_error_t *result = 0 ;
|
|
30571
|
+
|
|
30572
|
+
(void)jenv;
|
|
30573
|
+
(void)jcls;
|
|
30574
|
+
(void)jarg1_;
|
|
30575
|
+
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
30576
|
+
result = (dittoffi_error_t *) ((arg1)->error);
|
|
30577
|
+
*(dittoffi_error_t **)&jresult = result;
|
|
30578
|
+
return jresult;
|
|
30579
|
+
}
|
|
30580
|
+
|
|
30581
|
+
|
|
30582
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1success_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
30583
|
+
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
30584
|
+
dittoffi_sync_subscription_t *arg2 = (dittoffi_sync_subscription_t *) 0 ;
|
|
30585
|
+
|
|
30586
|
+
(void)jenv;
|
|
30587
|
+
(void)jcls;
|
|
30588
|
+
(void)jarg1_;
|
|
30589
|
+
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
30590
|
+
arg2 = *(dittoffi_sync_subscription_t **)&jarg2;
|
|
30591
|
+
if (arg1) (arg1)->success = arg2;
|
|
30592
|
+
}
|
|
30593
|
+
|
|
30594
|
+
|
|
30595
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1success_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
30596
|
+
jlong jresult = 0 ;
|
|
30597
|
+
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
30598
|
+
dittoffi_sync_subscription_t *result = 0 ;
|
|
30599
|
+
|
|
30600
|
+
(void)jenv;
|
|
30601
|
+
(void)jcls;
|
|
30602
|
+
(void)jarg1_;
|
|
30603
|
+
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
30604
|
+
result = (dittoffi_sync_subscription_t *) ((arg1)->success);
|
|
30605
|
+
*(dittoffi_sync_subscription_t **)&jresult = result;
|
|
30606
|
+
return jresult;
|
|
30607
|
+
}
|
|
30608
|
+
|
|
30609
|
+
|
|
30610
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_new_1dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t(JNIEnv *jenv, jclass jcls) {
|
|
30611
|
+
jlong jresult = 0 ;
|
|
30612
|
+
dittoffi_result_dittoffi_sync_subscription_ptr *result = 0 ;
|
|
30613
|
+
|
|
30614
|
+
(void)jenv;
|
|
30615
|
+
(void)jcls;
|
|
30616
|
+
{
|
|
30617
|
+
try {
|
|
30618
|
+
result = (dittoffi_result_dittoffi_sync_subscription_ptr *)new dittoffi_result_dittoffi_sync_subscription_ptr();
|
|
30619
|
+
} catch (const std::runtime_error &e) {
|
|
30620
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30621
|
+
return 0;
|
|
30622
|
+
} catch (const std::exception &e) {
|
|
30623
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30624
|
+
return 0;
|
|
30625
|
+
} catch (...) {
|
|
30626
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30627
|
+
return 0;
|
|
30628
|
+
}
|
|
30629
|
+
}
|
|
30630
|
+
*(dittoffi_result_dittoffi_sync_subscription_ptr **)&jresult = result;
|
|
30631
|
+
return jresult;
|
|
30632
|
+
}
|
|
30633
|
+
|
|
30634
|
+
|
|
30635
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_delete_1dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30636
|
+
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
30637
|
+
|
|
30638
|
+
(void)jenv;
|
|
30639
|
+
(void)jcls;
|
|
30640
|
+
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
30641
|
+
{
|
|
30642
|
+
try {
|
|
30643
|
+
delete arg1;
|
|
30644
|
+
} catch (const std::runtime_error &e) {
|
|
30645
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30646
|
+
return ;
|
|
30647
|
+
} catch (const std::exception &e) {
|
|
30648
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30649
|
+
return ;
|
|
30650
|
+
} catch (...) {
|
|
30651
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30652
|
+
return ;
|
|
30653
|
+
}
|
|
30654
|
+
}
|
|
30655
|
+
}
|
|
30656
|
+
|
|
30657
|
+
|
|
30658
|
+
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1register_1subscription_1throws(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jbyteArray jarg3) {
|
|
30659
|
+
jlong jresult = 0 ;
|
|
30660
|
+
CDitto_t *arg1 = (CDitto_t *) 0 ;
|
|
30661
|
+
char *arg2 = (char *) 0 ;
|
|
30662
|
+
slice_ref_uint8_t arg3 ;
|
|
30663
|
+
dittoffi_result_dittoffi_sync_subscription_ptr_t result;
|
|
30664
|
+
|
|
30665
|
+
(void)jenv;
|
|
30666
|
+
(void)jcls;
|
|
30667
|
+
arg1 = *(CDitto_t **)&jarg1;
|
|
30668
|
+
arg2 = 0;
|
|
30669
|
+
if (jarg2) {
|
|
30670
|
+
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
|
30671
|
+
if (!arg2) return 0;
|
|
30672
|
+
}
|
|
30673
|
+
{
|
|
30674
|
+
if (jarg3 == NULL) {
|
|
30675
|
+
arg3 = slice_ref_uint8_t {
|
|
30676
|
+
.ptr = (uint8_t const *) NULL,
|
|
30677
|
+
.len = (size_t) 0,
|
|
30678
|
+
};
|
|
30679
|
+
} else {
|
|
30680
|
+
uint8_t const *ptr = (uint8_t const *) jenv->GetByteArrayElements(jarg3, NULL);
|
|
30681
|
+
do {
|
|
30682
|
+
if (!(ptr != NULL)) {
|
|
30683
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Failed to get byte array elements");
|
|
30684
|
+
}
|
|
30685
|
+
} while (0) ;
|
|
30686
|
+
auto length = jenv->GetArrayLength(jarg3);
|
|
30687
|
+
do {
|
|
30688
|
+
if (!(length >= 0)) {
|
|
30689
|
+
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Failed to get byte array length");
|
|
30690
|
+
}
|
|
30691
|
+
} while (0) ;
|
|
30692
|
+
|
|
30693
|
+
arg3 = slice_ref_uint8_t {
|
|
30694
|
+
.ptr = ptr,
|
|
30695
|
+
.len = (size_t) length,
|
|
30696
|
+
};
|
|
30697
|
+
}
|
|
30698
|
+
}
|
|
30928
30699
|
{
|
|
30929
30700
|
try {
|
|
30930
|
-
result =
|
|
30701
|
+
result = dittoffi_sync_register_subscription_throws((CDitto const *)arg1,(char const *)arg2,SWIG_STD_MOVE(arg3));
|
|
30931
30702
|
} catch (const std::runtime_error &e) {
|
|
30932
30703
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30933
30704
|
return 0;
|
|
@@ -30939,7 +30710,7 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_
|
|
|
30939
30710
|
return 0;
|
|
30940
30711
|
}
|
|
30941
30712
|
}
|
|
30942
|
-
*(
|
|
30713
|
+
*(dittoffi_result_dittoffi_sync_subscription_ptr_t **)&jresult = new dittoffi_result_dittoffi_sync_subscription_ptr_t(result);
|
|
30943
30714
|
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
30944
30715
|
{
|
|
30945
30716
|
// Free the allocation from `GetByteArrayElements`
|
|
@@ -30951,137 +30722,38 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_
|
|
|
30951
30722
|
}
|
|
30952
30723
|
|
|
30953
30724
|
|
|
30954
|
-
SWIGEXPORT
|
|
30955
|
-
|
|
30956
|
-
dittoffi_store_t *arg1 = (dittoffi_store_t *) 0 ;
|
|
30957
|
-
dittoffi_cbor_data_t result;
|
|
30958
|
-
|
|
30959
|
-
(void)jenv;
|
|
30960
|
-
(void)jcls;
|
|
30961
|
-
arg1 = *(dittoffi_store_t **)&jarg1;
|
|
30962
|
-
{
|
|
30963
|
-
try {
|
|
30964
|
-
result = dittoffi_store_transactions((CDitto const *)arg1);
|
|
30965
|
-
} catch (const std::runtime_error &e) {
|
|
30966
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30967
|
-
return 0;
|
|
30968
|
-
} catch (const std::exception &e) {
|
|
30969
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
30970
|
-
return 0;
|
|
30971
|
-
} catch (...) {
|
|
30972
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
30973
|
-
return 0;
|
|
30974
|
-
}
|
|
30975
|
-
}
|
|
30976
|
-
{
|
|
30977
|
-
if ((&result)->ptr != NULL) {
|
|
30978
|
-
jresult = jenv->NewByteArray((&result)->len);
|
|
30979
|
-
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
30980
|
-
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
30981
|
-
// takes care of that.
|
|
30982
|
-
} else {
|
|
30983
|
-
jresult = jenv->NewByteArray(0);
|
|
30984
|
-
}
|
|
30985
|
-
}
|
|
30986
|
-
{
|
|
30987
|
-
if ((&result)->ptr != NULL) {
|
|
30988
|
-
ditto_c_bytes_free(result);
|
|
30989
|
-
}
|
|
30990
|
-
}
|
|
30991
|
-
return jresult;
|
|
30992
|
-
}
|
|
30993
|
-
|
|
30994
|
-
|
|
30995
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1error_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
30996
|
-
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
30997
|
-
dittoffi_error_t *arg2 = (dittoffi_error_t *) 0 ;
|
|
30998
|
-
|
|
30999
|
-
(void)jenv;
|
|
31000
|
-
(void)jcls;
|
|
31001
|
-
(void)jarg1_;
|
|
31002
|
-
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
31003
|
-
arg2 = *(dittoffi_error_t **)&jarg2;
|
|
31004
|
-
if (arg1) (arg1)->error = arg2;
|
|
31005
|
-
}
|
|
31006
|
-
|
|
31007
|
-
|
|
31008
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1error_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
31009
|
-
jlong jresult = 0 ;
|
|
31010
|
-
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
31011
|
-
dittoffi_error_t *result = 0 ;
|
|
31012
|
-
|
|
31013
|
-
(void)jenv;
|
|
31014
|
-
(void)jcls;
|
|
31015
|
-
(void)jarg1_;
|
|
31016
|
-
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
31017
|
-
result = (dittoffi_error_t *) ((arg1)->error);
|
|
31018
|
-
*(dittoffi_error_t **)&jresult = result;
|
|
31019
|
-
return jresult;
|
|
31020
|
-
}
|
|
31021
|
-
|
|
31022
|
-
|
|
31023
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1success_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
31024
|
-
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
31025
|
-
dittoffi_sync_subscription_t *arg2 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31026
|
-
|
|
31027
|
-
(void)jenv;
|
|
31028
|
-
(void)jcls;
|
|
31029
|
-
(void)jarg1_;
|
|
31030
|
-
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
31031
|
-
arg2 = *(dittoffi_sync_subscription_t **)&jarg2;
|
|
31032
|
-
if (arg1) (arg1)->success = arg2;
|
|
31033
|
-
}
|
|
31034
|
-
|
|
31035
|
-
|
|
31036
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t_1success_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
31037
|
-
jlong jresult = 0 ;
|
|
31038
|
-
dittoffi_result_dittoffi_sync_subscription_ptr *arg1 = (dittoffi_result_dittoffi_sync_subscription_ptr *) 0 ;
|
|
31039
|
-
dittoffi_sync_subscription_t *result = 0 ;
|
|
31040
|
-
|
|
31041
|
-
(void)jenv;
|
|
31042
|
-
(void)jcls;
|
|
31043
|
-
(void)jarg1_;
|
|
31044
|
-
arg1 = *(dittoffi_result_dittoffi_sync_subscription_ptr **)&jarg1;
|
|
31045
|
-
result = (dittoffi_sync_subscription_t *) ((arg1)->success);
|
|
31046
|
-
*(dittoffi_sync_subscription_t **)&jresult = result;
|
|
31047
|
-
return jresult;
|
|
31048
|
-
}
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_new_1dittoffi_1result_1dittoffi_1sync_1subscription_1ptr_1t(JNIEnv *jenv, jclass jcls) {
|
|
31052
|
-
jlong jresult = 0 ;
|
|
31053
|
-
dittoffi_result_dittoffi_sync_subscription_ptr *result = 0 ;
|
|
30725
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1cancel(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30726
|
+
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31054
30727
|
|
|
31055
30728
|
(void)jenv;
|
|
31056
30729
|
(void)jcls;
|
|
30730
|
+
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31057
30731
|
{
|
|
31058
30732
|
try {
|
|
31059
|
-
|
|
30733
|
+
dittoffi_sync_subscription_cancel((dittoffi_sync_subscription const *)arg1);
|
|
31060
30734
|
} catch (const std::runtime_error &e) {
|
|
31061
30735
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31062
|
-
return
|
|
30736
|
+
return ;
|
|
31063
30737
|
} catch (const std::exception &e) {
|
|
31064
30738
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31065
|
-
return
|
|
30739
|
+
return ;
|
|
31066
30740
|
} catch (...) {
|
|
31067
30741
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
31068
|
-
return
|
|
30742
|
+
return ;
|
|
31069
30743
|
}
|
|
31070
30744
|
}
|
|
31071
|
-
*(dittoffi_result_dittoffi_sync_subscription_ptr **)&jresult = result;
|
|
31072
|
-
return jresult;
|
|
31073
30745
|
}
|
|
31074
30746
|
|
|
31075
30747
|
|
|
31076
|
-
SWIGEXPORT void JNICALL
|
|
31077
|
-
|
|
30748
|
+
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1free(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30749
|
+
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31078
30750
|
|
|
31079
30751
|
(void)jenv;
|
|
31080
30752
|
(void)jcls;
|
|
31081
|
-
arg1 = *(
|
|
30753
|
+
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31082
30754
|
{
|
|
31083
30755
|
try {
|
|
31084
|
-
|
|
30756
|
+
dittoffi_sync_subscription_free(arg1);
|
|
31085
30757
|
} catch (const std::runtime_error &e) {
|
|
31086
30758
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31087
30759
|
return ;
|
|
@@ -31096,50 +30768,17 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_delete_1di
|
|
|
31096
30768
|
}
|
|
31097
30769
|
|
|
31098
30770
|
|
|
31099
|
-
SWIGEXPORT
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
|
|
31103
|
-
slice_ref_uint8_t arg3 ;
|
|
31104
|
-
dittoffi_result_dittoffi_sync_subscription_ptr_t result;
|
|
30771
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1id(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30772
|
+
jbyteArray jresult = 0 ;
|
|
30773
|
+
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
30774
|
+
slice_boxed_uint8_t result;
|
|
31105
30775
|
|
|
31106
30776
|
(void)jenv;
|
|
31107
30777
|
(void)jcls;
|
|
31108
|
-
arg1 = *(
|
|
31109
|
-
arg2 = 0;
|
|
31110
|
-
if (jarg2) {
|
|
31111
|
-
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
|
31112
|
-
if (!arg2) return 0;
|
|
31113
|
-
}
|
|
31114
|
-
{
|
|
31115
|
-
if (jarg3 == NULL) {
|
|
31116
|
-
arg3 = slice_ref_uint8_t {
|
|
31117
|
-
.ptr = (uint8_t const *) NULL,
|
|
31118
|
-
.len = (size_t) 0,
|
|
31119
|
-
};
|
|
31120
|
-
} else {
|
|
31121
|
-
uint8_t const *ptr = (uint8_t const *) jenv->GetByteArrayElements(jarg3, NULL);
|
|
31122
|
-
do {
|
|
31123
|
-
if (!(ptr != NULL)) {
|
|
31124
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Failed to get byte array elements");
|
|
31125
|
-
}
|
|
31126
|
-
} while (0) ;
|
|
31127
|
-
auto length = jenv->GetArrayLength(jarg3);
|
|
31128
|
-
do {
|
|
31129
|
-
if (!(length >= 0)) {
|
|
31130
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Failed to get byte array length");
|
|
31131
|
-
}
|
|
31132
|
-
} while (0) ;
|
|
31133
|
-
|
|
31134
|
-
arg3 = slice_ref_uint8_t {
|
|
31135
|
-
.ptr = ptr,
|
|
31136
|
-
.len = (size_t) length,
|
|
31137
|
-
};
|
|
31138
|
-
}
|
|
31139
|
-
}
|
|
30778
|
+
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31140
30779
|
{
|
|
31141
30780
|
try {
|
|
31142
|
-
result =
|
|
30781
|
+
result = dittoffi_sync_subscription_id((dittoffi_sync_subscription const *)arg1);
|
|
31143
30782
|
} catch (const std::runtime_error &e) {
|
|
31144
30783
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31145
30784
|
return 0;
|
|
@@ -31151,65 +30790,53 @@ SWIGEXPORT jlong JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_
|
|
|
31151
30790
|
return 0;
|
|
31152
30791
|
}
|
|
31153
30792
|
}
|
|
31154
|
-
*(dittoffi_result_dittoffi_sync_subscription_ptr_t **)&jresult = new dittoffi_result_dittoffi_sync_subscription_ptr_t(result);
|
|
31155
|
-
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
|
31156
30793
|
{
|
|
31157
|
-
|
|
31158
|
-
|
|
31159
|
-
jenv->
|
|
30794
|
+
if ((&result)->ptr != NULL) {
|
|
30795
|
+
jresult = jenv->NewByteArray((&result)->len);
|
|
30796
|
+
jenv->SetByteArrayRegion(jresult, 0, (&result)->len, (jbyte *)(&result)->ptr);
|
|
30797
|
+
// We do not call `ditto_c_bytes_free(result);` here since the `ret` typemap
|
|
30798
|
+
// takes care of that.
|
|
30799
|
+
} else {
|
|
30800
|
+
jresult = jenv->NewByteArray(0);
|
|
31160
30801
|
}
|
|
31161
30802
|
}
|
|
31162
|
-
return jresult;
|
|
31163
|
-
}
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1cancel(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
31167
|
-
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31168
|
-
|
|
31169
|
-
(void)jenv;
|
|
31170
|
-
(void)jcls;
|
|
31171
|
-
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31172
30803
|
{
|
|
31173
|
-
|
|
31174
|
-
|
|
31175
|
-
} catch (const std::runtime_error &e) {
|
|
31176
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31177
|
-
return ;
|
|
31178
|
-
} catch (const std::exception &e) {
|
|
31179
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31180
|
-
return ;
|
|
31181
|
-
} catch (...) {
|
|
31182
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
31183
|
-
return ;
|
|
30804
|
+
if ((&result)->ptr != NULL) {
|
|
30805
|
+
ditto_c_bytes_free(result);
|
|
31184
30806
|
}
|
|
31185
30807
|
}
|
|
30808
|
+
return jresult;
|
|
31186
30809
|
}
|
|
31187
30810
|
|
|
31188
30811
|
|
|
31189
|
-
SWIGEXPORT
|
|
30812
|
+
SWIGEXPORT jboolean JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1is_1cancelled(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30813
|
+
jboolean jresult = 0 ;
|
|
31190
30814
|
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
30815
|
+
bool result;
|
|
31191
30816
|
|
|
31192
30817
|
(void)jenv;
|
|
31193
30818
|
(void)jcls;
|
|
31194
30819
|
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31195
30820
|
{
|
|
31196
30821
|
try {
|
|
31197
|
-
|
|
30822
|
+
result = (bool)dittoffi_sync_subscription_is_cancelled((dittoffi_sync_subscription const *)arg1);
|
|
31198
30823
|
} catch (const std::runtime_error &e) {
|
|
31199
30824
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31200
|
-
return ;
|
|
30825
|
+
return 0;
|
|
31201
30826
|
} catch (const std::exception &e) {
|
|
31202
30827
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31203
|
-
return ;
|
|
30828
|
+
return 0;
|
|
31204
30829
|
} catch (...) {
|
|
31205
30830
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
31206
|
-
return ;
|
|
30831
|
+
return 0;
|
|
31207
30832
|
}
|
|
31208
30833
|
}
|
|
30834
|
+
jresult = (jboolean)result;
|
|
30835
|
+
return jresult;
|
|
31209
30836
|
}
|
|
31210
30837
|
|
|
31211
30838
|
|
|
31212
|
-
SWIGEXPORT jbyteArray JNICALL
|
|
30839
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1query_1arguments_1cbor(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
31213
30840
|
jbyteArray jresult = 0 ;
|
|
31214
30841
|
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31215
30842
|
slice_boxed_uint8_t result;
|
|
@@ -31219,7 +30846,7 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
31219
30846
|
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31220
30847
|
{
|
|
31221
30848
|
try {
|
|
31222
|
-
result =
|
|
30849
|
+
result = dittoffi_sync_subscription_query_arguments_cbor((dittoffi_sync_subscription const *)arg1);
|
|
31223
30850
|
} catch (const std::runtime_error &e) {
|
|
31224
30851
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31225
30852
|
return 0;
|
|
@@ -31250,34 +30877,7 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
31250
30877
|
}
|
|
31251
30878
|
|
|
31252
30879
|
|
|
31253
|
-
SWIGEXPORT
|
|
31254
|
-
jboolean jresult = 0 ;
|
|
31255
|
-
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31256
|
-
bool result;
|
|
31257
|
-
|
|
31258
|
-
(void)jenv;
|
|
31259
|
-
(void)jcls;
|
|
31260
|
-
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31261
|
-
{
|
|
31262
|
-
try {
|
|
31263
|
-
result = (bool)dittoffi_sync_subscription_is_cancelled((dittoffi_sync_subscription const *)arg1);
|
|
31264
|
-
} catch (const std::runtime_error &e) {
|
|
31265
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31266
|
-
return 0;
|
|
31267
|
-
} catch (const std::exception &e) {
|
|
31268
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31269
|
-
return 0;
|
|
31270
|
-
} catch (...) {
|
|
31271
|
-
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception");
|
|
31272
|
-
return 0;
|
|
31273
|
-
}
|
|
31274
|
-
}
|
|
31275
|
-
jresult = (jboolean)result;
|
|
31276
|
-
return jresult;
|
|
31277
|
-
}
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1query_1arguments(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
30880
|
+
SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoffi_1sync_1subscription_1query_1arguments_1json(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
31281
30881
|
jbyteArray jresult = 0 ;
|
|
31282
30882
|
dittoffi_sync_subscription_t *arg1 = (dittoffi_sync_subscription_t *) 0 ;
|
|
31283
30883
|
slice_boxed_uint8_t result;
|
|
@@ -31287,7 +30887,7 @@ SWIGEXPORT jbyteArray JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditt
|
|
|
31287
30887
|
arg1 = *(dittoffi_sync_subscription_t **)&jarg1;
|
|
31288
30888
|
{
|
|
31289
30889
|
try {
|
|
31290
|
-
result =
|
|
30890
|
+
result = dittoffi_sync_subscription_query_arguments_json((dittoffi_sync_subscription const *)arg1);
|
|
31291
30891
|
} catch (const std::runtime_error &e) {
|
|
31292
30892
|
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what());
|
|
31293
30893
|
return 0;
|
|
@@ -31341,6 +30941,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
|
|
|
31341
30941
|
}
|
|
31342
30942
|
}
|
|
31343
30943
|
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
|
30944
|
+
{
|
|
30945
|
+
if (result != NULL) {
|
|
30946
|
+
ditto_c_string_free(result);
|
|
30947
|
+
}
|
|
30948
|
+
}
|
|
31344
30949
|
return jresult;
|
|
31345
30950
|
}
|
|
31346
30951
|
|
|
@@ -35193,7 +34798,7 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_swig_1modu
|
|
|
35193
34798
|
static struct {
|
|
35194
34799
|
const char *method;
|
|
35195
34800
|
const char *signature;
|
|
35196
|
-
} methods[
|
|
34801
|
+
} methods[119] = {
|
|
35197
34802
|
{
|
|
35198
34803
|
"SwigDirector_Retainable_java_retain", "(Llive/ditto/internal/swig/ffi/Retainable;)V"
|
|
35199
34804
|
},
|
|
@@ -35527,30 +35132,12 @@ SWIGEXPORT void JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_swig_1modu
|
|
|
35527
35132
|
{
|
|
35528
35133
|
"SwigDirector_PresenceRust_java_release", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35529
35134
|
},
|
|
35530
|
-
{
|
|
35531
|
-
"SwigDirector_PresenceRust_v1Callback", "(Llive/ditto/internal/swig/ffi/PresenceRust;Ljava/lang/String;)V"
|
|
35532
|
-
},
|
|
35533
|
-
{
|
|
35534
|
-
"SwigDirector_PresenceRust_v2Callback", "(Llive/ditto/internal/swig/ffi/PresenceRust;Ljava/lang/String;)V"
|
|
35535
|
-
},
|
|
35536
35135
|
{
|
|
35537
35136
|
"SwigDirector_PresenceRust_v3Callback", "(Llive/ditto/internal/swig/ffi/PresenceRust;Ljava/lang/String;)V"
|
|
35538
35137
|
},
|
|
35539
|
-
{
|
|
35540
|
-
"SwigDirector_PresenceRust_register_v1", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35541
|
-
},
|
|
35542
|
-
{
|
|
35543
|
-
"SwigDirector_PresenceRust_register_v2", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35544
|
-
},
|
|
35545
35138
|
{
|
|
35546
35139
|
"SwigDirector_PresenceRust_register_v3", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35547
35140
|
},
|
|
35548
|
-
{
|
|
35549
|
-
"SwigDirector_PresenceRust_requestV1Update", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35550
|
-
},
|
|
35551
|
-
{
|
|
35552
|
-
"SwigDirector_PresenceRust_requestV2Update", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35553
|
-
},
|
|
35554
35141
|
{
|
|
35555
35142
|
"SwigDirector_PresenceRust_requestV3Update", "(Llive/ditto/internal/swig/ffi/PresenceRust;)V"
|
|
35556
35143
|
},
|