output.h 959 B

123456789101112131415161718192021222324252627282930313233343536
  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 "types.h"
  9. #include "kms.h"
  10. typedef int (*PRINTFUNC)(const char *const fmt, ...);
  11. int printerrorf(const char *const fmt, ...);
  12. int errorout(const char* fmt, ...);
  13. void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p);
  14. void logResponseVerbose(const char *const ePID, const BYTE *const hwid, const RESPONSE *const response, const PRINTFUNC p);
  15. #ifndef NO_VERSION_INFORMATION
  16. void printPlatform();
  17. void printCommonFlags();
  18. void printServerFlags();
  19. void printClientFlags();
  20. #endif // NO_VERSION_INFORMATION
  21. #ifndef NO_LOG
  22. int logger(const char *const fmt, ...);
  23. #endif //NO_LOG
  24. void uuid2StringLE(const GUID *const guid, char *const string);
  25. //void copy_arguments(int argc, char **argv, char ***new_argv);
  26. //void destroy_arguments(int argc, char **argv);
  27. #endif // INCLUDED_OUTPUT_H