Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

4 years ago
  1. // Dolphin Performance Team Instrumentation API
  2. #ifndef _VC_VER_INC
  3. #include "..\include\vcver.h"
  4. #endif
  5. typedef char* SZ;
  6. typedef void* LOG;
  7. typedef enum {
  8. letypeMin,
  9. letypeBegin = letypeMin,
  10. letypeEnd,
  11. letypeEvent,
  12. letypeMax
  13. } LETYPE; // type of log event
  14. #ifdef __cplusplus
  15. #define C_LINKAGE extern "C"
  16. #else
  17. #define C_LINKAGE
  18. #endif
  19. #ifndef DLLSPEC
  20. #if defined(_X86_) || defined(_MIPS_)
  21. #ifdef __INSTRAPI_DLL__
  22. #define DLLSPEC __declspec(dllexport)
  23. #else
  24. #define DLLSPEC __declspec(dllimport)
  25. #endif
  26. #else
  27. #define DLLSPEC
  28. #endif
  29. #endif
  30. C_LINKAGE LOG DLLSPEC _cdecl LogOpen(void);
  31. // Open a log. Returns 0 upon failure. If failure, do not issue diagnostics;
  32. // logging is simply disabled.
  33. C_LINKAGE void DLLSPEC _cdecl LogNoteEvent(LOG log, SZ szComponent, SZ szSubComponent,
  34. LETYPE letype, SZ szMiscFmt, ...);
  35. // Note some event to the log. log may be 0, in which case nothing happens.
  36. // szComponent, szSubComponent, letype, and szMisc describe the component,
  37. // subcomponent, log event type, and miscellaneous description of the event
  38. // as described above (all lowercase, please). Note that if any of the sz*
  39. // parameters are 0, reasonable defaults will be supplied.
  40. //
  41. // Note that szMiscFmt is a sprintf format string and can be followed by
  42. // additional arguments as necessary. It is not necessary to add a newline,
  43. // however.
  44. C_LINKAGE void DLLSPEC _cdecl LogClose(LOG log);
  45. // Close the log. log may be 0, in which case nothing happens.
  46. // (Failure strategy: we never assert, but upon errors may silently disable
  47. // logging.)