vlmcsd/src/output.h

37 lines
935 B
C
Raw Normal View History

2015-11-29 10:30:52 +01:00
#ifndef INCLUDED_OUTPUT_H
#define INCLUDED_OUTPUT_H
#ifndef CONFIG
#define CONFIG "config.h"
#endif // CONFIG
#include CONFIG
2016-06-06 04:36:00 +02:00
#include <errno.h>
2016-10-08 07:35:48 +02:00
#include "types.h"
2015-11-29 10:30:52 +01:00
#include "kms.h"
typedef int (*PRINTFUNC)(const char *const fmt, ...);
2016-08-15 12:35:59 +02:00
int printerrorf(const char *const fmt, ...);
2015-11-29 10:30:52 +01:00
int errorout(const char* fmt, ...);
2020-03-30 07:21:09 +02:00
void logRequestVerbose(REQUEST* Request, const PRINTFUNC p);
void logResponseVerbose(const char *const ePID, const BYTE *const hwid, RESPONSE* response, const PRINTFUNC p);
2015-11-29 10:30:52 +01:00
2016-06-06 04:36:00 +02:00
#ifndef NO_VERSION_INFORMATION
void printPlatform();
void printCommonFlags();
void printServerFlags();
void printClientFlags();
#endif // NO_VERSION_INFORMATION
2015-11-29 10:30:52 +01:00
#ifndef NO_LOG
int logger(const char *const fmt, ...);
#endif //NO_LOG
void uuid2StringLE(const GUID *const guid, char *const string);
//void copy_arguments(int argc, char **argv, char ***new_argv);
//void destroy_arguments(int argc, char **argv);
#endif // INCLUDED_OUTPUT_H