diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-15 18:49:45 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-15 18:49:45 -0400 |
| commit | 518a5ddbf15d50a254c732a80d5907ef8878abe0 (patch) | |
| tree | 48cf259f98994e4570e65c389fcd9824272884ad /new/unix/init.c | |
| parent | 50ae3ca045e7f5f5744043df0a4506e2f6930bb1 (diff) | |
Split all OS backends into their own folders.
Diffstat (limited to 'new/unix/init.c')
| -rw-r--r-- | new/unix/init.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/new/unix/init.c b/new/unix/init.c new file mode 100644 index 0000000..b10c05b --- /dev/null +++ b/new/unix/init.c @@ -0,0 +1,23 @@ +// 6 april 2015 +#include "uipriv_unix.h" + +uiInitOptions options; + +const char *uiInit(uiInitOptions *o) +{ + GError *err = NULL; + const char *msg; + + options = *o; + if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &err) == FALSE) { + msg = g_strdup(err->message); + g_error_free(err); + return msg; + } + return NULL; +} + +void uiFreeInitError(const char *err) +{ + g_free((gpointer) err); +} |
