output.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef HEADER_TU_OUTPUT_H
  10. # define HEADER_TU_OUTPUT_H
  11. #include <stdarg.h>
  12. /*
  13. * The basic I/O functions used internally by the test framework. These
  14. * can be overridden when needed. Note that if one is, then all must be.
  15. */
  16. void test_open_streams(void);
  17. void test_close_streams(void);
  18. /* The following ALL return the number of characters written */
  19. int test_vprintf_stdout(const char *fmt, va_list ap);
  20. int test_vprintf_stderr(const char *fmt, va_list ap);
  21. /* These return failure or success */
  22. int test_flush_stdout(void);
  23. int test_flush_stderr(void);
  24. /* Commodity functions. There's no need to override these */
  25. int test_printf_stdout(const char *fmt, ...);
  26. int test_printf_stderr(const char *fmt, ...);
  27. #endif /* HEADER_TU_OUTPUT_H */