/usr/share/pygobject/2.0/defs/unix.override is in python-gobject-2-dev 2.28.6-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /* -*- Mode: C; c-basic-offset: 4 -*-
* pygobject - Python bindings for GObject
* Copyright (C) 2008 Johan Dahlin
*
* unixmodule.c: module wrapping the GIO UNIX library
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*/
%%
headers
#define NO_IMPORT_PYGOBJECT
#include <pygobject.h>
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
#include <gio/gunixinputstream.h>
#include <gio/gunixmounts.h>
#include <gio/gunixoutputstream.h>
#define GIO_COMPILATION
#include <gio/gunixconnection.h>
#undef GIO_COMPILATION
#include <gio/gunixfdmessage.h>
#include <gio/gunixsocketaddress.h>
#define GIO_UNIX_MOUNT_ENTRY_TYPE (_gio_unix_mount_entry_get_type ())
static GType _gio_unix_mount_entry_get_type (void)
{
static GType our_type = 0;
if (our_type == 0)
our_type = g_pointer_type_register_static ("GUnixMountEntry");
return our_type;
}
%%
modulename gio.unix
%%
import gobject.GObject as PyGObject_Type
import gio.InputStream as PyGInputStream_Type
import gio.OutputStream as PyGOutputStream_Type
import gio.SocketAddress as PyGSocketAddress_Type
import gio.Cancellable as PyGCancellable_Type
import gio.SocketConnection as PyGSocketConnection_Type
import gio.SocketControlMessage as PyGSocketControlMessage_Type
%%
ignore-glob
*_get_type
%%
|