diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-26 10:19:10 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-26 10:19:10 -0400 |
| commit | 766f9ed028c757561b99e4ed5aa487d381fe80a3 (patch) | |
| tree | bdbeb748f2a88a47f6b246ffa1a72cd6c0da4689 /pkgui.c | |
| parent | 62ac2527732a01dfa6bd2c9523215c0ba3816641 (diff) | |
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).
Diffstat (limited to 'pkgui.c')
| -rw-r--r-- | pkgui.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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); +} |
