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 674901 - No way to read data from Gio read_async Input Stream (Python)
No way to read data from Gio read_async Input Stream (Python)
Status: RESOLVED DUPLICATE of bug 671139
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: 2012-04-26 20:12 UTC by Ivan Candelas
Modified: 2015-02-07 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ivan Candelas 2012-04-26 20:12:25 UTC
Cannot get the data using Gio from gi.repository in the function read_async.
The C API describes the read_async as

void g_input_stream_read_async (GInputStream *stream,void *buffer,gsize count,int io_priority,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);

but in python we call the function as

stream.read_async (buffer,self.block_size, GLib.PRIORITY_DEFAULT, self._cancel, self._read_cb, None)            

where buffer can't be a pointer, there is no way to get the data readed with the "introspected" function

How we can do this?
Comment 1 Dan Winship 2012-04-26 20:18:24 UTC

*** This bug has been marked as a duplicate of bug 671139 ***
Comment 2 André Klapper 2015-02-07 16:55:44 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]