After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596420 - guint8 pointer as return value scanned as array
guint8 pointer as return value scanned as array
Status: RESOLVED NOTABUG
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-09-26 11:21 UTC by Simon van der Linden
Modified: 2015-02-07 17:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon van der Linden 2009-09-26 11:21:37 UTC
/**
 * uint8_return_ptr:
 * Returns: (transfer none):
 */
guint8 *uint8_return_ptr (void);

gives

<function name="uint8_return_ptr" c:identifier="uint8_return_ptr">
  <return-value transfer-ownership="none">
    <array c:type="guint8*">
      <type name="uint8"/>
    </array>
  </return-value>
</function>

I'd expect it to be scanned as a simple pointer, not as an array. For any other type (i.e. int8, (u)int, (u)int16, 32, etc.), it works as expected.
Comment 1 Johan (not receiving bugmail) Dahlin 2010-09-06 17:13:32 UTC
This is correct, there are no 'simple pointers' in the typelib.
Comment 2 André Klapper 2015-02-07 17:03:17 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]