bonobo_x_object



Hi George,

On Sat, 21 Apr 2001, George wrote:
>         BonoboX
>         private void
>         fooBar (PortableServer_Servant servant,
>                 const CORBA_char *string,
>                 CORBA_Environment *ev)
>         {
>                 Self *self = SELF (bonobo_object_from_servant (servant));

        I would reccommend using 'bonobo_x_object (servant)', since its a
pretty fun routine. It detetects the pointer type by magic, so it should
be possible to build it into the 'SELF' macro ie.

        Self *self = SELF (servant);

        Where SELF is:

        (OLD_SELF_MACRO (bonobo_x_object (o))

        Might help some people not have to understand the difference
between a servant and the object itself.

        Regards,

                Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]