1
1
Still recovering from interface changes.

This commit was SVN r14769.
Этот коммит содержится в:
Josh Hursey 2007-05-24 21:12:34 +00:00
родитель 3401bd2b07
Коммит a296ef5487
3 изменённых файлов: 72 добавлений и 70 удалений

Просмотреть файл

@ -166,16 +166,6 @@ extern "C" {
int orte_rml_ftrm_xcast_gate(orte_gpr_trigger_cb_fn_t cbfunc); int orte_rml_ftrm_xcast_gate(orte_gpr_trigger_cb_fn_t cbfunc);
int orte_rml_ftrm_register_contact_info(void);
int orte_rml_ftrm_register_subscription(orte_jobid_t job, char *trigger);
int orte_rml_ftrm_get_contact_info(orte_process_name_t *name, orte_gpr_notify_data_t **data);
void orte_rml_ftrm_update_contact_info(orte_gpr_notify_data_t* data,
void* cbdata);
/* /*
* Register a callback on loss of connection * Register a callback on loss of connection
*/ */
@ -187,6 +177,14 @@ extern "C" {
*/ */
int orte_rml_ftrm_ft_event(int state); int orte_rml_ftrm_ft_event(int state);
int orte_rml_ftrm_register_contact_info(void);
int orte_rml_ftrm_register_subscription(orte_jobid_t job, char *trigger);
int orte_rml_ftrm_get_contact_info(orte_process_name_t *name, orte_gpr_notify_data_t **data);
void orte_rml_ftrm_update_contact_info(orte_gpr_notify_data_t* data, void* cbdata);
#if defined(c_plusplus) || defined(__cplusplus) #if defined(c_plusplus) || defined(__cplusplus)
} }
#endif #endif

Просмотреть файл

@ -90,7 +90,12 @@ orte_rml_module_t orte_rml_ftrm_module = {
orte_rml_ftrm_add_exception_handler, orte_rml_ftrm_add_exception_handler,
orte_rml_ftrm_del_exception_handler, orte_rml_ftrm_del_exception_handler,
orte_rml_ftrm_ft_event orte_rml_ftrm_ft_event,
orte_rml_ftrm_register_contact_info,
orte_rml_ftrm_register_subscription,
orte_rml_ftrm_get_contact_info,
orte_rml_ftrm_update_contact_info
}; };
int rml_ftrm_output_handle; int rml_ftrm_output_handle;

Просмотреть файл

@ -444,6 +444,41 @@ int orte_rml_ftrm_xcast_gate(orte_gpr_trigger_cb_fn_t cbfunc)
} }
/*
* Register a callback on loss of connection
*/
int orte_rml_ftrm_add_exception_handler(orte_rml_exception_callback_t cbfunc)
{
int ret;
opal_output_verbose(20, rml_ftrm_output_handle,
"orte_rml_ftrm: add_exception_handler()");
if( NULL != wrapped_module.add_exception_handler ) {
if( ORTE_SUCCESS != (ret = wrapped_module.add_exception_handler(cbfunc) ) ) {
return ret;
}
}
return ORTE_SUCCESS;
}
int orte_rml_ftrm_del_exception_handler(orte_rml_exception_callback_t cbfunc)
{
int ret;
opal_output_verbose(20, rml_ftrm_output_handle,
"orte_rml_ftrm: del_exception_handler()");
if( NULL != wrapped_module.del_exception_handler ) {
if( ORTE_SUCCESS != (ret = wrapped_module.del_exception_handler(cbfunc) ) ) {
return ret;
}
}
return ORTE_SUCCESS;
}
int orte_rml_ftrm_register_contact_info(void) int orte_rml_ftrm_register_contact_info(void)
{ {
int ret; int ret;
@ -492,9 +527,9 @@ int orte_rml_ftrm_get_contact_info(orte_process_name_t *name, orte_gpr_notify_da
return ORTE_SUCCESS; return ORTE_SUCCESS;
} }
void orte_rml_ftrm_update_contact_info(orte_gpr_notify_data_t* data, void orte_rml_ftrm_update_contact_info(orte_gpr_notify_data_t* data, void* cbdata)
void* cbdata)
{ {
opal_output_verbose(20, rml_ftrm_output_handle, opal_output_verbose(20, rml_ftrm_output_handle,
"orte_rml_ftrm: update_contact_info()"); "orte_rml_ftrm: update_contact_info()");
@ -503,42 +538,6 @@ void orte_rml_ftrm_update_contact_info(orte_gpr_notify_data_t* data,
} }
} }
/*
* Register a callback on loss of connection
*/
int orte_rml_ftrm_add_exception_handler(orte_rml_exception_callback_t cbfunc)
{
int ret;
opal_output_verbose(20, rml_ftrm_output_handle,
"orte_rml_ftrm: add_exception_handler()");
if( NULL != wrapped_module.add_exception_handler ) {
if( ORTE_SUCCESS != (ret = wrapped_module.add_exception_handler(cbfunc) ) ) {
return ret;
}
}
return ORTE_SUCCESS;
}
int orte_rml_ftrm_del_exception_handler(orte_rml_exception_callback_t cbfunc)
{
int ret;
opal_output_verbose(20, rml_ftrm_output_handle,
"orte_rml_ftrm: del_exception_handler()");
if( NULL != wrapped_module.del_exception_handler ) {
if( ORTE_SUCCESS != (ret = wrapped_module.del_exception_handler(cbfunc) ) ) {
return ret;
}
}
return ORTE_SUCCESS;
}
/* /*
* FT Event * FT Event
*/ */