Imported Upstream version 2.73.3
[platform/upstream/glib.git] / gio / gasyncinitable.h
index 1b1004d..225702c 100644 (file)
@@ -2,10 +2,12 @@
  *
  * Copyright (C) 2009 Red Hat, Inc.
  *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ *
  * 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 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,9 +15,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>
  */
@@ -74,18 +74,22 @@ struct _GAsyncInitableIface
                            GError             **error);
 };
 
+GLIB_AVAILABLE_IN_ALL
 GType    g_async_initable_get_type    (void) G_GNUC_CONST;
 
 
+GLIB_AVAILABLE_IN_ALL
 void     g_async_initable_init_async       (GAsyncInitable       *initable,
                                            int                   io_priority,
                                            GCancellable         *cancellable,
                                            GAsyncReadyCallback   callback,
                                            gpointer              user_data);
+GLIB_AVAILABLE_IN_ALL
 gboolean g_async_initable_init_finish      (GAsyncInitable       *initable,
                                            GAsyncResult         *res,
                                            GError              **error);
 
+GLIB_AVAILABLE_IN_ALL
 void     g_async_initable_new_async        (GType                 object_type,
                                            int                   io_priority,
                                            GCancellable         *cancellable,
@@ -93,6 +97,10 @@ void     g_async_initable_new_async        (GType                 object_type,
                                            gpointer              user_data,
                                            const gchar          *first_property_name,
                                            ...);
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
+GLIB_DEPRECATED_IN_2_54_FOR(g_object_new_with_properties and g_async_initable_init_async)
 void     g_async_initable_newv_async       (GType                 object_type,
                                            guint                 n_parameters,
                                            GParameter           *parameters,
@@ -100,6 +108,10 @@ void     g_async_initable_newv_async       (GType                 object_type,
                                            GCancellable         *cancellable,
                                            GAsyncReadyCallback   callback,
                                            gpointer              user_data);
+
+G_GNUC_END_IGNORE_DEPRECATIONS
+
+GLIB_AVAILABLE_IN_ALL
 void     g_async_initable_new_valist_async (GType                 object_type,
                                            const gchar          *first_property_name,
                                            va_list               var_args,
@@ -107,6 +119,7 @@ void     g_async_initable_new_valist_async (GType                 object_type,
                                            GCancellable         *cancellable,
                                            GAsyncReadyCallback   callback,
                                            gpointer              user_data);
+GLIB_AVAILABLE_IN_ALL
 GObject *g_async_initable_new_finish       (GAsyncInitable       *initable,
                                            GAsyncResult         *res,
                                            GError              **error);