rlfeint.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. // RLFEINT.H
  6. #define RLFE_VERSION 1
  7. #undef UNICODE
  8. #undef _UNICODE
  9. #define PIPE_NAME "\\\\.\\pipe\\rlfepipe"
  10. #define PIPE_BUF_SIZE 1024 * 16
  11. #define PIPE_SEP_CHAR '|'
  12. // RLFE thread reads first three bytes:
  13. // byte 1 = command code
  14. // bytes 2/3 = HI/lo length of command (not including first three bytes)
  15. //
  16. // Then depending on command, reads 'length' bytes and processes appropriately
  17. //
  18. // Note: we use | as a separator because we allow \ in directory names
  19. enum RLFE_COMMAND {
  20. RLFE_INIT = 0,
  21. RLFE_ADD_ROOT,
  22. RLFE_ADD_TEST,
  23. RLFE_ADD_LOG,
  24. RLFE_TEST_STATUS,
  25. RLFE_THREAD_DIR,
  26. RLFE_THREAD_STATUS,
  27. RLFE_DONE,
  28. RLFE_COUNT
  29. };
  30. #ifndef _RL_STATS_DEFINED
  31. #define _RL_STATS_DEFINED
  32. // Statistics index.
  33. enum RL_STATS {
  34. RLS_TOTAL = 0, // overall stats
  35. RLS_EXE, // should == RLS_TOTAL at this time
  36. RLS_BASELINES, // baseline stats (== total if !FBaseDiff)
  37. RLS_DIFFS, // diff stats (== total if !FBaseDiff)
  38. RLS_COUNT
  39. };
  40. #endif
  41. enum RLFE_STATUS {
  42. RLFES_PASSED,
  43. RLFES_FAILED,
  44. RLFES_DIFFED
  45. };