diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-06 12:26:17 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-06 12:26:17 -0400 |
| commit | 95440a3be135d1b34e1fe8b8f06315e65f26c168 (patch) | |
| tree | 6590f8a14bcc94bce5d323b5c6e8e02378636670 /new/init_unix.c | |
| parent | 2f2836fa65e598435bbe395a44824c39efe0b198 (diff) | |
Renamed some files. More TODOs.
Diffstat (limited to 'new/init_unix.c')
| -rw-r--r-- | new/init_unix.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/new/init_unix.c b/new/init_unix.c new file mode 100644 index 0000000..4d951af --- /dev/null +++ b/new/init_unix.c @@ -0,0 +1,28 @@ +// 6 april 2015 +#include "ui_unix.h" + +struct uiInitError { + GError *err; +}; + +uiInitError *uiInit(uiInitOptions *o) +{ + uiInitError *e; + + e = g_new0(uiInitError, 1); + if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &(e->err)) == FALSE) + return e; + g_free(e); + return NULL; +} + +const char *uiInitErrorMessage(uiInitError *e) +{ + return e->err->message; +} + +void uiInitErrorFree(uiInitError *e) +{ + g_error_free(e->err); + g_free(e); +} |
