]> sigrok.org Git - libsigrok.git/commit - src/input/input.c
input: Clean up input file scanning
authorDaniel Elstner <redacted>
Fri, 18 Sep 2015 22:24:50 +0000 (00:24 +0200)
committerDaniel Elstner <redacted>
Thu, 1 Oct 2015 13:44:55 +0000 (15:44 +0200)
commit5e364d4fe0b6367717d7dcf3389685b8fe985211
tree5fe0b0347c1ae5ac7296feb22c3b8933e307b50a
parentff85d65ec69bdc53b258d20df64e5cd022339f30
input: Clean up input file scanning

Do not use Unix low-level I/O for reading a regular input file.
Read in the file header once and re-use the buffer for all input
modules participating in the scan. Also re-use a prefilled metadata
table instead of creating it anew for each input module tried.
src/input/input.c