source:
trunk/config.tests/unix/glib/glib.cpp@
11
| Last change on this file since 11 was 2, checked in by , 16 years ago | |
|---|---|
| File size: 345 bytes | |
| Line | |
|---|---|
| 1 | typedef struct _GMainContext GMainContext; |
| 2 | |
| 3 | #include <glib.h> |
| 4 | |
| 5 | int main(int, char **) |
| 6 | { |
| 7 | GMainContext *context; |
| 8 | GSource *source; |
| 9 | GPollFD *pollfd; |
| 10 | if (!g_thread_supported()) |
| 11 | g_thread_init(NULL); |
| 12 | context = g_main_context_default(); |
| 13 | source = g_source_new(0, 0); |
| 14 | g_source_add_poll(source, pollfd); |
| 15 | return 0; |
| 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
