OAFActivationInfo typedef struct { char *iid; /* Implementation ID */ char *user; /* You owe this field to boc */ char *host; /* DNS name or IP address */ char *domain; /* This is not a DNS domain, but an activation domain */ } OAFActivationInfo; OAF_PropertyType typedef enum { OAF_P_STRING, OAF_P_NUMBER, OAF_P_BOOLEAN, OAF_P_STRINGV } OAF_PropertyType; OAF_Property typedef struct { CORBA_char *name; OAF_PropertyValue v; } OAF_Property; OAF_PropertyValue typedef struct { OAF_PropertyType _d; union { CORBA_char *value_string; CORBA_double value_number; CORBA_boolean value_boolean; GNOME_stringlist value_stringv; } _u; } OAF_PropertyValue; OAF_ServerInfo typedef struct { OAF_ImplementationID iid; CORBA_char *server_type; CORBA_char *location_info; CORBA_char *username; CORBA_char *hostname; CORBA_char *domain; CORBA_sequence_OAF_Property props; } OAF_ServerInfo; OAF_RegistrationResult typedef enum { OAF_REG_SUCCESS, OAF_REG_NOT_LISTED, OAF_REG_ALREADY_ACTIVE, OAF_REG_ERROR } OAF_RegistrationResult; OAF_ActivationFlags typedef CORBA_long OAF_ActivationFlags; #define OAF_FLAG_NO_LOCAL 1 /* no shared libraries */ #define OAF_FLAG_PRIVATE 2 /* start a new server and don't register it */ #define OAF_FLAG_EXISTING_ONLY 4 /* don't start the server if not started */ OAF_ActivationID typedef CORBA_char *OAF_ActivationID; OAF_ImplementationID typedef CORBA_char *OAF_ImplementationID; oaf_actinfo_stringify char * const OAFActivationInfo * actinfo OAFActivationInfo * oaf_servinfo_to_actinfo const OAF_ServerInfo * servinfo void oaf_actinfo_free OAFActivationInfo * actinfo OAFActivationInfo * oaf_actinfo_new void OAFActivationInfo * oaf_actid_parse const OAF_ActivationID actid CORBA_Context oaf_context_get void CORBA_ORB oaf_orb_get void CORBA_ORB oaf_init int argc, char **argv void oaf_set_test_components_enabled gboolean val gboolean oaf_get_test_components_enabled void gboolean oaf_is_initialized void const char * oaf_hostname_get void const char * oaf_domain_get void const char * oaf_session_name_get void oaf_username_get #define oaf_username_get() g_get_user_name() OAFPluginObject typedef struct { const char *iid; /* This routine should call oaf_plugin_use(servant, impl_ptr), * as should all routines which activate CORBA objects * implemented by this shared library. This needs to be done * before making any CORBA calls on the object, or * passing that object around. First thing after servant creation * always works. :) */ CORBA_Object (*activate) (PortableServer_POA poa, const char *iid, gpointer impl_ptr, /* This pointer should be stored by the implementation * to be passed to oaf_plugin_unuse() in the * implementation's destruction routine. */ CORBA_Environment * ev); } OAFPluginObject; OAFPlugin typedef struct { const OAFPluginObject *plugin_object_list; const char *description; } OAFPlugin; CORBA_Object oaf_server_activate_shlib OAF_ActivationResult * sh, CORBA_Environment * ev void oaf_plugin_unuse gpointer impl_ptr void oaf_plugin_use PortableServer_Servant servant, gpointer impl_ptr OAF_ServerInfoList * oaf_query const char *requirements, char *const *selection_order, CORBA_Environment * ev CORBA_Object oaf_activate_from_id const OAF_ActivationID aid, OAF_ActivationFlags flags, OAF_ActivationID * ret_aid, CORBA_Environment * ev CORBA_Object oaf_activate const char *requirements, char *const *selection_order, OAF_ActivationFlags flags, OAF_ActivationID * ret_aid, CORBA_Environment * ev OAFActivationCallback typedef void (*OAFActivationCallback) (CORBA_Object activated_object, const char *error_reason, gpointer user_data); void oaf_activate_async const char *requirements, char *const *selection_order, OAF_ActivationFlags flags, OAFActivationCallback callback, gpointer user_data, CORBA_Environment * ev void oaf_activate_from_id_async const OAF_ActivationID aid, OAF_ActivationFlags flags, OAFActivationCallback callback, gpointer user_data, CORBA_Environment * ev oaf_active_server_unregister void const char *iid, CORBA_Object obj OAF_RegistrationResult oaf_active_server_register const char *iid, CORBA_Object obj const char * oaf_server_info_prop_lookup OAF_ServerInfo * server, const char *prop_name, GSList * i18n_languages OAF_Property * oaf_server_info_prop_find OAF_ServerInfo * server, const char *prop_name OAF_ServerInfo * OAF_ServerInfo_duplicate const OAF_ServerInfo *original CORBA_Object oaf_name_service_get CORBA_Environment * ev const char * oaf_activation_iid_get void