1.2 (revision 3183)

OTF2_GlobalEvtReader.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the Score-P software (http://www.score-p.org)
00003  *
00004  * Copyright (c) 2009-2013,
00005  *    RWTH Aachen University, Germany
00006  *    Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
00007  *    Technische Universitaet Dresden, Germany
00008  *    University of Oregon, Eugene, USA
00009  *    Forschungszentrum Juelich GmbH, Germany
00010  *    German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
00011  *    Technische Universitaet Muenchen, Germany
00012  *
00013  * See the COPYING file in the package base directory for details.
00014  *
00015  */
00016 
00017 
00018 #ifndef OTF2_GLOBAL_EVT_READER_H
00019 #define OTF2_GLOBAL_EVT_READER_H
00020 
00021 
00036 #include <stdint.h>
00037 
00038 
00039 #include <otf2/OTF2_ErrorCodes.h>
00040 
00041 
00042 #include <otf2/OTF2_EvtReader.h>
00043 
00044 
00045 #include <otf2/OTF2_GlobalEvtReaderCallbacks.h>
00046 
00047 
00048 #ifdef __cplusplus
00049 extern "C" {
00050 #endif /* __cplusplus */
00051 
00052 
00068 OTF2_ErrorCode
00069 OTF2_GlobalEvtReader_SetCallbacks( OTF2_GlobalEvtReader*                reader,
00070                                    const OTF2_GlobalEvtReaderCallbacks* callbacks,
00071                                    void*                                userData );
00072 
00073 
00081 OTF2_ErrorCode
00082 OTF2_GlobalEvtReader_ReadEvent( OTF2_GlobalEvtReader* reader );
00083 
00084 
00094 OTF2_ErrorCode
00095 OTF2_GlobalEvtReader_HasEvent( OTF2_GlobalEvtReader* reader,
00096                                int*                  flag );
00097 
00110 OTF2_ErrorCode
00111 OTF2_GlobalEvtReader_ReadEvents( OTF2_GlobalEvtReader* reader,
00112                                  uint64_t              recordsToRead,
00113                                  uint64_t*             recordsRead );
00114 
00115 
00116 #ifdef __cplusplus
00117 }
00118 #endif /* __cplusplus */
00119 
00120 
00121 #endif /* !OTF2_GLOBAL_EVT_READER */