[mbackup-devel] read/write/filter merger
Status: Alpha
Brought to you by:
jo2y
|
From: James O'K. <jo...@mi...> - 2000-05-23 18:21:04
|
I think I've finished the merger between the reading, writting and filter modules. They all now work as filters. I'm still thinking about the dialog between filters and the main program to express that each filter has finished everything. Right now, a file_tag object is passed to each of the list of filters. It makes sense that the first one would be doing reading, but that's not always true. It could be that the first 3 filters are actually reading or adding files to be filtered. I'm thinking that we should add a FILTER_DONE return code that a filter can return when it is finished with everything it has pending. A filter that is reading files from disk would only return this after it has read all the files. The bzip filter would return this with each file because it only works on one file at a time. Then, when all filters return FILTER_DONE in one pass, then we can assume that things are done and exit the loop. If no one sees a flaw in that, I'll impliment it. -james |