diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-05-05 19:37:18 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-05-05 20:24:32 -0700 |
commit | 22a952ec532cc83c8227861a7d5bfa2957608c3f (patch) | |
tree | 93d82bc15bea2495fe5228c126f5757cc1d96e1f /gi/pygi-foreign.h | |
parent | 4ee91a4cd0018d069c7aaf66d83e2f8235f2262a (diff) | |
download | pygobject-22a952ec532cc83c8227861a7d5bfa2957608c3f.tar.gz |
[New API] Add gi.require_foreign
Add gi.require_foreign(namespace, symbol=None) API for determining
if a foreign marshaling module is available. This can be used in an
applications import statement block to verify the existence of a
specific foreign marshaling module (cairo).
Additionally it forces loading of the foreign marshaling module as
well as the GI repository module. This allows non-introspected signal
closures to correctly marshal their arguments (bug 694604).
https://bugzilla.gnome.org/show_bug.cgi?id=707735
Diffstat (limited to 'gi/pygi-foreign.h')
-rw-r--r-- | gi/pygi-foreign.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gi/pygi-foreign.h b/gi/pygi-foreign.h index ca4f75b6..afa47682 100644 --- a/gi/pygi-foreign.h +++ b/gi/pygi-foreign.h @@ -44,6 +44,10 @@ void pygi_register_foreign_struct (const char* namespace_, PyGIArgOverrideFromGIArgumentFunc from_func, PyGIArgOverrideReleaseFunc release_func); +PyObject *pygi_require_foreign (PyObject *self, + PyObject *args, + PyObject *kwargs); + void pygi_foreign_init (void); #endif /* __PYGI_FOREIGN_H__ */ |