Initialization

Initialization — Initializing MateComponent Activation and its ORB.

Synopsis

#include <matecomponent-activation/matecomponent-activation.h>

#define             MATECOMPONENT_ACTIVATION_MAJOR_VERSION
#define             MATECOMPONENT_ACTIVATION_MINOR_VERSION
#define             MATECOMPONENT_ACTIVATION_MICRO_VERSION
gboolean            matecomponent_activation_is_initialized    (void);
CORBA_ORB           matecomponent_activation_init              (int argc,
                                                         char **argv);
CORBA_ORB           matecomponent_activation_orb_init          (int *argc,
                                                         char **argv);
CORBA_ORB           matecomponent_activation_orb_get           (void);
CORBA_Object        matecomponent_activation_name_service_get  (CORBA_Environment *ev);

Description

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

Details

MATECOMPONENT_ACTIVATION_MAJOR_VERSION

#define MATECOMPONENT_ACTIVATION_MAJOR_VERSION (2)


MATECOMPONENT_ACTIVATION_MINOR_VERSION

#define MATECOMPONENT_ACTIVATION_MINOR_VERSION (32)


MATECOMPONENT_ACTIVATION_MICRO_VERSION

#define MATECOMPONENT_ACTIVATION_MICRO_VERSION (0)


matecomponent_activation_is_initialized ()

gboolean            matecomponent_activation_is_initialized    (void);

Tells you whether or not matecomponent-activation is initialized.

Returns :

whether matecomponent-activation is initialized or not.

matecomponent_activation_init ()

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

Initializes matecomponent-activation. 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 matecomponent-activation.

matecomponent_activation_orb_init ()

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

Initialize MateComponent Activation's ORB - do this once centrally so it can be easily shared.

argc :

pointer to program's argument count

argv :

argument array

Returns :

the ORB.

matecomponent_activation_orb_get ()

CORBA_ORB           matecomponent_activation_orb_get           (void);

Returns the ORB used by OAF.

Returns :

the ORB used by OAF.

matecomponent_activation_name_service_get ()

CORBA_Object        matecomponent_activation_name_service_get  (CORBA_Environment *ev);

Returns the name server of matecomponent-activation. ev can be NULL.

ev :

CORBA_Environment structure which will contain the CORBA exception status of the operation.

Returns :

the name server of matecomponent-activation.