[gcab] build-sys: fix introspection warnings



commit 777dcb82e1cb78162f4cecda16accb88756e3dc3
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Dec 21 18:02:57 2012 +0100

    build-sys: fix introspection warnings

 Makefile.am            |    4 ++++
 libgcab/gcab-cabinet.c |    8 +++-----
 libgcab/gcab-file.c    |    2 +-
 libgcab/gcab-folder.c  |    6 +++---
 4 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index cbfdf62..3dfedf7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -90,6 +90,10 @@ GCab_1_0_gir_FILES =				\
 	$(top_srcdir)/libgcab/gcab-enums.h	\
 	$(top_srcdir)/libgcab/gcab-file.h	\
 	$(top_srcdir)/libgcab/gcab-folder.h	\
+	$(top_srcdir)/libgcab/gcab-cabinet.c	\
+	$(top_srcdir)/libgcab/gcab-enums.c	\
+	$(top_srcdir)/libgcab/gcab-file.c	\
+	$(top_srcdir)/libgcab/gcab-folder.c	\
 	$(NULL)
 GCab_1_0_gir_EXPORT_PACKAGES = libgcab-1.0
 GCab_1_0_gir_SCANNERFLAGS =			\
diff --git a/libgcab/gcab-cabinet.c b/libgcab/gcab-cabinet.c
index 3eb76f5..d0fe1b8 100644
--- a/libgcab/gcab-cabinet.c
+++ b/libgcab/gcab-cabinet.c
@@ -94,11 +94,9 @@ gcab_cabinet_add_folder (GCabCabinet *self,
 
 /**
  * gcab_cabinet_get_folders:
- * @cabinet:
+ * @cabinet:a #GCabCabinet
  *
- *
- *
- * Returns:
+ * Returns: (element-type GCabFolder) (transfer full): an array of #GCabFolder
  **/
 GPtrArray *
 gcab_cabinet_get_folders (GCabCabinet *self)
@@ -111,7 +109,7 @@ gcab_cabinet_get_folders (GCabCabinet *self)
 /**
  * gcab_cabinet_write:
  * @cabinet: a #GCabCabinet
- * @out: a #GOutputStream also #GSeekable
+ * @stream: a #GOutputStream also #GSeekable
  * @file_callback: (allow-none) (scope call): report current file being saved
  * @progress_callback: (allow-none) (scope call): report saving progress
  * @callback_data: (closure): user data to pass to callbacks
diff --git a/libgcab/gcab-file.c b/libgcab/gcab-file.c
index 0c80f13..93b28e8 100644
--- a/libgcab/gcab-file.c
+++ b/libgcab/gcab-file.c
@@ -160,7 +160,7 @@ gcab_file_get_name (GCabFile *self)
  * gcab_file_get_file:
  * @file: a #GCabFile
  *
- * Returns: the associated #GFile or %NULL
+ * Returns: (transfer full): the associated #GFile or %NULL
  **/
 GFile *
 gcab_file_get_file (GCabFile *self)
diff --git a/libgcab/gcab-folder.c b/libgcab/gcab-folder.c
index 9d80710..35c856d 100644
--- a/libgcab/gcab-folder.c
+++ b/libgcab/gcab-folder.c
@@ -148,8 +148,8 @@ add_file_info (GCabFolder *self, GCabFile *file, GFileInfo *info,
 
 /**
  * gcab_folder_add_file:
- * @cabfile: a #GCabfile
- * @file: file to be added
+ * @cabfolder: a #GCabFolder
+ * @cabfile: file to be added
  * @recurse: whether to recurse through subdirectories
  * @cancellable: (allow-none): optional #GCancellable object,
  *     %NULL to ignore
@@ -186,7 +186,7 @@ gcab_folder_add_file (GCabFolder *self, GCabFile *file,
 
 /**
  * gcab_folder_get_nfiles:
- * @folder: a #GCabFolder
+ * @cabfolder: a #GCabFolder
  *
  * Returns: Number of files in this @folder.
  **/



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