xtf_funcs.h
Description
xtf_funcs.h is the C header file in code/sidescan/xtf/ declaring the high-level .XTF file header and data packet reader functions implemented in xtf_funcs.c.
Function Prototypes
int readXTFheader(FILE *fp, XTFFILEHEADER *XTFhdr);
int readXTFdata(FILE *fp, unsigned char *buffer);
readXTFheader(FILE *fp, XTFFILEHEADER *XTFhdr): Reads the initial 1024-byte XTF file header (plus any extended channel headers if total channel count exceeds 6), unpacks it viaconvXTFFILEHEADER(), and returns the number of channel headers read (>0on success,0on failure).readXTFdata(FILE *fp, unsigned char *buffer): Reads the next variable-length packet (XTF_HEADER_SONAR,XTF_HEADER_ATTITUDE,XTF_HEADER_NOTES, etc.) fromfpintobufferby inspecting the magic byte0xFACEand the 32-bitNumBytesThisRecordfield at byte offset 10.