1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-22 17:48:01 +02:00

Revamp Stdcall

This commit is contained in:
LZMPDev 2020-05-25 20:46:28 +08:00
parent 7b4239d08e
commit ad0dab0d4c
58 changed files with 1398 additions and 1398 deletions

View file

@ -4,10 +4,10 @@ namespace IDE.util
{
class BfLog
{
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BfLog_Log(char8* str);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
static extern void BfLog_LogDbg(char8* str);
public static void Log(StringView str, params Object[] strParams)

View file

@ -854,25 +854,25 @@ namespace CURL
HTTP2Stream, /* 92 - stream error in HTTP/2 framing layer */
}
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern void* curl_easy_init();
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern int curl_easy_setopt(void* curl, int option, int optVal);
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern void* curl_easy_duphandle(void* curl);
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern void* curl_easy_cleanup(void* curl);
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern int curl_easy_perform(void* curl);
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern void* curl_easy_getinfo(void* curl, Option option, void* ptr);
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
static extern void* curl_easy_reset(void* curl);
void* mCURL;

View file

@ -190,10 +190,10 @@ namespace IDE.Util
}
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern void git_strarray_free(git_strarray *array);
[StdCall, CLink]
[CallingConvention(.Stdcall), CLink]
public static extern int32 git_strarray_copy(git_strarray *tgt, git_strarray *src);
/** Time in a signature */
@ -604,16 +604,16 @@ namespace IDE.Util
public void* remote_cb_payload;
}
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
public static extern int32 git_libgit2_init();
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
public static extern int32 git_libgit2_shutdown();
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
public static extern int32 git_clone(git_repository** repoOut, char8* url, char8* local_path, git_clone_options* options);
[CLink, StdCall]
[CLink, CallingConvention(.Stdcall)]
public static extern void git_repository_free(git_repository *repo);
}
}

View file

@ -97,7 +97,7 @@ namespace IDE.Util
UpdateBytesPerSecond();
}
[StdCall]
[CallingConvention(.Stdcall)]
static int Callback(void *p, int dltotal, int dlnow, int ultotal, int ulnow)
{
Transfer transfer = (Transfer)Internal.UnsafeCastToObject(p);
@ -111,7 +111,7 @@ namespace IDE.Util
return 0;
}
[StdCall]
[CallingConvention(.Stdcall)]
static int Write(void* dataPtr, int size, int count, void* ctx)
{
Transfer transfer = (Transfer)Internal.UnsafeCastToObject(ctx);