Return entries or error codes from callbacks
Add forgotten stuff
Merge pull request #180 from zdenal/file_callbacks

File callbacks