This commit is contained in:
Maschell 2018-02-24 11:53:15 +01:00
commit 709f6feee8
5 changed files with 13 additions and 6 deletions

View File

@ -127,6 +127,7 @@ EXPORT_VAR(u32 *, pMEMFreeToDefaultHeap);
EXPORT_DECL(void *, MEMAllocFromAllocator, void * allocator, u32 size);
EXPORT_DECL(void, MEMFreeToAllocator, void * allocator, void* address);
EXPORT_DECL(s32, MEMGetBaseHeapHandle, s32 mem_arena);
EXPORT_DECL(u32, MEMGetTotalFreeSizeForExpHeap, s32 heap);
EXPORT_DECL(u32, MEMGetAllocatableSizeForExpHeapEx, s32 heap, s32 align);

View File

@ -44,6 +44,8 @@ EXPORT_DECL(s32, sendto, s32 s, const void *buffer, s32 size, s32 flags, const s
EXPORT_DECL(s32, setsockopt, s32 s, s32 level, s32 optname, void *optval, s32 optlen);
EXPORT_DECL(char *, inet_ntoa, struct in_addr in);
EXPORT_DECL(s32, inet_aton, const char *cp, struct in_addr *inp);
EXPORT_DECL(const char *, inet_ntop, s32 af, const void *src, char *dst, s32 size);
EXPORT_DECL(s32, inet_pton, s32 af, const char *src, void *dst);
EXPORT_DECL(s32, socketlasterr, void);
EXPORT_DECL(s32, NSSLWrite, s32 connection, const void* buf, s32 len,s32 * written);
@ -88,6 +90,8 @@ void InitSocketFunctionPointers(void){
OS_FIND_EXPORT(nsysnet_handle, setsockopt);
OS_FIND_EXPORT(nsysnet_handle, inet_ntoa);
OS_FIND_EXPORT(nsysnet_handle, inet_aton);
OS_FIND_EXPORT(nsysnet_handle, inet_ntop);
OS_FIND_EXPORT(nsysnet_handle, inet_pton);
OS_FIND_EXPORT(nsysnet_handle, NSSLWrite);
OS_FIND_EXPORT(nsysnet_handle, NSSLRead);

View File

@ -110,6 +110,8 @@ extern s32 (* NSSLCreateConnection)(s32 context, const char* host, s32 hotlen,s3
extern char * (*inet_ntoa)(struct in_addr in);
extern s32 (*inet_aton)(const char *cp, struct in_addr *inp);
extern const char * (*inet_ntop)(s32 af, const void *src, char *dst, s32 size);
extern s32 (*inet_pton)(s32 af, const char *src, void *dst);
#ifdef __cplusplus
}