[gnio] Rename the GAsyncInitable _new* helper to _new*_async
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Rename the GAsyncInitable _new* helper to _new*_async
- Date: Thu, 7 May 2009 10:54:52 -0400 (EDT)
commit 19ccb845225d7f1311c9b0f2d5a1b5d601358438
Author: Alexander Larsson <alexl redhat com>
Date: Thu May 7 16:53:01 2009 +0200
Rename the GAsyncInitable _new* helper to _new*_async
If we don't do this, then for bindings where we drop the type from the
name we can't differentiate the async and the sync calls for objects
that implement both GInitable and GAsyncInitable.
---
gio/gasyncinitable.c | 50 ++++++++++++++++++------------------
gio/gasyncinitable.h | 68 +++++++++++++++++++++++++-------------------------
2 files changed, 59 insertions(+), 59 deletions(-)
diff --git a/gio/gasyncinitable.c b/gio/gasyncinitable.c
index 5c99f17..bd5e200 100644
--- a/gio/gasyncinitable.c
+++ b/gio/gasyncinitable.c
@@ -233,32 +233,32 @@ g_async_initable_real_init_finish (GAsyncInitable *initable,
}
void
-g_async_initable_new (GType object_type,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data,
- const gchar *first_property_name,
- ...)
+g_async_initable_new_async (GType object_type,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data,
+ const gchar *first_property_name,
+ ...)
{
va_list var_args;
va_start (var_args, first_property_name);
- g_async_initable_new_valist (object_type,
- first_property_name, var_args,
- io_priority, cancellable,
- callback, user_data);
+ g_async_initable_new_valist_async (object_type,
+ first_property_name, var_args,
+ io_priority, cancellable,
+ callback, user_data);
va_end (var_args);
}
void
-g_async_initable_newv (GType object_type,
- guint n_parameters,
- GParameter *parameters,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
+g_async_initable_newv_async (GType object_type,
+ guint n_parameters,
+ GParameter *parameters,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
GObject *obj;
@@ -272,13 +272,13 @@ g_async_initable_newv (GType object_type,
}
void
-g_async_initable_new_valist (GType object_type,
- const gchar *first_property_name,
- va_list var_args,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
+g_async_initable_new_valist_async (GType object_type,
+ const gchar *first_property_name,
+ va_list var_args,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
GObject *obj;
diff --git a/gio/gasyncinitable.h b/gio/gasyncinitable.h
index 486624e..aaf312a 100644
--- a/gio/gasyncinitable.h
+++ b/gio/gasyncinitable.h
@@ -78,40 +78,40 @@ struct _GAsyncInitableIface
GType g_async_initable_get_type (void) G_GNUC_CONST;
-void g_async_initable_init_async (GAsyncInitable *initable,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-gboolean g_async_initable_init_finish (GAsyncInitable *initable,
- GAsyncResult *res,
- GError **error);
-
-
-void g_async_initable_new (GType object_type,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data,
- const gchar *first_property_name,
- ...);
-void g_async_initable_newv (GType object_type,
- guint n_parameters,
- GParameter *parameters,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-void g_async_initable_new_valist (GType object_type,
- const gchar *first_property_name,
- va_list var_args,
- int io_priority,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-GObject *g_async_initable_new_finish (GAsyncInitable *initable,
- GAsyncResult *res,
- GError **error);
+void g_async_initable_init_async (GAsyncInitable *initable,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean g_async_initable_init_finish (GAsyncInitable *initable,
+ GAsyncResult *res,
+ GError **error);
+
+void g_async_initable_new_async (GType object_type,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data,
+ const gchar *first_property_name,
+ ...);
+void g_async_initable_newv_async (GType object_type,
+ guint n_parameters,
+ GParameter *parameters,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+void g_async_initable_new_valist_async (GType object_type,
+ const gchar *first_property_name,
+ va_list var_args,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GObject *g_async_initable_new_finish (GAsyncInitable *initable,
+ GAsyncResult *res,
+ GError **error);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]