GOAD is the GNOME Object Activation Directory. It keeps track of the
CORBA object implementations available on the system, and allows
applications to activate these implementations or access currently
running ones.
Details
goad_server_activation_id ()
const char* goad_server_activation_id (void);
When an application that implements a GOAD-registered object is
started, it should call this function to check if it was started to create one of those
objects.
Returns :
the GOAD ID that the program was executed to make available.
GOAD_SERVER_SHLIB - implementation is in a shared library plugin
GOAD_SERVER_EXE - implementation is in a separate program
GOAD_SERVER_RELAY - implementation is accessable via a relay object (not yet implemented)
GOAD_SERVER_FACTORY - implementation is started by talking to a GNOME::GenericFactory object
enum GoadActivationFlags
typedef enum {
/* these two are mutually exclusive */
GOAD_ACTIVATE_SHLIB = 1 << 0, /* prefer shlib activation */
GOAD_ACTIVATE_REMOTE = 1 << 1, /* prefer remote activation */
/* these two are mutually exclusive */
GOAD_ACTIVATE_EXISTING_ONLY = 1 << 2, /* Only do lookup in name
* service for currently running
* version.
*/
GOAD_ACTIVATE_NEW_ONLY = 1 << 3, /* No lookup in name service. */
GOAD_ACTIVATE_ASYNC = 1 << 4 /* Just make sure that the object is running */
} GoadActivationFlags;
GOAD_ACTIVATE_SHLIB - indicates activation from a shared library plugin is preferred
GOAD_ACTIVATE_REMOTE - indicates activation from an executable or factory is preferred
GOAD_ACTIVATE_EXISTING_ONLY - Don't create a new object, simply access the currently running implementation if available.
GOAD_ACTIVATE_NEW_ONLY - Don't look for a currently running implementation, just create a new one (mutually exclusive with GOAD_ACTIVATE_EXISTING_ONLY)
GOAD_ACTIVATE_ASYNC - just start the object implementation, but don't worry about getting a reference to it.
struct GoadServer
typedef struct {
GoadServerType type;
GoadActivationFlags flags; /* only GOAD_ACTIVATE_NEW_ONLY
currently parsed in */
char **repo_id;
char *server_id;
char *description;
/*
* Executable/shlib path, relayer IOR, whatever.
* This field may disappear at any time. You have been warned ;-)
*/
char *location_info;
} GoadServer;
'type' - The GoadServerType of the implementation being listed
'flags' - The bitwise OR of all the GoadActivationFlags that are enforced for this GoadServer
'repo_id' - An array of strings giving all the interfaces supported by this implementation
'server_id' - The GOAD ID of this implementation. A GOAD ID is a unique global identifier of a particular object implementation.
'description' - A human-readable description of this object, if applicable
'location_info' - Information on how to activate the object. The meaning varies depending on the 'type'
'list' is an array of GoadServer structures. 'by_goad_id' is a hash
table with the GOAD ID of each implementation as the key, and the
GoadServer structure for that implementation as the value.
Activates a CORBA server specified by 'repo_id', using the 'flags'
hints on how to activate that server. Picks the first one on the
list that meets criteria.
This is done by possibly making three passes through the list, the
first pass checking for existing objects only, the second pass
taking into account any activation method preferences, and the last
pass just doing "best we can get" service.
server_list :
a server listing returned by goad_server_list_get.
If NULL, we will call the function ourself and use that.
repo_id :
the repository ID of the interface that we want to activate a server for.
flags :
information on how the application wants the server to be activated.