Add an option parser
On one hand, getopt (in particular the -o suboption syntax) sucks on the
server side, and on the client side we would like to avoid the glib
dependency. We can roll out own option parser and solve both problems
and save a few lines of code total.
diff --git a/src/compositor.h b/src/compositor.h
index b94731b..b5ba7b2 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -34,6 +34,7 @@
#include <EGL/eglext.h>
#include "matrix.h"
+#include "../shared/config-parser.h"
struct weston_transform {
struct weston_matrix matrix;
@@ -552,4 +553,7 @@
void
weston_surface_destroy(struct weston_surface *surface);
+struct weston_compositor *
+backend_init(struct wl_display *display, int argc, char *argv[]);
+
#endif