/usr/include/gnome-python-2.0/pygnomevfsbonobo.h is in python-gnome2-dev 2.28.1+dfsg-1.2.
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 | /* -*- mode: C; c-basic-offset: 4 -*- */
#ifndef __PYGNOMEVFSBONOBO_H_
#define __PYGNOMEVFSBONOBO_H_
#include <pygnomevfs.h>
G_BEGIN_DECLS
struct _PyGnomeVFSBonobo_Functions {
PyObject * (*mime_component_action_new) (GnomeVFSMimeAction *action);
};
#define pygnomevfs_bonobo_mime_component_action_new (_PyGnomeVFSBonobo_API->mime_component_action_new)
#if defined(NO_IMPORT) || defined(NO_IMPORT_PYGNOMEVFSBONOBO)
extern struct _PyGnomeVFSBonobo_Functions *_PyGnomeVFSBonobo_API;
#else
struct _PyGnomeVFSBonobo_Functions *_PyGnomeVFSBonobo_API;
#endif
static inline PyObject *
pygnome_vfs_bonobo_init(void)
{
PyObject *module = PyImport_ImportModule("gnomevfs.gnomevfsbonobo");
if (module != NULL) {
PyObject *mdict = PyModule_GetDict(module);
PyObject *cobject = PyDict_GetItemString(mdict, "_PyGnomeVFSBonobo_API");
if (PyCObject_Check(cobject))
_PyGnomeVFSBonobo_API = (struct _PyGnomeVFSBonobo_Functions *)PyCObject_AsVoidPtr(cobject);
else {
Py_FatalError("could not find _PyGnomeVFSBonobo_API object");
}
} else {
Py_FatalError("could not import gnomevfs.gnomevfsbonobo");
}
return module;
}
G_END_DECLS
#endif /* __PYGNOMEVFSBONOBO_H_ */
|