keyring-link has now seperated reading of the database and output of the read records
i wanted to make some changes on the output but the maintainer wanted to clean up the code first, this cleanup now should be sufficient to base further changes on it
i have developed using git, so this is a series of patches that equal my intermediate git commits
apply in numerical order
have fun
Logged In: YES
user_id=978684
Originator: YES
I'm sorry, I only had time to test the application of the patches now, it seems that they are a little bit tricky. Since I didn't succeed in creating ones that patch without problems here is a snapshot of the complete rework.
I also use this to tell a little about the work done:
* I moved all the database reading to filehandlers that return the complete data
* I moved the output part to a seperate file that works on the data returned from the filehandler
* The file keyring.c only contains the main function and the command line parsing
I changed almost nothing of the code inside the database handling since that works good, is just made the to return the data instead of printing it.
Hope you like it, I would like to base a litte more work on it.
Andi
File Added: keyring-link.rework.snapshot.tar.gz