Logo Search packages:      
Sourcecode: qt4-x11 version File versions

glib.cpp

typedef struct _GMainContext GMainContext;

#include <glib.h>

int main(int, char **)
{
    GMainContext *context;
    GSource *source;
    GPollFD *pollfd;
    if (!g_thread_supported())
        g_thread_init(NULL);
    context = g_main_context_default();
    source = g_source_new(0, 0);
    g_source_add_poll(source, pollfd);
    return 0;
}

Generated by  Doxygen 1.6.0   Back to index