2005-05-01 04:58:06 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2006-02-07 06:32:36 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2005-05-01 04:58:06 +04:00
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2006-02-07 06:32:36 +03:00
|
|
|
*
|
2005-05-01 04:58:06 +04:00
|
|
|
* Additional copyrights may follow
|
2006-02-07 06:32:36 +03:00
|
|
|
*
|
2005-05-01 04:58:06 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2006-02-07 06:32:36 +03:00
|
|
|
|
2005-05-01 04:58:06 +04:00
|
|
|
#include "orte_config.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "orte/orte_types.h"
|
2005-05-01 04:58:06 +04:00
|
|
|
|
2006-02-07 06:32:36 +03:00
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
2005-05-01 04:58:06 +04:00
|
|
|
|
2006-02-07 06:32:36 +03:00
|
|
|
#include "orte/dss/dss.h"
|
|
|
|
#include "orte/dss/dss_internal.h"
|
2005-05-01 04:58:06 +04:00
|
|
|
|
|
|
|
|
2006-02-07 06:32:36 +03:00
|
|
|
char *orte_dss_lookup_data_type(orte_data_type_t type)
|
2005-05-01 04:58:06 +04:00
|
|
|
{
|
2006-02-07 06:32:36 +03:00
|
|
|
orte_dss_type_info_t *info;
|
2005-05-01 04:58:06 +04:00
|
|
|
char *name;
|
2006-02-07 06:32:36 +03:00
|
|
|
|
|
|
|
if (!(type < orte_dss_types->size)) {
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
info = orte_pointer_array_get_item(orte_dss_types, type);
|
2005-05-01 04:58:06 +04:00
|
|
|
if (NULL != info) { /* type found on list */
|
|
|
|
name = strdup(info->odti_name);
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|