From 766f9ed028c757561b99e4ed5aa487d381fe80a3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 26 Aug 2018 10:19:10 -0400 Subject: Migrated util.go and main.go to the new pkgui convention and C file. Also replaced C.CBytes() with C.malloc() (this bumps our minimum version requirement to 1.8, but it's better than keeping a massive slice around at all times). --- pkgui.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkgui.c (limited to 'pkgui.c') diff --git a/pkgui.c b/pkgui.c new file mode 100644 index 0000000..7caab2c --- /dev/null +++ b/pkgui.c @@ -0,0 +1,23 @@ +// 26 august 2018 +#include "pkgui.h" +#include "xxxxx" + +uiInitOptions *pkguiAllocInitOptions(void) +{ + return (uiInitOptions *) pkguiAlloc(sizeof (uiInitOptions)); +} + +void pkguiFreeInitOptions(uiInitOptions *o) +{ + free(o); +} + +void pkguiQueueMain(uintptr_t n) +{ + uiQueueMain(pkguiDoQueueMain, (void *) n); +} + +void pkguiOnShouldQuit(void) +{ + uiOnShouldQuit(pkguiDoOnShouldQuit, NULL); +} -- cgit v1.2.3