Mercurial > MadButterfly
annotate 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 |
rev | line source |
---|---|
78 | 1 #include <stdio.h> |
2 #include <mb_types.h> | |
3 #include <X_supp.h> | |
4 #include "svg2code_ex.h" | |
5 | |
6 int main(int argc, char * const argv[]) { | |
7 X_MB_runtime_t rt; | |
8 svg2code_ex_t *svg2code; | |
9 int r; | |
10 | |
11 r = X_MB_init(":0.0", 200, 200, &rt); | |
12 | |
13 svg2code = svg2code_ex_new(rt.rdman); | |
14 X_MB_handle_connection(rt.display, rt.rdman, rt.tman); | |
15 | |
16 X_MB_destroy(&rt); | |
17 | |
18 return 0; | |
19 } |