/****************** * Local functions ******************/ int orte_sstore_central_global_module_init(void) { int ret, exit_status = ORTE_SUCCESS; OPAL_OUTPUT_VERBOSE((10, mca_sstore_central_component.super.output_handle, "sstore:central:(global): init()")); if( NULL == active_handles ) { active_handles = OBJ_NEW(opal_list_t); } /* * Setup a listener for the HNP/Apps */ if( ORTE_SUCCESS != (ret = sstore_central_global_start_listener()) ) { ORTE_ERROR_LOG(ret); exit_status = ret; goto cleanup; } exit_status = orte_sstore_central_local_module_init(); cleanup: return exit_status; }
int orte_sstore_central_module_init(void) { OPAL_OUTPUT_VERBOSE((10, mca_sstore_central_component.super.output_handle, "sstore:central: module_init()")); if( orte_sstore_context & ORTE_SSTORE_GLOBAL_TYPE ) { /* Global is also a Local, so it will init the local module internally */ return orte_sstore_central_global_module_init(); } else if( orte_sstore_context & ORTE_SSTORE_LOCAL_TYPE ) { return orte_sstore_central_local_module_init(); } else if( orte_sstore_context & ORTE_SSTORE_APP_TYPE ) { return orte_sstore_central_app_module_init(); } return ORTE_SUCCESS; }