1 /* 2 * Copyright (C) by Argonne National Laboratory 3 * See COPYRIGHT in top-level directory 4 */ 5 6 #ifndef AD_PVFS2_COMMON_H_INCLUDED 7 #define AD_PVFS2_COMMON_H_INCLUDED 8 #include "ad_pvfs2.h" 9 10 /* useful values: 11 * 0: no debugging 12 * CLIENT_DEBUG: debug client state machines 13 */ 14 #define ADIOI_PVFS2_DEBUG_MASK 0 15 16 17 struct ADIOI_PVFS2_fs_s { 18 PVFS_object_ref object_ref; 19 PVFS_credentials credentials; 20 } ADIOI_PVFS2_fs_s; 21 22 typedef struct ADIOI_PVFS2_fs_s ADIOI_PVFS2_fs; 23 24 25 void ADIOI_PVFS2_Init(int *error_code); 26 void ADIOI_PVFS2_makeattribs(PVFS_sys_attr * attribs); 27 void ADIOI_PVFS2_makecredentials(PVFS_credentials * credentials); 28 void ADIOI_PVFS2_End(int *error_code); 29 int ADIOI_PVFS2_End_call(MPI_Comm comm, int keyval, void *attribute_val, void *extra_state); 30 int ADIOI_PVFS2_error_convert(int pvfs_error); 31 32 #endif /* AD_PVFS2_COMMON_H_INCLUDED */ 33