2009-11-17 14:33:50 +03:00
|
|
|
/*
|
2011-01-30 18:15:33 +03:00
|
|
|
* Copyright 2009,2011, Haiku, Inc.
|
2009-11-17 14:33:50 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2011-01-30 18:05:38 +03:00
|
|
|
#ifndef _PACKAGE__HPKG__ERROR_OUTPUT_H_
|
|
|
|
#define _PACKAGE__HPKG__ERROR_OUTPUT_H_
|
2009-11-17 14:33:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
2011-01-28 02:17:03 +03:00
|
|
|
namespace BPackageKit {
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
namespace BHPKG {
|
2011-01-28 02:17:03 +03:00
|
|
|
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
class BErrorOutput {
|
2009-11-17 14:33:50 +03:00
|
|
|
public:
|
2011-01-30 18:05:38 +03:00
|
|
|
virtual ~BErrorOutput();
|
2009-11-17 14:33:50 +03:00
|
|
|
|
|
|
|
virtual void PrintErrorVarArgs(const char* format,
|
|
|
|
va_list args) = 0;
|
|
|
|
void PrintError(const char* format, ...);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
} // namespace BHPKG
|
2011-01-28 02:17:03 +03:00
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
#endif // _PACKAGE__HPKG__PACKAGE_OUTPUT_H_
|