]> git.scottworley.com Git - overonion/blobdiff - reverse_lib.h
Add hashing
[overonion] / reverse_lib.h
index 9c0f05ae2eaa9d75d1894ff4da8a0eb3c55eecfd..d8b04802b607c6d07170b88a2b429b4163a1f79c 100644 (file)
@@ -7,4 +7,9 @@
  * input_filename must be a real file, not a pipe. */
 void reverse_file(const char* input_filename, FILE* output_stream);
 
+/* Save the contents of input_stream to a temporary file.  On EOF,
+ * emit them backwards to output_stream.  Temporary files go in
+ * $TMPDIR if set, /tmp otherwise. */
+void reverse_stream(FILE* input_stream, FILE* output_stream);
+
 #endif /* _OVERONION_REVERSE_LIB_H */