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.
|
2006-08-23 07:32:36 +04:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* 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
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "opal_config.h"
|
2005-05-01 04:58:06 +04:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
#include "opal/dss/dss_internal.h"
|
2005-05-01 04:58:06 +04:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
char *opal_dss_lookup_data_type(opal_data_type_t type)
|
2005-05-01 04:58:06 +04:00
|
|
|
{
|
2008-02-28 04:57:57 +03:00
|
|
|
opal_dss_type_info_t *info;
|
2005-05-01 04:58:06 +04:00
|
|
|
char *name;
|
2006-02-07 06:32:36 +03:00
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
info = (opal_dss_type_info_t*)opal_pointer_array_get_item(&opal_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;
|
|
|
|
}
|