![]() |
1.4 (revision 3771)
|
00001 /* 00002 * This file is part of the Score-P software (http://www.score-p.org) 00003 * 00004 * Copyright (c) 2013, 00005 * Technische Universitaet Dresden, Germany 00006 * 00007 * This software may be modified and distributed under the terms of 00008 * a BSD-style license. See the COPYING file in the package base 00009 * directory for details. 00010 */ 00011 00012 00013 #ifndef OTF2_THUMBNAIL_H 00014 #define OTF2_THUMBNAIL_H 00015 00016 00025 #include <stdint.h> 00026 00027 00028 #include <otf2/OTF2_GeneralDefinitions.h> 00029 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif /* __cplusplus */ 00034 00035 00038 typedef struct OTF2_ThumbWriter_struct OTF2_ThumbWriter; 00039 00040 00043 typedef struct OTF2_ThumbReader_struct OTF2_ThumbReader; 00044 00045 00063 OTF2_ErrorCode 00064 OTF2_ThumbReader_GetHeader( OTF2_ThumbReader* reader, 00065 char** const name, 00066 char** const description, 00067 OTF2_ThumbnailType* type, 00068 uint32_t* numberOfSamples, 00069 uint32_t* numberOfMetrics, 00070 uint64_t** refsToDefs ); 00071 00072 00085 OTF2_ErrorCode 00086 OTF2_ThumbReader_ReadSample( OTF2_ThumbReader* reader, 00087 uint64_t* baseline, 00088 uint32_t numberOfMetrics, 00089 uint64_t* metricSamples ); 00090 00091 00104 OTF2_ErrorCode 00105 OTF2_ThumbWriter_WriteSample( OTF2_ThumbWriter* writer, 00106 uint64_t baseline, 00107 uint32_t numberOfMetrics, 00108 const uint64_t* metricSamples ); 00109 00110 00111 #ifdef __cplusplus 00112 } 00113 #endif /* __cplusplus */ 00114 00115 00116 #endif /* !OTF2_THUMBNAIL_H */