cleanup
[platform/upstream/glib.git] / gio / gasynchelper.h
index e95b405..5f7f5a3 100644 (file)
@@ -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>
  */
 #define __G_ASYNC_HELPER_H__
 
 #include <gio/gio.h>
-#include <glib-object.h>
 
-G_BEGIN_DECLS
-
-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);
-typedef gboolean (*GFDSourceObjectFunc) (GObject *object,
-                                        GIOCondition condition,
-                                        gpointer     user_data);
-
-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_with_object (GObject      *object,
-                                      int           fd,
-                                      gushort       events,
-                                      GCancellable *cancellable);
-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