// 17 november 2015 #include "uipriv_haiku.hpp" static BApplication *app; uiInitOptions options; const char *uiInit(uiInitOptions *o) { status_t err; options = *o; // TODO properly set the MIME type app = new BApplication("application/x-vnd.andlabs.libui", &err); if (err != B_NO_ERROR) { delete app; // TODO return "fail"; } return NULL; } void uiUninit(void) { delete app; } void uiFreeInitError(const char *err) { // TODO } void uiMain(void) { app->Run(); } void uiQuit(void) { app->Quit(); }