2.2 (revision 4737)
OTF2_GlobalEvtReader.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Score-P software (http://www.score-p.org)
3  *
4  * Copyright (c) 2009-2013,
5  * RWTH Aachen University, Germany
6  *
7  * Copyright (c) 2009-2013,
8  * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
9  *
10  * Copyright (c) 2009-2013,
11  * Technische Universitaet Dresden, Germany
12  *
13  * Copyright (c) 2009-2013,
14  * University of Oregon, Eugene, USA
15  *
16  * Copyright (c) 2009-2013,
17  * Forschungszentrum Juelich GmbH, Germany
18  *
19  * Copyright (c) 2009-2013,
20  * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
21  *
22  * Copyright (c) 2009-2013,
23  * Technische Universitaet Muenchen, Germany
24  *
25  * This software may be modified and distributed under the terms of
26  * a BSD-style license. See the COPYING file in the package base
27  * directory for details.
28  *
29  */
30 
31 
32 #ifndef OTF2_GLOBAL_EVT_READER_H
33 #define OTF2_GLOBAL_EVT_READER_H
34 
35 
46 #include <stdint.h>
47 
48 
49 #include <otf2/OTF2_ErrorCodes.h>
50 
51 
52 #include <otf2/OTF2_EvtReader.h>
53 
54 
56 
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
62 
80  const OTF2_GlobalEvtReaderCallbacks* callbacks,
81  void* userData );
82 
83 
93 
94 
106  int* flag );
107 
122  uint64_t recordsToRead,
123  uint64_t* recordsRead );
124 
125 
126 #ifdef __cplusplus
127 }
128 #endif /* __cplusplus */
129 
130 
131 #endif /* !OTF2_GLOBAL_EVT_READER_H */
struct OTF2_GlobalEvtReaderCallbacks_struct OTF2_GlobalEvtReaderCallbacks
Opaque struct which holds all event record callbacks.
Definition: OTF2_GlobalEvtReaderCallbacks.h:62
OTF2_ErrorCode OTF2_GlobalEvtReader_ReadEvent(OTF2_GlobalEvtReader *reader)
Triggers the callback for the next event record.
OTF2_ErrorCode
Definition: OTF2_ErrorCodes.h:54
OTF2_ErrorCode OTF2_GlobalEvtReader_HasEvent(OTF2_GlobalEvtReader *reader, int *flag)
Has more events.
This is the local event reader, which reads events from one location.
OTF2_ErrorCode OTF2_GlobalEvtReader_SetCallbacks(OTF2_GlobalEvtReader *reader, const OTF2_GlobalEvtReaderCallbacks *callbacks, void *userData)
Sets the callback functions for the given reader object. Every time when OTF2 reads a record...
OTF2_ErrorCode OTF2_GlobalEvtReader_ReadEvents(OTF2_GlobalEvtReader *reader, uint64_t recordsToRead, uint64_t *recordsRead)
Reads the given number of records from the global event reader.
This defines the callbacks for the global event reader.
Error codes and error handling.
struct OTF2_GlobalEvtReader_struct OTF2_GlobalEvtReader
OTF2 global event reader handle.
Definition: OTF2_GeneralDefinitions.h:248