3.1-rc3 (revision d9ca08bb)
OTF2_GlobalSnapReader.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) 2013,
5  * Technische Universitaet Dresden, Germany
6  *
7  * This software may be modified and distributed under the terms of
8  * a BSD-style license. See the COPYING file in the package base
9  * directory for details.
10  */
11 
12 
13 #ifndef OTF2_GLOBAL_SNAP_READER_H
14 #define OTF2_GLOBAL_SNAP_READER_H
15 
16 
29 #include <stdint.h>
30 
31 
32 #include <otf2/OTF2_ErrorCodes.h>
33 
34 
35 #include <otf2/OTF2_SnapReader.h>
36 
37 
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
44 
45 
66  const OTF2_GlobalSnapReaderCallbacks* callbacks,
67  void* userData );
68 
69 
87  uint64_t recordsToRead,
88  uint64_t* recordsRead );
89 
90 
91 #ifdef __cplusplus
92 }
93 #endif /* __cplusplus */
94 
95 
96 #endif /* !OTF2_GLOBAL_SNAP_READER_H */
struct OTF2_GlobalSnapReaderCallbacks_struct OTF2_GlobalSnapReaderCallbacks
Opaque struct which holds all snap record callbacks.
Definition: OTF2_GlobalSnapReaderCallbacks.h:45
OTF2_ErrorCode OTF2_GlobalSnapReader_SetCallbacks(OTF2_GlobalSnapReader *reader, const OTF2_GlobalSnapReaderCallbacks *callbacks, void *userData)
Sets the callback functions for the given reader object. Every time when OTF2 reads a record...
OTF2_ErrorCode
Definition: OTF2_ErrorCodes.h:53
OTF2_ErrorCode OTF2_GlobalSnapReader_ReadSnapshots(OTF2_GlobalSnapReader *reader, uint64_t recordsToRead, uint64_t *recordsRead)
Reads the given number of records from the global snap event reader.
struct OTF2_GlobalSnapReader_struct OTF2_GlobalSnapReader
OTF2 global snap reader handle.
Definition: OTF2_GeneralDefinitions.h:267
This is the local snap reader, which reads snapshot events from one location.
Error codes and error handling.
This defines the callbacks for the global snap reader.