From fbc9be66a6265e7f872c56410c0508368091b378 Mon Sep 17 00:00:00 2001 From: Prabhanjan Kambadur Date: Sun, 1 Feb 2004 22:27:22 +0000 Subject: [PATCH] Adding structure lam_info_entry_t and member lam_info_list This commit was SVN r636. --- src/mpi/info/info.h | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/mpi/info/info.h b/src/mpi/info/info.h index 79eae03370..bb184e882d 100644 --- a/src/mpi/info/info.h +++ b/src/mpi/info/info.h @@ -6,12 +6,35 @@ #define LAM_INFO_H #include "mpi.h" +#include "lam/lfc/list.h" +/** + * lam_info_t structure. MPI_Info is a pointer to this structure + */ struct lam_info_t { - char i_name[MPI_MAX_OBJECT_NAME]; - - /* ...more stuff... */ + char i_name[MPI_MAX_OBJECT_NAME]; /**< name of the info object + * being instantiated */ + lam_list_t *lam_info_list; /**< generic list pointer which is + * the container for (key,value) + * pairs */ + /* Anju: + * Should add appropriate member/s to support + * fortran translation. + */ }; typedef struct lam_info_t lam_info_t; +/** + * lam_info_entry_t object. Each item in lam_info_list is of this + * type. It contains (key,value) pairs + */ +struct lam_info_entry_t { + lam_list_item_t super; /**< required for lam_list_t type */ + char *value; /**< value part of the (key, value) pair. + * Maximum length is MPI_MAX_INFO_VAL */ + char key[MPI_MAX_INFO_KEY + 1]; /**< "key" part of the (key, value) + * pair */ +}; +typedef struct lam_info_entry_t lam_info_entry_t; + #endif /* LAM_INFO_H */