upgarde status-go for ios

Former-commit-id: 29a17a8a8a
This commit is contained in:
Roman Volosovskyi 2016-09-23 17:14:43 +03:00
parent 8643a1eb2a
commit f06c114dab
3 changed files with 23 additions and 21 deletions

View File

@ -16,9 +16,9 @@ RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(initJail: (NSString *) js
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"initJail() method called");
NSLog(@"InitJail() method called");
#endif
initJail((char *) [js UTF8String]);
InitJail((char *) [js UTF8String]);
callback(@[[NSNull null]]);
}
@ -27,9 +27,9 @@ RCT_EXPORT_METHOD(parseJail:(NSString *)chatId
js:(NSString *)js
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"parseJail() method called");
NSLog(@"ParseJail() method called");
#endif
char * result = parse((char *) [chatId UTF8String], (char *) [js UTF8String]);
char * result = Parse((char *) [chatId UTF8String], (char *) [js UTF8String]);
callback(@[[NSString stringWithUTF8String: result]]);
}
@ -39,9 +39,9 @@ RCT_EXPORT_METHOD(callJail:(NSString *)chatId
params:(NSString *)params
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"callJail() method called");
NSLog(@"CallJail() method called");
#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]]);
}
@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(callJail:(NSString *)chatId
//////////////////////////////////////////////////////////////////// startNode
RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
#if DEBUG
NSLog(@"startNode() method called");
NSLog(@"StartNode() method called");
#endif
if (!isStatusInitialized){
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_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^(void) {
addPeer((char *) [peer UTF8String]);
AddPeer((char *) [peer UTF8String]);
});
onResultCallback(@[[NSNull null]]);
return;
@ -99,7 +99,7 @@ RCT_EXPORT_METHOD(stopNode:(RCTResponseSenderBlock)callback) {
RCT_EXPORT_METHOD(createAccount:(NSString *)password
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"createAccount() method called");
NSLog(@"CreateAccount() method called");
#endif
char * result = CreateAccount((char *) [password UTF8String]);
callback(@[[NSString stringWithUTF8String: result]]);
@ -110,7 +110,7 @@ RCT_EXPORT_METHOD(recoverAccount:(NSString *)passphrase
password:(NSString *)password
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"recoverAccount() method called");
NSLog(@"RecoverAccount() method called");
#endif
char * result = RecoverAccount((char *) [password UTF8String], (char *) [passphrase UTF8String]);
callback(@[[NSString stringWithUTF8String: result]]);
@ -121,7 +121,7 @@ RCT_EXPORT_METHOD(login:(NSString *)address
password:(NSString *)password
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"login() method called");
NSLog(@"Login() method called");
#endif
char * result = Login((char *) [address UTF8String], (char *) [password UTF8String]);
callback(@[[NSString stringWithUTF8String: result]]);
@ -134,7 +134,7 @@ RCT_EXPORT_METHOD(completeTransaction:(NSString *)hash
password:(NSString *)password
callback:(RCTResponseSenderBlock)callback) {
#if DEBUG
NSLog(@"completeTransaction() method called");
NSLog(@"CompleteTransaction() method called");
#endif
char * result = CompleteTransaction((char *) [hash UTF8String], (char *) [password UTF8String]);
callback(@[[NSString stringWithUTF8String: result]]);

View File

@ -1,6 +1,6 @@
/* 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. */
@ -54,6 +54,8 @@ extern "C" {
extern char* CreateAccount(char* p0);
extern char* CreateChildAccount(char* p0, char* p1);
extern char* RecoverAccount(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* 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
}

View File

@ -1 +1 @@
57b36335a9cedc1a031857a1ae2af94542a21666
3916205e2b075e73892970f32da4526c745e3bf0