2009-11-17 11:33:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef ERROR_OUTPUT_H
|
|
|
|
#define ERROR_OUTPUT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
2011-01-27 23:17:03 +00:00
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
namespace BHaikuPackage {
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
|
|
|
2009-11-17 11:33:50 +00:00
|
|
|
class ErrorOutput {
|
|
|
|
public:
|
|
|
|
virtual ~ErrorOutput();
|
|
|
|
|
|
|
|
virtual void PrintErrorVarArgs(const char* format,
|
|
|
|
va_list args) = 0;
|
|
|
|
void PrintError(const char* format, ...);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-01-27 23:17:03 +00:00
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
} // namespace BHaikuPackage
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
2009-11-17 11:33:50 +00:00
|
|
|
#endif // ERROR_OUTPUT_H
|