1.2 (revision 3183)

OTF2_Thumbnail.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) 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 
00061 OTF2_ErrorCode
00062 OTF2_ThumbReader_GetHeader( OTF2_ThumbReader*   reader,
00063                             char** const        name,
00064                             char** const        description,
00065                             OTF2_ThumbnailType* type,
00066                             uint32_t*           numberOfSamples,
00067                             uint32_t*           numberOfMetrics,
00068                             uint64_t**          refsToDefs );
00069 
00070 
00083 OTF2_ErrorCode
00084 OTF2_ThumbReader_ReadSample( OTF2_ThumbReader* reader,
00085                              uint64_t*         baseline,
00086                              uint32_t          numberOfMetrics,
00087                              uint64_t*         metricSamples );
00088 
00089 
00102 OTF2_ErrorCode
00103 OTF2_ThumbWriter_WriteSample( OTF2_ThumbWriter* writer,
00104                               uint64_t          baseline,
00105                               uint32_t          numberOfMetrics,
00106                               const uint64_t*   metricSamples );
00107 
00108 
00109 #ifdef __cplusplus
00110 }
00111 #endif /* __cplusplus */
00112 
00113 
00114 #endif /* !OTF2_THUMBNAIL_H */