Re: TC_Bonobo_Unknown and --imodule
- From: murrayc t-online de (Murray Cumming)
- To: Michael Meeks <michael ximian com>
- Cc: Mark McLoughlin <mark skynet ie>,orbit-list <orbit-list gnome org>
- Subject: Re: TC_Bonobo_Unknown and --imodule
- Date: 25 Feb 2002 17:32:15 +0100
On Mon, 2002-02-25 at 16:59, Michael Meeks wrote:
> Hi Murray,
>
> On Sun, 2002-02-24 at 01:51, Murray Cumming wrote:
> > That doesn't really tell me why libbonobo* installs the --imodule
> > stubs/skels instead of the regular ones.
>
> It shouldn't install anything but a type library which is built inside
> libbonobo/idl - ie. if libbonobo/idl is installing anything but IDL and
> a single library then something is badly borked.
--imodule seems to generate a 'type library' instead of stubs/skels, so
this seem to be as you intend it.
>
> > And if we're supposed to generate our own C stub/skels for Bonobo*, it
> > creates the extra problem that they couldn't be linked with libbonobo*
> > because both would contain stuff with the same names.
>
> Libbonobo contains within itself the stubs/skels for the C code
But it doesn't install the headers for them, right?
> - this
> is done in the standard way with pragmas in the IDL to stop the compiler
> from generating new bindings for the C code; clearly you'll need to
> override that for the C++ wrappers - I know not how that works, the
> invocations we use are:
>
> #if !defined(__Bonobo_COMPILATION) && defined(__ORBIT_IDL__)
> %{
> #pragma include_defs bonobo/Bonobo.h
> %}
> #pragma inhibit push
> #endif
>
> .... IDL that will only be built during the Bonobo compilation but whose
> typese will be available when this IDL is included ...
>
> #if !defined(__Bonobo_COMPILATION) && defined(__ORBIT_IDL__)
> #pragma inhibit pop
> #endif
Given that it's the 'type library' that's installed, not the
stubs/skels, what is the logic in making new stubs/skels include the
'type library' instead of any stubs/skels (whether previously generated
or not).
Maybe I can get to the heart of this with a simpler question: How would
a C coder, using libbonoboui, get a TC_Bonobo_Unknown?. It seems that
he'd have to generate his own stubs/skels for Bonobo_Unknown.idl.
--
Murray Cumming
murrayc@usa.net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]