int handleDefiofile( void *fcb, int iofiletoken, int communicator, const char *iofilename ) { OTF_Writer_writeDefFile( ((fcbT*)fcb)->writer, 0/*stream*/, iofiletoken+1/*token (+1 because 0 would be an invalid otf-token)*/, iofilename/*name*/, 1/*default group*/ ); return 0; }
int handleDefFile( void* fcbx, uint32_t streamid, uint32_t token, const char* name, uint32_t group ) { 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_writeDefFile( ((fcbT*) fcbx)->writer, streamid, token, name, group ) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; } }
int handleDefFile (void *userData, uint32_t stream, uint32_t token, const char *name, uint32_t group) { return ( 0 == OTF_Writer_writeDefFile ( (OTF_Writer*) userData, stream, token, name, group) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; }