diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-24 21:38:50 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-24 21:38:50 +0000 |
commit | 4777faab0d31bd883bf2eee600bf8bd32f119600 (patch) | |
tree | 7b56d4ac2aaa902bc0924f25bb5dfe790230e140 /gio/ginputstream.override | |
parent | c5639326d2f2f09175e495d4e24193e22df8f7be (diff) | |
download | pygobject-4777faab0d31bd883bf2eee600bf8bd32f119600.tar.gz pygobject-4777faab0d31bd883bf2eee600bf8bd32f119600.tar.xz pygobject-4777faab0d31bd883bf2eee600bf8bd32f119600.zip |
Wrap gio.File.copy, add tests and documentation. Rename
2008-07-24 Johan Dahlin <johan@gnome.org>
* gio/gfile.override:
* gio/gfileenumerator.override:
* gio/ginputstream.override:
* gio/gio.defs:
* gio/gio.override:
* gio/goutputstream.override:
* tests/test_gio.py:
Wrap gio.File.copy, add tests and documentation.
Rename PyGAsyncRequestNotify to PyGIONotify and reuse it.
svn path=/trunk/; revision=850
Diffstat (limited to 'gio/ginputstream.override')
-rw-r--r-- | gio/ginputstream.override | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gio/ginputstream.override b/gio/ginputstream.override index 8a42d60..878f7e7 100644 --- a/gio/ginputstream.override +++ b/gio/ginputstream.override @@ -27,12 +27,12 @@ typedef struct { PyObject *callback; PyObject *data; PyObject *buffer; -} PyGAsyncRequestNotifyRead; +} PyGIONotifyRead; static void async_result_callback_marshal_read(GObject *source_object, GAsyncResult *result, - PyGAsyncRequestNotifyRead *notify) + PyGIONotifyRead *notify) { PyObject *ret; PyGILState_STATE state; @@ -69,7 +69,7 @@ async_result_callback_marshal_read(GObject *source_object, Py_DECREF(notify->callback); Py_XDECREF(notify->data); - g_slice_free(PyGAsyncRequestNotifyRead, notify); + g_slice_free(PyGIONotifyRead, notify); pyg_gil_state_release(state); } @@ -157,9 +157,9 @@ _wrap_g_input_stream_read_async(PyGObject *self, int io_priority = G_PRIORITY_DEFAULT; PyGObject *pycancellable = NULL; GCancellable *cancellable; - PyGAsyncRequestNotifyRead *notify; + PyGIONotifyRead *notify; - notify = g_slice_new0(PyGAsyncRequestNotifyRead); + notify = g_slice_new0(PyGIONotifyRead); if (!PyArg_ParseTupleAndKeywords(args, kwargs, "lO|iOO:InputStream.read_async", @@ -170,14 +170,14 @@ _wrap_g_input_stream_read_async(PyGObject *self, &pycancellable, ¬ify->data)) { - g_slice_free(PyGAsyncRequestNotifyRead, notify); + g_slice_free(PyGIONotifyRead, notify); return NULL; } if (!PyCallable_Check(notify->callback)) { PyErr_SetString(PyExc_TypeError, "callback argument not callable"); - g_slice_free(PyGAsyncRequestNotifyRead, notify); + g_slice_free(PyGIONotifyRead, notify); return NULL; } Py_INCREF(notify->callback); @@ -245,9 +245,9 @@ _wrap_g_input_stream_close_async(PyGObject *self, int io_priority = G_PRIORITY_DEFAULT; PyGObject *pycancellable = NULL; GCancellable *cancellable; - PyGAsyncRequestNotify *notify; + PyGIONotify *notify; - notify = g_slice_new0(PyGAsyncRequestNotify); + notify = g_slice_new0(PyGIONotify); if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|iOO:InputStream.close_async", @@ -257,14 +257,14 @@ _wrap_g_input_stream_close_async(PyGObject *self, &pycancellable, ¬ify->data)) { - g_slice_free(PyGAsyncRequestNotify, notify); + g_slice_free(PyGIONotify, notify); return NULL; } if (!PyCallable_Check(notify->callback)) { PyErr_SetString(PyExc_TypeError, "callback argument not callable"); - g_slice_free(PyGAsyncRequestNotify, notify); + g_slice_free(PyGIONotify, notify); return NULL; } Py_INCREF(notify->callback); |