[libzapojit] docs: Document zpj_skydrive_download_file_to_stream_async



commit 936254776e9878951f72eeab5646cb0a69fa6a14
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jun 1 21:23:47 2012 +0200

    docs: Document zpj_skydrive_download_file_to_stream_async

 src/zpj-skydrive.c |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/src/zpj-skydrive.c b/src/zpj-skydrive.c
index 8590348..88655fa 100644
--- a/src/zpj-skydrive.c
+++ b/src/zpj-skydrive.c
@@ -591,7 +591,8 @@ zpj_skydrive_download_file_id_to_stream_finish (ZpjSkydrive *self,
  *
  * Synchronously returns a stream for downloading @file from
  * <ulink url="http://msdn.microsoft.com/en-us/library/live/hh826521";>
- * Skydrive</ulink>.
+ * Skydrive</ulink>. See zpj_skydrive_download_file_to_stream_async()
+ * for the asynchronous version of this call.
  *
  * Returns: (transfer full): A #GInputStream to read the file data
  * from. Free the returned object with g_object_unref().
@@ -615,6 +616,25 @@ zpj_skydrive_download_file_to_stream (ZpjSkydrive *self,
 }
 
 
+/**
+ * zpj_skydrive_download_file_to_stream_async:
+ * @self: A #ZpjSkydrive.
+ * @file: The #ZpjSkydriveFile to be downloaded.
+ * @cancellable: (allow-none): An optional #GCancellable object, or
+ *   %NULL.
+ * @callback: (scope async): A #GAsyncReadyCallback to call when the
+ *   request is satisfied.
+ * @user_data: (closure): The data to pass to @callback.
+ *
+ * Asynchronously returns a stream for downloading @file from
+ * <ulink url="http://msdn.microsoft.com/en-us/library/live/hh826521";>
+ * Skydrive</ulink>. See zpj_skydrive_download_file_to_stream() for the
+ * synchronous version of this call.
+ *
+ * When the operation is finished, @callback will be called. You can
+ * then call zpj_skydrive_download_file_to_stream_finish() to get the
+ * result of the operation.
+ */
 void
 zpj_skydrive_download_file_to_stream_async (ZpjSkydrive *self,
                                             ZpjSkydriveFile *file,
@@ -634,6 +654,18 @@ zpj_skydrive_download_file_to_stream_async (ZpjSkydrive *self,
 }
 
 
+/**
+ * zpj_skydrive_download_file_to_stream_finish:
+ * @self: A #ZpjSkydrive.
+ * @res: A #GAsyncResult.
+ * @error: (allow-none): An optional #GError, or %NULL.
+ *
+ * Finishes an asynchronous operation started with
+ * zpj_skydrive_download_file_to_stream_async().
+ *
+ * Returns: (transfer full): A #GInputStream to read the file data
+ * from. Free the returned object with g_object_unref().
+ */
 GInputStream *
 zpj_skydrive_download_file_to_stream_finish (ZpjSkydrive *self, GAsyncResult *res, GError **error)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]