diff examples/svg2code_ex/main.c @ 78:3645e29e4986

Add runtime for Xlib.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 20 Aug 2008 23:33:04 +0800
parents
children 5bcb329a5157
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/svg2code_ex/main.c	Wed Aug 20 23:33:04 2008 +0800
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <mb_types.h>
+#include <X_supp.h>
+#include "svg2code_ex.h"
+
+int main(int argc, char * const argv[]) {
+    X_MB_runtime_t rt;
+    svg2code_ex_t *svg2code;
+    int r;
+
+    r = X_MB_init(":0.0", 200, 200, &rt);
+
+    svg2code = svg2code_ex_new(rt.rdman);
+    X_MB_handle_connection(rt.display, rt.rdman, rt.tman);
+
+    X_MB_destroy(&rt);
+
+    return 0;
+}