output.h 941 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef INCLUDED_OUTPUT_H
  2. #define INCLUDED_OUTPUT_H
  3. #ifndef CONFIG
  4. #define CONFIG "config.h"
  5. #endif // CONFIG
  6. #include CONFIG
  7. #include <errno.h>
  8. #include "kms.h"
  9. typedef int (*PRINTFUNC)(const char *const fmt, ...);
  10. void printerrorf(const char *const fmt, ...);
  11. int errorout(const char* fmt, ...);
  12. void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p);
  13. void logResponseVerbose(const char *const ePID, const BYTE *const hwid, const RESPONSE *const response, const PRINTFUNC p);
  14. #ifndef NO_VERSION_INFORMATION
  15. void printPlatform();
  16. void printCommonFlags();
  17. void printServerFlags();
  18. void printClientFlags();
  19. #endif // NO_VERSION_INFORMATION
  20. #ifndef NO_LOG
  21. int logger(const char *const fmt, ...);
  22. #endif //NO_LOG
  23. void uuid2StringLE(const GUID *const guid, char *const string);
  24. //void copy_arguments(int argc, char **argv, char ***new_argv);
  25. //void destroy_arguments(int argc, char **argv);
  26. #endif // INCLUDED_OUTPUT_H