3.0-rc2 (revision 337012f1)
OTF2_GlobalDefReader.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_DEF_READER_H
33 #define OTF2_GLOBAL_DEF_READER_H
34 
35 
43 #include <stddef.h>
44 #include <stdint.h>
45 
46 
47 #include <otf2/OTF2_ErrorCodes.h>
48 
49 
50 #include <otf2/OTF2_Definitions.h>
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif /* __cplusplus */
57 
58 
76  const OTF2_GlobalDefReaderCallbacks* callbacks,
77  void* userData );
78 
79 
94  uint64_t recordsToRead,
95  uint64_t* recordsRead );
96 
97 
98 #ifdef __cplusplus
99 }
100 #endif /* __cplusplus */
101 
102 
103 #endif /* !OTF2_GLOBAL_DEF_READER_H */
struct OTF2_GlobalDefReaderCallbacks_struct OTF2_GlobalDefReaderCallbacks
Opaque struct which holds all global definition record callbacks.
Definition: OTF2_GlobalDefReaderCallbacks.h:65
struct OTF2_GlobalDefReader_struct OTF2_GlobalDefReader
OTF2 global definition reader handle.
Definition: OTF2_GeneralDefinitions.h:259
OTF2_ErrorCode OTF2_GlobalDefReader_SetCallbacks(OTF2_GlobalDefReader *reader, const OTF2_GlobalDefReaderCallbacks *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:54
Data types used in the definition records.
This defines the callbacks for the global definition reader.
OTF2_ErrorCode OTF2_GlobalDefReader_ReadDefinitions(OTF2_GlobalDefReader *reader, uint64_t recordsToRead, uint64_t *recordsRead)
Reads the given number of records from the global definition reader.
Error codes and error handling.