Skip to content

Commit

Permalink
update mac/ios project to the new logic of keep all relevant logic on…
Browse files Browse the repository at this point in the history
… csharp project.
  • Loading branch information
bobaoapae committed Nov 12, 2024
1 parent 8c1ee36 commit 151c464
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 259 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
AneAwesomeUtilsSupport.cpp,
DeviceUtils.m,
log.cpp,
WebSocketClient.cpp,
);
target = 57B755732CD02AFF0000FE66 /* AneAwesomeUtils-IOS */;
};
Expand Down
Binary file not shown.
36 changes: 18 additions & 18 deletions AppleNative/AneAwesomeUtils/AneAwesomeUtils/AneAwesomeUtilsCsharp.h
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
//
// AneAwesomeUtilsCsharp.h
// AneAwesomeUtils
//
// Created by João Vitor Borges on 28/10/24.
// Created by User on 29/10/2024.
//

#ifndef AneAwesomeUtilsCsharp_h
#define AneAwesomeUtilsCsharp_h
#ifndef ANEAWESOMEUTILSCSHARP_H
#define ANEAWESOMEUTILSCSHARP_H
#include "DataArray.h"

extern "C" {
__cdecl int csharpLibrary_awesomeUtils_initialize(
int __cdecl csharpLibrary_awesomeUtils_initialize(
const void* urlLoaderSuccessCallBack,
const void *urlLoaderProgressCallBack,
const void *urlLoaderFailureCallBack,
const void *webSocketConnectCallBack,
const void *webSocketErrorCallBack,
const void *webSocketDataCallBack,
const void *writeLogCallBack);
__cdecl char* csharpLibrary_awesomeUtils_uuid();
__cdecl char* csharpLibrary_awesomeUtils_deviceUniqueId();
__cdecl char* csharpLibrary_awesomeUtils_loadUrl(const char* url, const char* method, const char* variables, const char* headers);
__cdecl char* csharpLibrary_awesomeUtils_createWebSocket();
__cdecl int csharpLibrary_awesomeUtils_connectWebSocket(const void* guidPointer, const char* host);
__cdecl int csharpLibrary_awesomeUtils_sendWebSocketMessage(const void* guidPointer, const void* data, int length);
__cdecl int csharpLibrary_awesomeUtils_closeWebSocket(const void* guidPointer, int closeCode);
__cdecl void csharpLibrary_awesomeUtils_addStaticHost(const char* host, const char* ip);
__cdecl void csharpLibrary_awesomeUtils_removeStaticHost(const char* host);
char* __cdecl csharpLibrary_awesomeUtils_uuid();
char* __cdecl csharpLibrary_awesomeUtils_deviceUniqueId();
char* __cdecl csharpLibrary_awesomeUtils_loadUrl(const char* url, const char* method, const char* variables, const char* headers);
DataArray __cdecl csharpLibrary_awesomeUtils_getLoaderResult(const void* guidPointer);
char* __cdecl csharpLibrary_awesomeUtils_createWebSocket();
int __cdecl csharpLibrary_awesomeUtils_connectWebSocket(const void* guidPointer, const char* host);
int __cdecl csharpLibrary_awesomeUtils_sendWebSocketMessage(const void* guidPointer, const void* data, int length);
int __cdecl csharpLibrary_awesomeUtils_closeWebSocket(const void* guidPointer, int closeCode);
DataArray __cdecl csharpLibrary_awesomeUtils_getWebSocketMessage(const void* guidPointer);
void __cdecl csharpLibrary_awesomeUtils_addStaticHost(const char* host, const char* ip);
void __cdecl csharpLibrary_awesomeUtils_removeStaticHost(const char* host);
}

#endif /* AneAwesomeUtilsCsharp_h */
#endif //ANEAWESOMEUTILSCSHARP_H
Loading

0 comments on commit 151c464

Please sign in to comment.