33 #include "GFSDKExport.h"
37 using GFCommandExeucteCallback = void (*)(
void* data,
int errcode,
38 const char* out,
const char* err);
40 using GFCommandExecuteContext =
struct {
44 GFCommandExeucteCallback cb;
54 auto GPGFRONTEND_MODULE_SDK_EXPORT GFAllocateMemory(uint32_t size) ->
void*;
61 auto GPGFRONTEND_MODULE_SDK_EXPORT GFProjectVersion() ->
const char*;
68 auto GPGFRONTEND_MODULE_SDK_EXPORT GFQtEnvVersion() ->
const char*;
74 void GPGFRONTEND_MODULE_SDK_EXPORT GFFreeMemory(
void*);
85 void GPGFRONTEND_MODULE_SDK_EXPORT
86 GFExecuteCommandSync(
const char* cmd, int32_t argc,
const char** argv,
87 GFCommandExeucteCallback cb,
void* data);
95 void GPGFRONTEND_MODULE_SDK_EXPORT GFExecuteCommandBatchSync(
96 int32_t context_size,
const GFCommandExecuteContext* context);
103 auto GPGFRONTEND_MODULE_SDK_EXPORT GFModuleStrDup(
const char*) ->
char*;