linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evan Nemerson <evan@coeus-group.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] gudev: several minor introspection fixes
Date: Thu, 12 Jan 2012 07:42:22 +0000	[thread overview]
Message-ID: <1326354142.21249.6.camel@hoplite> (raw)

  - 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(-)

diff --git a/Makefile.am b/Makefile.am
index 06500b0..a9dfe3e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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 \
diff --git a/src/extras/gudev/gudevdevice.c b/src/extras/gudev/gudevdevice.c
index 0c3340f..62a26f9 100644
--- a/src/extras/gudev/gudevdevice.c
+++ b/src/extras/gudev/gudevdevice.c
@@ -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,
-- 
1.7.7.5



             reply	other threads:[~2012-01-12  7:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12  7:42 Evan Nemerson [this message]
2012-01-12  8:08 ` [PATCH] gudev: several minor introspection fixes Martin Pitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326354142.21249.6.camel@hoplite \
    --to=evan@coeus-group.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).