Add BNoErrorOutput to package kit

This commit is contained in:
Ingo Weinhold 2013-04-01 23:17:25 +00:00
parent 0816749e41
commit df65c3118a
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,29 @@
/*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _PACKAGE__HPKG__NO_ERROR_OUTPUT_H_
#define _PACKAGE__HPKG__NO_ERROR_OUTPUT_H_
#include <package/hpkg/ErrorOutput.h>
namespace BPackageKit {
namespace BHPKG {
class BNoErrorOutput : public BErrorOutput {
public:
virtual void PrintErrorVarArgs(const char* format,
va_list args);
};
} // namespace BHPKG
} // namespace BPackageKit
#endif // _PACKAGE__HPKG__NO_ERROR_OUTPUT_H_

View File

@ -73,6 +73,7 @@ SharedLibrary libpackage.so
$(HPKG_SOURCES)
# hpkg, but only libpackage
NoErrorOutput.cpp
StandardErrorOutput.cpp
:

View File

@ -0,0 +1,26 @@
/*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Ingo Weinhold <ingo_weinhold@gmx.de>
*/
#include <package/hpkg/NoErrorOutput.h>
namespace BPackageKit {
namespace BHPKG {
void
BNoErrorOutput::PrintErrorVarArgs(const char* format, va_list args)
{
}
} // namespace BHPKG
} // namespace BPackageKit