/* 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
#ifndef __G_SIMPLE_ASYNC_RESULT_H__
#define __G_SIMPLE_ASYNC_RESULT_H__
-#include <gio/gasyncresult.h>
-#include <gio/gcancellable.h>
+#include <gio/giotypes.h>
G_BEGIN_DECLS
/**
* GSimpleAsyncResult:
- *
+ *
* A simple implementation of #GAsyncResult.
**/
-typedef struct _GSimpleAsyncResult GSimpleAsyncResult;
typedef struct _GSimpleAsyncResultClass GSimpleAsyncResultClass;
-/**
- * GSimpleAsyncThreadFunc:
- * @res: a #GSimpleAsyncResult.
- * @object: a #GObject.
- * @cancellable: optional #GCancellable object, %NULL to ignore.
- *
- * Simple thread function that runs an asynchronous operation and
- * checks for cancellation.
- **/
-typedef void (*GSimpleAsyncThreadFunc) (GSimpleAsyncResult *res,
- GObject *object,
- GCancellable *cancellable);
+GType g_simple_async_result_get_type (void) G_GNUC_CONST;
-GType g_simple_async_result_get_type (void) G_GNUC_CONST;
-
GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
GAsyncReadyCallback callback,
gpointer user_data,
gint code,
const char *format,
va_list args);
+gboolean g_simple_async_result_is_valid (GAsyncResult *result,
+ GObject *source,
+ gpointer source_tag);
-void g_simple_async_report_error_in_idle (GObject *object,
+void g_simple_async_report_error_in_idle (GObject *object,
GAsyncReadyCallback callback,
- gpointer user_data,
- GQuark domain,
- gint code,
- const char *format,
+ gpointer user_data,
+ GQuark domain,
+ gint code,
+ const char *format,
...);
-void g_simple_async_report_gerror_in_idle (GObject *object,
+void g_simple_async_report_gerror_in_idle (GObject *object,
GAsyncReadyCallback callback,
- gpointer user_data,
- GError *error);
+ gpointer user_data,
+ GError *error);
G_END_DECLS
-
+
#endif /* __G_SIMPLE_ASYNC_RESULT_H__ */