parent
8643a1eb2a
commit
f06c114dab
|
@ -16,9 +16,9 @@ RCT_EXPORT_MODULE();
|
||||||
RCT_EXPORT_METHOD(initJail: (NSString *) js
|
RCT_EXPORT_METHOD(initJail: (NSString *) js
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"initJail() method called");
|
NSLog(@"InitJail() method called");
|
||||||
#endif
|
#endif
|
||||||
initJail((char *) [js UTF8String]);
|
InitJail((char *) [js UTF8String]);
|
||||||
callback(@[[NSNull null]]);
|
callback(@[[NSNull null]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ RCT_EXPORT_METHOD(parseJail:(NSString *)chatId
|
||||||
js:(NSString *)js
|
js:(NSString *)js
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"parseJail() method called");
|
NSLog(@"ParseJail() method called");
|
||||||
#endif
|
#endif
|
||||||
char * result = parse((char *) [chatId UTF8String], (char *) [js UTF8String]);
|
char * result = Parse((char *) [chatId UTF8String], (char *) [js UTF8String]);
|
||||||
callback(@[[NSString stringWithUTF8String: result]]);
|
callback(@[[NSString stringWithUTF8String: result]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,9 +39,9 @@ RCT_EXPORT_METHOD(callJail:(NSString *)chatId
|
||||||
params:(NSString *)params
|
params:(NSString *)params
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"callJail() method called");
|
NSLog(@"CallJail() method called");
|
||||||
#endif
|
#endif
|
||||||
char * result = call((char *) [chatId UTF8String], (char *) [path UTF8String], (char *) [params UTF8String]);
|
char * result = Call((char *) [chatId UTF8String], (char *) [path UTF8String], (char *) [params UTF8String]);
|
||||||
callback(@[[NSString stringWithUTF8String: result]]);
|
callback(@[[NSString stringWithUTF8String: result]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(callJail:(NSString *)chatId
|
||||||
//////////////////////////////////////////////////////////////////// startNode
|
//////////////////////////////////////////////////////////////////// startNode
|
||||||
RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
|
RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"startNode() method called");
|
NSLog(@"StartNode() method called");
|
||||||
#endif
|
#endif
|
||||||
if (!isStatusInitialized){
|
if (!isStatusInitialized){
|
||||||
isStatusInitialized = true;
|
isStatusInitialized = true;
|
||||||
|
@ -77,7 +77,7 @@ RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
|
||||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)),
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)),
|
||||||
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
|
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
|
||||||
^(void) {
|
^(void) {
|
||||||
addPeer((char *) [peer UTF8String]);
|
AddPeer((char *) [peer UTF8String]);
|
||||||
});
|
});
|
||||||
onResultCallback(@[[NSNull null]]);
|
onResultCallback(@[[NSNull null]]);
|
||||||
return;
|
return;
|
||||||
|
@ -99,7 +99,7 @@ RCT_EXPORT_METHOD(stopNode:(RCTResponseSenderBlock)callback) {
|
||||||
RCT_EXPORT_METHOD(createAccount:(NSString *)password
|
RCT_EXPORT_METHOD(createAccount:(NSString *)password
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"createAccount() method called");
|
NSLog(@"CreateAccount() method called");
|
||||||
#endif
|
#endif
|
||||||
char * result = CreateAccount((char *) [password UTF8String]);
|
char * result = CreateAccount((char *) [password UTF8String]);
|
||||||
callback(@[[NSString stringWithUTF8String: result]]);
|
callback(@[[NSString stringWithUTF8String: result]]);
|
||||||
|
@ -110,7 +110,7 @@ RCT_EXPORT_METHOD(recoverAccount:(NSString *)passphrase
|
||||||
password:(NSString *)password
|
password:(NSString *)password
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"recoverAccount() method called");
|
NSLog(@"RecoverAccount() method called");
|
||||||
#endif
|
#endif
|
||||||
char * result = RecoverAccount((char *) [password UTF8String], (char *) [passphrase UTF8String]);
|
char * result = RecoverAccount((char *) [password UTF8String], (char *) [passphrase UTF8String]);
|
||||||
callback(@[[NSString stringWithUTF8String: result]]);
|
callback(@[[NSString stringWithUTF8String: result]]);
|
||||||
|
@ -121,7 +121,7 @@ RCT_EXPORT_METHOD(login:(NSString *)address
|
||||||
password:(NSString *)password
|
password:(NSString *)password
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"login() method called");
|
NSLog(@"Login() method called");
|
||||||
#endif
|
#endif
|
||||||
char * result = Login((char *) [address UTF8String], (char *) [password UTF8String]);
|
char * result = Login((char *) [address UTF8String], (char *) [password UTF8String]);
|
||||||
callback(@[[NSString stringWithUTF8String: result]]);
|
callback(@[[NSString stringWithUTF8String: result]]);
|
||||||
|
@ -134,7 +134,7 @@ RCT_EXPORT_METHOD(completeTransaction:(NSString *)hash
|
||||||
password:(NSString *)password
|
password:(NSString *)password
|
||||||
callback:(RCTResponseSenderBlock)callback) {
|
callback:(RCTResponseSenderBlock)callback) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
NSLog(@"completeTransaction() method called");
|
NSLog(@"CompleteTransaction() method called");
|
||||||
#endif
|
#endif
|
||||||
char * result = CompleteTransaction((char *) [hash UTF8String], (char *) [password UTF8String]);
|
char * result = CompleteTransaction((char *) [hash UTF8String], (char *) [password UTF8String]);
|
||||||
callback(@[[NSString stringWithUTF8String: result]]);
|
callback(@[[NSString stringWithUTF8String: result]]);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Created by "go tool cgo" - DO NOT EDIT. */
|
/* Created by "go tool cgo" - DO NOT EDIT. */
|
||||||
|
|
||||||
/* package github.com/status-im/status-go/src */
|
/* package github.com/status-im/status-go/cmd/status */
|
||||||
|
|
||||||
/* Start of preamble from import "C" comments. */
|
/* Start of preamble from import "C" comments. */
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ extern "C" {
|
||||||
|
|
||||||
extern char* CreateAccount(char* p0);
|
extern char* CreateAccount(char* p0);
|
||||||
|
|
||||||
|
extern char* CreateChildAccount(char* p0, char* p1);
|
||||||
|
|
||||||
extern char* RecoverAccount(char* p0, char* p1);
|
extern char* RecoverAccount(char* p0, char* p1);
|
||||||
|
|
||||||
extern char* Login(char* p0, char* p1);
|
extern char* Login(char* p0, char* p1);
|
||||||
|
@ -66,19 +68,19 @@ extern char* CompleteTransaction(char* p0, char* p1);
|
||||||
|
|
||||||
extern char* StartNode(char* p0);
|
extern char* StartNode(char* p0);
|
||||||
|
|
||||||
extern char* parse(char* p0, char* p1);
|
extern void InitJail(char* p0);
|
||||||
|
|
||||||
extern char* call(char* p0, char* p1, char* p2);
|
extern char* Parse(char* p0, char* p1);
|
||||||
|
|
||||||
extern void initJail(char* p0);
|
extern char* Call(char* p0, char* p1, char* p2);
|
||||||
|
|
||||||
extern char* addPeer(char* p0);
|
extern char* AddPeer(char* p0);
|
||||||
|
|
||||||
extern char* addWhisperFilter(char* p0);
|
extern char* AddWhisperFilter(char* p0);
|
||||||
|
|
||||||
extern void removeWhisperFilter(GoInt p0);
|
extern void RemoveWhisperFilter(GoInt p0);
|
||||||
|
|
||||||
extern void clearWhisperFilters();
|
extern void ClearWhisperFilters();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
57b36335a9cedc1a031857a1ae2af94542a21666
|
3916205e2b075e73892970f32da4526c745e3bf0
|
Loading…
Reference in New Issue