cleanup
[platform/upstream/glib.git] / gio / gasynchelper.h
index 0f57a40..5f7f5a3 100644 (file)
@@ -1,5 +1,5 @@
 /* GIO - GLib Input, Output and Streaming Library
- * 
+ *
  * Copyright (C) 2006-2007 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  * Author: Alexander Larsson <alexl@redhat.com>
  */
 #ifndef __G_ASYNC_HELPER_H__
 #define __G_ASYNC_HELPER_H__
 
-#include <glib-object.h>
-#include "gcancellable.h"
-
-G_BEGIN_DECLS
+#include <gio/gio.h>
 
-typedef struct {
-  gpointer       async_object;
-  GError *       error;
-  gpointer       user_data;
-} GAsyncResultData;
+#ifdef G_OS_WIN32
+#include <windows.h>
+#endif
 
-typedef gboolean (*GFDSourceFunc) (gpointer user_data,
-                                  GIOCondition condition,
-                                  int fd);
-
-void     _g_queue_async_result (GAsyncResultData *result,
-                               gpointer         async_object,
-                               GError          *error,
-                               gpointer         user_data,
-                               GSourceFunc      source_func);
+G_BEGIN_DECLS
 
-GSource *_g_fd_source_new      (int              fd,
-                               gushort          events,
-                               GCancellable    *cancellable);
+#ifdef G_OS_WIN32
+gboolean _g_win32_overlap_wait_result (HANDLE           hfile,
+                                       OVERLAPPED      *overlap,
+                                       DWORD           *transferred,
+                                       GCancellable    *cancellable);
+#endif
 
 G_END_DECLS