callbacks.h 639 B

12345678910111213141516171819202122
  1. /* uTest Copyright (C) 2011 Data Differential, http://datadifferential.com/
  2. *
  3. * Use and distribution licensed under the BSD license. See
  4. * the COPYING file in the parent directory for full text.
  5. */
  6. #pragma once
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef void* (test_callback_create_fn)(libtest::server_startup_st&, test_return_t&);
  11. typedef bool test_callback_destroy_fn(void *);
  12. typedef enum test_return_t (test_callback_fn)(void *);
  13. typedef enum test_return_t (test_callback_runner_fn)(test_callback_fn*, void *);
  14. typedef enum test_return_t (test_callback_error_fn)(const test_return_t, void *);
  15. #ifdef __cplusplus
  16. }
  17. #endif