1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * pygobject - Python bindings for GObject
3 * Copyright (C) 2009 Gian Mario Tagliaretti
5 * gfileinputstream.override: module overrides for GFileInputStream
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
24 override g_file_input_stream_query_info_async kwargs
26 _wrap_g_file_input_stream_query_info_async(PyGObject *self,
30 static char *kwlist[] = { "attributes", "callback",
31 "io_priority", "cancellable", "user_data", NULL };
32 GCancellable *cancellable;
33 PyGObject *pycancellable = NULL;
34 int io_priority = G_PRIORITY_DEFAULT;
38 notify = pygio_notify_new();
40 if (!PyArg_ParseTupleAndKeywords(args, kwargs,
41 "sO|iOO:gio.FileInputStream.query_info_async",
49 if (!pygio_notify_callback_is_valid(notify))
52 if (!pygio_check_cancellable(pycancellable, &cancellable))
55 pygio_notify_reference_callback(notify);
57 g_file_input_stream_query_info_async(G_FILE_INPUT_STREAM(self->obj),
58 attributes, io_priority, cancellable,
59 (GAsyncReadyCallback)async_result_callback_marshal,
66 pygio_notify_free(notify);