From f2a7cf92e8655a1ae9adf18ab7f1ac166a154ba1 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 9 Jun 2009 15:51:57 -0400 Subject: Bug 577546 - More annotations for GLib, GObject, Gio Patch modified from one by Norbert Freese . --- gir/Makefile.am | 1 + gir/gio-2.0.c | 21 +++++++++++++++++++-- gir/glib-2.0.c | 6 +++--- gir/gobject-2.0.c | 15 +++++++++++++++ 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 gir/gobject-2.0.c diff --git a/gir/Makefile.am b/gir/Makefile.am index c30d9081..eb407458 100644 --- a/gir/Makefile.am +++ b/gir/Makefile.am @@ -73,6 +73,7 @@ GObject-2.0.gir: GLib-2.0.gir $(SCANNER_BIN) $(SCANNER_LIBS) Makefile -I$(GOBJECT_LIBDIR)/glib-2.0/include \ -DGOBJECT_COMPILATION \ --pkg gobject-2.0 \ + $(srcdir)/gobject-2.0.c \ $(GLIB_INCLUDEDIR)/gobject/*.h $(SCANNER) $(SCANNER_ARGS) \ --xpath-assertions=$(srcdir)/GObject-2.0.xpath GObject-2.0.gir diff --git a/gir/gio-2.0.c b/gir/gio-2.0.c index 8048aa2c..3a1c8fdc 100644 --- a/gir/gio-2.0.c +++ b/gir/gio-2.0.c @@ -6,7 +6,13 @@ /** * g_app_info_get_all: * - * Returns: (element-type GAppInfo) (transfer full): + * Returns: (element-type GAppInfo) (transfer full): + */ + +/** + * g_app_info_get_all_for_type: + * + * Returns: (element-type GAppInfo) (transfer full): */ /** @@ -21,6 +27,13 @@ * Returns: (transfer none): */ +/** + * g_file_info_get_attribute_data: + * + * @value_pp: (out) + * Returns: (transfer none): + */ + /** * g_file_info_get_icon: * @@ -425,6 +438,11 @@ * @cancellable: (allow-none): */ +/** + * g_file_set_attributes_finish: + * @info: (out): + */ + /** * g_file_set_attributes_from_info: * @cancellable: (allow-none): @@ -597,4 +615,3 @@ * * Return value: (array zero-terminated=1) (transfer full): */ - diff --git a/gir/glib-2.0.c b/gir/glib-2.0.c index c9689652..b372784c 100644 --- a/gir/glib-2.0.c +++ b/gir/glib-2.0.c @@ -1,7 +1,7 @@ /** * g_file_get_contents: - * @contents: (out): - * @length: (out) (allow-none): + * @contents: (out): + * @length: (out) (allow-none): */ /** @@ -13,7 +13,7 @@ * g_thread_init: * @vtable: (allow-none): */ - + /** * g_main_loop_new: * @context: (allow-none): diff --git a/gir/gobject-2.0.c b/gir/gobject-2.0.c new file mode 100644 index 00000000..07721fd2 --- /dev/null +++ b/gir/gobject-2.0.c @@ -0,0 +1,15 @@ + +/** + * g_object_add_weak_pointer: + * @weak_pointer_location: (inout) + */ + +/** + * g_object_remove_weak_pointer: + * @weak_pointer_location: (inout) + */ + +/** + * g_object_class_list_properties: + * Return value: (array length=n_properties) (transfer full): + */ -- cgit v1.2.1