Initialization

Name

Initialization -- Initializing OAF and its ORB.

Synopsis


#include <liboaf/liboaf.h>


gboolean    oaf_is_initialized              (void);
CORBA_ORB   oaf_init                        (int argc,
                                             char **argv);
CORBA_ORB   oaf_orb_get                     (void);
CORBA_Object oaf_name_service_get           (CORBA_Environment *ev);

Description

These functions allow you to initialize OAF and the ORB it is using. Initializing OAF launches the OAF daemon if it is not started.

Details

oaf_is_initialized ()

gboolean    oaf_is_initialized              (void);

Tells you whether or not OAF is initialized.

Returns : whether OAF is initialized or not.


oaf_init ()

CORBA_ORB   oaf_init                        (int argc,
                                             char **argv);

Initializes liboaf. Should be called before any other call to the library.

argc : number of command-line arguments passed to the program.
argv : array of strings containing the command-line arguments of the program.
Returns : the ORB used by OAF.


oaf_orb_get ()

CORBA_ORB   oaf_orb_get                     (void);

Returns the ORB used by OAF.

Returns : the ORB used by OAF.


oaf_name_service_get ()

CORBA_Object oaf_name_service_get           (CORBA_Environment *ev);

Returns the name server of OAF. ev can be NULL.

ev : CORBA_Environment structure which will contain the CORBA exception status of the operation.
Returns : the name server of OAF.