GnomeObject

Name

GnomeObject —

Synopsis



#define     GNOME_OBJECT_TYPE
struct      GnomeObjectServant;
struct      GnomeAggregateObject;
GnomeObject* gnome_object_construct         (GnomeObject *object,
                                             CORBA_Object corba_object);
GnomeObject* gnome_object_from_servant      (PortableServer_Servant servant);
void        gnome_object_bind_to_servant    (GnomeObject *object,
                                             void *servant);
CORBA_Object gnome_object_activate_servant  (GnomeObject *object,
                                             void *servant);
void        gnome_object_add_interface      (GnomeObject *object,
                                             GnomeObject *newobj);
CORBA_Object gnome_object_query_interface   (GnomeObject *object,
                                             const char *repo_id);
CORBA_Object gnome_object_corba_objref      (GnomeObject *object);
extern      PortableServer_ServantBase__epv  gnome_object_base_epv;
extern      POA_GNOME_Unknown__epv           gnome_object_epv;
extern      POA_GNOME_Unknown__vepv          gnome_object_vepv;

Description

Details

GNOME_OBJECT_TYPE

#define GNOME_OBJECT_TYPE        (gnome_object_get_type ())


struct GnomeObjectServant

typedef struct {
	POA_GNOME_Unknown servant_placeholder;
	gpointer gnome_object;
} GnomeObjectServant;


struct GnomeAggregateObject

struct GnomeAggregateObject;


gnome_object_construct ()

GnomeObject* gnome_object_construct         (GnomeObject *object,
                                             CORBA_Object corba_object);

Constructs a GnomeObject. This method is usually invoked from the construct method for other Gtk-based CORBA wrappers that derive from the GNOME::obj interface

This returns a constructed GnomeObject.

object : 
corba_object : the reference to the real CORBA object.
Returns : 


gnome_object_from_servant ()

GnomeObject* gnome_object_from_servant      (PortableServer_Servant servant);

CORBA method implementations receive a parameter of type PortableServer_Servant which is a pointer to the servant that was used to create this specific CORBA object instance

This routine allows the user to get the GnomeObject (ie, Gtk object wrapper) from the servant.

servant : Your servant.
Returns : the GnomeObject wrapper associated to this servant.


gnome_object_bind_to_servant ()

void        gnome_object_bind_to_servant    (GnomeObject *object,
                                             void *servant);

This routine binds the object to the servant. It establishes a one to one mapping between the object and the servant. Utility routines are provides to go back and forth.

This routine is used internally by the gnome_object_activate_servant().

object : the GnomeObject to bind to the servant.
servant : A PortableServer_Servant to bind to the GnomeObject


gnome_object_activate_servant ()

CORBA_Object gnome_object_activate_servant  (GnomeObject *object,
                                             void *servant);

This routine activates the servant which is wrapped inside the object on the bonobo_poa (which is the default POA).

object : a GnomeObject
servant : The servant to activate.
Returns : The CORBA_Object that is wrapped by object and whose servant is servant. Might return CORBA_OBJECT_NIL on failure.


gnome_object_add_interface ()

void        gnome_object_add_interface      (GnomeObject *object,
                                             GnomeObject *newobj);

object : 
newobj : 


gnome_object_query_interface ()

CORBA_Object gnome_object_query_interface   (GnomeObject *object,
                                             const char *repo_id);

object : 
repo_id : 
Returns : 


gnome_object_corba_objref ()

CORBA_Object gnome_object_corba_objref      (GnomeObject *object);

object : 
Returns : 


gnome_object_base_epv

extern PortableServer_ServantBase__epv  gnome_object_base_epv;


gnome_object_epv

extern POA_GNOME_Unknown__epv           gnome_object_epv;


gnome_object_vepv

extern POA_GNOME_Unknown__vepv          gnome_object_vepv;