int handleDefsclfile( void *fcb, int sclfiletoken, const char *sclfilename ) { OTF_Writer_writeDefSclFile( ((fcbT*)fcb)->writer, 0, sclfiletoken + 1, sclfilename ); return 0; }
int handleDefSclFile( void* fcbx, uint32_t streamid, uint32_t deftoken, const char* filename ) { if( 0 != streamid ) { fprintf( stderr, "ERROR: cannot merge traces with local definitions. aborting\n" ); assert( 0 ); return OTF_RETURN_ABORT; } else { return ( 0 == OTF_Writer_writeDefSclFile( ((fcbT*) fcbx)->writer, streamid, deftoken, filename ) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; } }
int handleDefSclFile (void *userData, uint32_t stream, uint32_t sourceFile, const char *name) { return ( 0 == OTF_Writer_writeDefSclFile ( (OTF_Writer*) userData, stream, sourceFile, name) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; }