X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2Fapc%2Fscanner.c;h=a999c7b9e40d6a3cff1b0079c4dac142d5852f1e;hp=a60de185e8b405998089bf7ebed2bb5a129d7e19;hb=89094ec20ef408709bf9f211c2f5a75814e363da;hpb=b8ef2143830953689f30e3bb4460d0d23bd5dcfd diff --git a/src/apc/scanner.c b/src/apc/scanner.c index a60de18..a999c7b 100644 --- a/src/apc/scanner.c +++ b/src/apc/scanner.c @@ -19,12 +19,15 @@ #include //exit #include //chdir #include //opendir - +/* Libs */ +#include +/* Internal */ #include "parser.tab.h" /* Public */ int scanner_init(void); void scanner_quit(void); int scanner(void); +int scanner_scanpixels(int*,int); /* Private */ #ifndef DL_STACKSIZE #define DL_STACKSIZE 64 @@ -211,3 +214,18 @@ int dredge_current_depth } +/* Scan Pixels + Scans up to 'len' pixels from the current file into 'buf'. + Returns the number of pixels scanned from the file, or -1 on error. +*/ +int scanner_scanpixels +( int* buf, + int x +) +{ int pixels = 0; + //Open the current file if not yet open + //Identify file type + //Verify file contents and header + //Read pixels into buffer + return pixels; +}