00001 #ifndef _OPENSYNC_SUPPORT_H
00002 #define _OPENSYNC_SUPPORT_H
00003
00004 typedef struct OSyncThread {
00005 GThread *thread;
00006 GCond *started;
00007 GMutex *started_mutex;
00008 GMainContext *context;
00009 GMainLoop *loop;
00010 } OSyncThread;
00011
00012 OSyncThread *osync_thread_new(GMainContext *context, OSyncError **error);
00013 void osync_thread_free(OSyncThread *thread);
00014 void osync_thread_start(OSyncThread *thread);
00015 void osync_thread_stop(OSyncThread *thread);
00016 osync_bool osync_pattern_match(const char *pattern, const char *data, int size);
00017
00018 #endif