ActivityRegistry callbacks preCloseFile and postCloseFile should pass the file name as an argument.
ActivityRegistry callbacks preCloseFile and postCloseFile are currently called with no arguments. At least one, and preferably both, methods should pass the name of the file that is about to be or was closed as a string argument. If more than one input file is open, the callback method would have no way of knowing which input file was closed. Or is it guaranteed that only one input file can be open at a time?
#1 Updated by Christopher Green almost 7 years ago
- Status changed from New to Rejected
It is certainly true that only one input "file" is open at a time from the point of view of the framework, but the concept of just what a "file" really is, is left entirely to the input module concerned. Also,
sPostOpenFile() watchpoint does actually receive the "file name" as an argument (whatever the input source specified when it made the
FileBlock), so the information should be redundant given the behavior above.