Skip to contentSkip to conversation

gudev: several minor introspection fixes

PATCH Applied Evan Nemerson 2 participants 2 messages Jan 12, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gudev: several minor introspection fixes

- Include exported package information
- Include C include information
- g_udev_device_get_parent & g_udev_device_get_parent_with_subsystem transfer ownership of their return values

---
 Makefile.am                    |    2 ++
 src/extras/gudev/gudevdevice.c |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
Makefile.am +2 -0
index 06500b0..a9dfe3e 100644
@@ -476,6 +476,8 @@ src/extras/gudev/GUdev-1.0.gir: src/extras/gudev/libgudev-1.0.la $(G_IR_SCANNER)
 		--output $@ \
 		--pkg=glib-2.0 \
 		--pkg=gobject-2.0 \
+		--pkg-export=gudev-1.0 \
+		--c-include=gudev/gudev.h \
 		-I$(top_srcdir)/src/extras \
 		-I$(top_builddir)/src/extras \
 		-D_GUDEV_COMPILATION \
src/extras/gudev/gudevdevice.c +2 -2
index 0c3340f..62a26f9 100644
@@ -373,7 +373,7 @@ g_udev_device_get_device_file_symlinks (GUdevDevice *device)
  *
  * Gets the immediate parent of @device, if any.
  *
- * Returns: A #GUdevDevice or %NULL if @device has no parent. Free with g_object_unref().
+ * Returns: (transfer full): A #GUdevDevice or %NULL if @device has no parent. Free with g_object_unref().
  */
 GUdevDevice *
 g_udev_device_get_parent (GUdevDevice  *device)
@@ -404,7 +404,7 @@ g_udev_device_get_parent (GUdevDevice  *device)
  * Walks up the chain of parents of @device and returns the first
  * device encountered where @subsystem and @devtype matches, if any.
  *
- * Returns: A #GUdevDevice or %NULL if @device has no parent with @subsystem and @devtype. Free with g_object_unref().
+ * Returns: (transfer full): A #GUdevDevice or %NULL if @device has no parent with @subsystem and @devtype. Free with g_object_unref().
  */
 GUdevDevice *
 g_udev_device_get_parent_with_subsystem (GUdevDevice  *device,
Signature · 1 line
1.7.7.5
Applied
#1 lore raw

Hello Evan,

Evan Nemerson [2012-01-11 23:42 -0800]:

Quoted 4 lines

- Include exported package information
- Include C include information
- g_udev_device_get_parent & g_udev_device_get_parent_with_subsystem transfer ownership of their return values

Thanks! Applied.

Martin

Signature · 2 lines
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)