| Libmatecomponent Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
gboolean matecomponent_is_initialized (void); gboolean matecomponent_init (int *argc,char **argv); gboolean matecomponent_init_full (int *argc,char **argv,CORBA_ORB opt_orb,PortableServer_POA opt_poa,PortableServer_POAManager opt_manager); void matecomponent_debug_init (void); void matecomponent_debug_print (const char *name,char *fmt,...); int matecomponent_debug_shutdown (void); void matecomponent_main (void); void matecomponent_main_quit (void); guint matecomponent_main_level (void); gboolean matecomponent_activate (void); void matecomponent_setup_x_error_handler (void); CORBA_ORB matecomponent_orb (void); PortableServer_POA matecomponent_poa (void); PortableServer_POAManager matecomponent_poa_manager (void); PortableServer_POA matecomponent_poa_get_threaded (MateCORBAThreadHint hint,...);
gboolean matecomponent_is_initialized (void);
This allows you to protect against double initialization in your code.
Returns : |
whether the ORB is initialized |
gboolean matecomponent_init (int *argc,char **argv);
Initializes the matecomponent component model.
gboolean matecomponent_init_full (int *argc,char **argv,CORBA_ORB opt_orb,PortableServer_POA opt_poa,PortableServer_POAManager opt_manager);
Initializes the matecomponent document model. It requires at least
the value for orb. If poa is CORBA_OBJECT_NIL, then the
RootPOA will be used, in this case manager should be CORBA_OBJECT_NIL.
void matecomponent_debug_print (const char *name,char *fmt,...);
|
|
|
|
|
int matecomponent_debug_shutdown (void);
This shuts down the ORB and any other matecomponent related resources.
Returns : |
whether the shutdown was clean, a good value to return from 'main'. |
void matecomponent_main (void);
Activates the MateComponent POA Manager and enters the main event loop.
guint matecomponent_main_level (void);
Determines the number of times the matecomponent main loop has been entered (minus the number of exits from the main loop).
Returns : |
The number of main loops currently running (0 if no main loops are running). |
gboolean matecomponent_activate (void);
Activates the MateComponent POA manager registered by matecomponent_init.
This should be called at the end of application initialization.
You do not need to call this function if you use matecomponent_main().
CORBA_ORB matecomponent_orb (void);
Returns : |
The ORB used for this MateComponent application. The ORB
is created in matecomponent_init().
|
PortableServer_POA matecomponent_poa (void);
Returns : |
The POA used for this MateComponent application. The POA
is created when matecomponent_init() is called.
|
PortableServer_POAManager matecomponent_poa_manager (void);
Returns : |
The POA Manager used for this MateComponent application. The POA
Manager is created when matecomponent_init() is called, but it is not
activated until matecomponent_main() is called.
|
PortableServer_POA matecomponent_poa_get_threaded (MateCORBAThreadHint hint,...);
Get a predefined POA for a given threading policy/hint. The returned POA can be passed as the "poa" constructor property of a MateComponentOject.
|
the desired thread hint |
|
|
Returns : |
the requested POA. |