7fdfab0ba90789194773f2bbd31bcc6ab161631a galt Tue Aug 5 10:57:28 2014 -0700 Fixes #12559. GenomeSpace support added to hgTables. diff --git src/inc/textOut.h src/inc/textOut.h index 0bb0650..2775f66 100644 --- src/inc/textOut.h +++ src/inc/textOut.h @@ -19,28 +19,30 @@ "gzip compressed (.gz)",\ "bzip2 compressed (.bz2)",\ "LZW compressed (.Z)",\ "zip compressed (.zip)",\ NULL\ } #define textOutCompressValuesContents { textOutCompressNone,\ textOutCompressGzip,\ textOutCompressBzip2,\ textOutCompressCompress,\ textOutCompressZip,\ NULL\ } +char *getCompressSuffix(char *compressType); +/* Return the file dot-suffix (including the dot) for compressType. */ -struct pipeline *textOutInit(char *fileName, char *compressType); +struct pipeline *textOutInit(char *fileName, char *compressType, int *saveStdout); /* Set up stdout to be HTTP text, file (if fileName is specified), or * compressed file (if both fileName and a supported compressType are * specified). * Return NULL if no compression, otherwise a pipeline handle on which * textOutClose should be called when we're done writing stdout. */ -void textOutClose(struct pipeline **pCompressPipeline); +void textOutClose(struct pipeline **pCompressPipeline, int *saveStdout); /* Flush and close stdout, wait for the pipeline to finish, and then free * the pipeline object. */ #endif /* TEXTOUT_H */