ttsafe.h

00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00002  * Copyright by The HDF Group.                                               *
00003  * Copyright by the Board of Trustees of the University of Illinois.         *
00004  * All rights reserved.                                                      *
00005  *                                                                           *
00006  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00007  * terms governing use, modification, and redistribution, is contained in    *
00008  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00009  * of the source code distribution tree; Copyright.html can be found at the  *
00010  * root level of an installed copy of the electronic HDF5 document set and   *
00011  * is linked from the top-level documents page.  It can also be found at     *
00012  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00013  * access to either file, you may request a copy from help@hdfgroup.org.     *
00014  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 /*
00017  * This header file contains information required for testing the HDF5 library.
00018  */
00019 
00020 #ifndef TTSAFE_H
00021 #define TTSAFE_H
00022 
00023 #include <string.h>
00024 
00025 /*
00026  * Include required headers.  This file tests internal library functions,
00027  * so we include the private headers here.
00028  */
00029 #include "hdf5.h"
00030 #include "H5private.h"
00031 #include "H5Eprivate.h"
00032 #include "testhdf5.h"
00033 
00034 #ifdef H5_HAVE_THREADSAFE
00035 /* Include pthread library for threadsafe tests */
00036 #include <pthread.h>
00037 
00038 /* Prototypes for the support routines */
00039 extern char*            gen_name(int);
00040 
00041 /* Prototypes for the test routines */
00042 void                    tts_dcreate(void);
00043 void                    tts_error(void);
00044 void                    tts_cancel(void);
00045 void                    tts_acreate(void);
00046 
00047 /* Prototypes for the cleanup routines */
00048 void                    cleanup_dcreate(void);
00049 void                    cleanup_error(void);
00050 void                    cleanup_cancel(void);
00051 void                    cleanup_acreate(void);
00052 
00053 #endif /* H5_HAVE_THREADSAFE */
00054 #endif /* TTSAFE_H */