iostream-rawlog.h revision f1ed4fa248aaf6841ba638b9d66b2738d9f7aa18
2454dfa32c93c20a8522c6ed42fe057baaac9f9aStephan Bosch#ifndef IOSTREAM_RAWLOG_H
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen#define IOSTREAM_RAWLOG_H
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen/* Create rawlog *.in and *.out files to the given directory. */
6789ed17e7ca4021713507baf0dcf6979bb42e0cTimo Sirainenint ATTR_NOWARN_UNUSED_RESULT
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Siraineniostream_rawlog_create(const char *dir, struct istream **input,
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen struct ostream **output);
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen/* Create rawlog prefix.in and prefix.out files. */
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainenint ATTR_NOWARN_UNUSED_RESULT
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Siraineniostream_rawlog_create_prefix(const char *prefix, struct istream **input,
636f017be100bce67d66fd3ae1544a47681efd33Timo Sirainen struct ostream **output);
923eb3dde28e4d8841c14fd6b4a69635b7070c3eTimo Sirainen/* Create rawlog path, writing both input and output to the same file. */
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenbergerint ATTR_NOWARN_UNUSED_RESULT
06ff2a72c39cb34cc6425f17fc82c5e93fef2018Timo Siraineniostream_rawlog_create_path(const char *path, struct istream **input,
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen struct ostream **output);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen#endif
de76b960297406115cf6bae473f004c08174b16aTimo Sirainen