dlhist: rename to proc-cache.
A new datastructure is about to take dlhist place. dlhist is currently implemented as a mixture of an "process cache" that should record what rss items has been processed (that is why the url is used as a unique identifier), but right now it only stores an url if it has been downloaded. A new datastructure that should be "download history" shall be implemented, that will keep track of what title and where it has been downloaded to. this will make it possible to only download an rss title to a location once. Splitting this datastructure into two separated structures is trivial as a "process cache" will threat URL's as a unique identifier and a "download history" will threat the title in an rss item as a unique identifier (and also track it's destinations). This commit does not change any functionality, I just rename this to keep the "dlhist" prefix and source files clear for when implementing the real dlhist.
This commit is contained in:
parent
90365e9de2
commit
1350330dd2
4 changed files with 34 additions and 33 deletions
3
Makefile
3
Makefile
|
|
@ -10,7 +10,8 @@ all : $(PROGRAMS)
|
|||
install : $(PROGRAMS)
|
||||
cp $^ $(HOME)/bin/
|
||||
|
||||
dlight : dlight.o buffer.o env.o http.o rss.o lockfile.o filter.o cconf.o dlhist.o error.o
|
||||
dlight : dlight.o buffer.o env.o http.o rss.o lockfile.o filter.o cconf.o \
|
||||
proc-cache.o error.o
|
||||
dlight-compile : compile.o buffer.o env.o lockfile.o filter.o cconf.o error.o
|
||||
dlight-read-config : read-config.o buffer.o env.o cconf.o error.o
|
||||
dlight-filter-check: filter-check.o filter.o error.o
|
||||
|
|
|
|||
Reference in a new issue