medit/moo/mooutils/mooutils-thread.h

47 lines
1.5 KiB
C
Raw Normal View History

2006-12-08 00:28:18 -08:00
/*
* mooutils-thread.h
*
2007-06-24 10:56:20 -07:00
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
2006-12-08 00:28:18 -08:00
*
2007-06-24 10:56:20 -07:00
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
2006-12-08 00:28:18 -08:00
*
* See COPYING file that comes with this distribution.
*/
#ifndef MOO_UTILS_WIN32_H
#define MOO_UTILS_WIN32_H
2006-12-08 00:28:18 -08:00
#include <glib.h>
G_BEGIN_DECLS
2006-12-10 08:54:35 -08:00
typedef void (*MooEventQueueCallback) (GList *events,
gpointer data);
2006-12-08 00:28:18 -08:00
guint _moo_event_queue_connect (MooEventQueueCallback callback,
gpointer data,
GDestroyNotify notify);
void _moo_event_queue_disconnect (guint event_id);
void _moo_event_queue_do_events (guint event_id);
/* called from a thread */
void _moo_event_queue_push (guint event_id,
gpointer data,
GDestroyNotify data_destroy);
2006-12-10 08:54:35 -08:00
void _moo_print_async (const char *format,
...);
void _moo_message_async (const char *format,
...);
2006-12-08 00:28:18 -08:00
G_END_DECLS
#endif /* MOO_UTILS_WIN32_H */