1.5.1 (revision 4026)
otf2/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 
00032 #include <stdint.h>
00033 
00034 
00035 #include <otf2/OTF2_ErrorCodes.h>
00036 
00037 
00038 #include <otf2/OTF2_EvtReader.h>
00039 
00040 
00041 #include <otf2/OTF2_GlobalEvtReaderCallbacks.h>
00042 
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif /* __cplusplus */
00047 
00048 
00064 OTF2_ErrorCode
00065 OTF2_GlobalEvtReader_SetCallbacks( OTF2_GlobalEvtReader*                reader,
00066                                    const OTF2_GlobalEvtReaderCallbacks* callbacks,
00067                                    void*                                userData );
00068 
00069 
00077 OTF2_ErrorCode
00078 OTF2_GlobalEvtReader_ReadEvent( OTF2_GlobalEvtReader* reader );
00079 
00080 
00090 OTF2_ErrorCode
00091 OTF2_GlobalEvtReader_HasEvent( OTF2_GlobalEvtReader* reader,
00092                                int*                  flag );
00093 
00106 OTF2_ErrorCode
00107 OTF2_GlobalEvtReader_ReadEvents( OTF2_GlobalEvtReader* reader,
00108                                  uint64_t              recordsToRead,
00109                                  uint64_t*             recordsRead );
00110 
00111 
00112 #ifdef __cplusplus
00113 }
00114 #endif /* __cplusplus */
00115 
00116 
00117 #endif /* !OTF2_GLOBAL_EVT_READER */