ORBit-Gtk

Author(s)

Elliot Lee <sopwith@redhat.com>

Description

Routines for making ORBit work nicely with gtk, and starting/retrieving the name service object for a GNOME session.

gnome_CORBA_init initialize ORBit and GNOME for use in a program.

Usage

int 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 */
}

gnome_name_service_get - retrieves an object reference to the root name service context for the current GNOME session

Usage

CORBA_Object ns;

ns = gnome_name_service_get();