diff --git a/file_parser.go b/file_parser.go index db80b12..dd73f41 100644 --- a/file_parser.go +++ b/file_parser.go @@ -1,3 +1,3 @@ package model -type FileParserFunc func(str string) (file *ParsedFile, ok bool) +type FileParserFunc func(parser *Parser, str string) (file *ParsedFile, ok bool) diff --git a/torrent_parser.go b/torrent_parser.go index 73b0a9c..5763a77 100644 --- a/torrent_parser.go +++ b/torrent_parser.go @@ -1,3 +1,3 @@ package model -type TorrentParserFunc func(torrent *Torrent) (parsedTorrent *ParsedTorrent, ok bool) +type TorrentParserFunc func(parser *Parser, torrent *Torrent) (parsedTorrent *ParsedTorrent, ok bool)