Re: embedding G-I into apps
- From: Stefan Kost <ensonic hora-obscura de>
- To: Johan Dahlin <johan gnome org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: embedding G-I into apps
- Date: Wed, 10 Sep 2008 22:58:14 +0300
Hi,
Johan Dahlin schrieb:
Colin Walters wrote:
(Using this list for gobject-introspection development for now,
probably ignore if you're not jdahlin =))
I was looking a bit today about applying our shiny new introspection
tool to Totem, with an eye to eliminating the manual binding
infrastructure, and more generally figure out how existing C
applications can use g-i (and something like Alex' GScript API) to
have a nicer way to embed Python or Spidermonkey.
As far as I can see it there are two options:
A) dlopen the executable (not portable)
B) create a temporary shared library
C) execute the scanner inside the application (as you suggested)
Discarding A, as we want to be portable. I've always thought about using
a temporary shared library to solve this particular problem, but the one
you suggested appears to be better in many ways.
I ususally use a libtool convinience library that has everything except main()
and the option parsing. Then I can link my unit tests to this and can also use
it for gtk-doc (yes I document my app classes too). The scanner could use this
as well.
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]