Whole document tree 11.2. ORBit-Gtk11.2.1. Author(s)Elliot Lee <sopwith@redhat.com> 11.2.2. DescriptionRoutines for making ORBit work nicely with gtk, and starting/retrieving the name service object for a GNOME session. 11.2.3. gnome_CORBA_init initialize ORBit and GNOME for use in a program.11.2.3.1. DescriptionThis routine initializes gnome (by calling gnome_init). A few items are set up to allow ORBit and gtk to interact well, and finally it initializes ORBit and returns the CORBA_ORB reference to the new ORB. 11.2.3.2. Usageint main(int argc, char *argv) { CORBA_ORB my_orb; CORBA_Environment ev; CORBA_exception_init(&ev); my_orb = gnome_CORBA_init("myapp", NULL, &argc, &argv, 0, NULL, &ev); if(ev._major != CORBA_NO_EXCEPTION) exit(1); /* error initializing ORB */ /* insert killer app code here */ } 11.2.3.3. Parameters
11.2.4. gnome_name_service_get - retrieves an object reference to the root name service context for the current GNOME session11.2.4.1. DescriptionThis routine is used to get access to the top naming context for the current GNOME session. If a naming server is not running, one will be started. This function assumes that both gtk and ORBit have been initialized. 11.2.4.2. UsageCORBA_Object ns; ns = gnome_name_service_get(); |