34 #include "GFSDKExport.h"
38 constexpr int32_t kGfStrlenMax =
static_cast<const int32_t
>(1024 * 8);
40 using GFCommandExeucteCallback = void (*)(
void* data,
int errcode,
41 const char* out,
const char* err);
43 using GFCommandExecuteContext =
struct {
47 GFCommandExeucteCallback cb;
57 auto GPGFRONTEND_MODULE_SDK_EXPORT GFAllocateMemory(uint32_t size) ->
void*;
64 auto GPGFRONTEND_MODULE_SDK_EXPORT GFProjectVersion() ->
const char*;
71 auto GPGFRONTEND_MODULE_SDK_EXPORT GFQtEnvVersion() ->
const char*;
77 void GPGFRONTEND_MODULE_SDK_EXPORT GFFreeMemory(
void*);
88 void GPGFRONTEND_MODULE_SDK_EXPORT
89 GFExecuteCommandSync(
const char* cmd, int32_t argc,
const char** argv,
90 GFCommandExeucteCallback cb,
void* data);
98 void GPGFRONTEND_MODULE_SDK_EXPORT GFExecuteCommandBatchSync(
99 int32_t context_size,
const GFCommandExecuteContext* context);
106 auto GPGFRONTEND_MODULE_SDK_EXPORT GFModuleStrDup(
const char*) ->
char*;