Add BNoErrorOutput to package kit
This commit is contained in:
parent
0816749e41
commit
df65c3118a
29
headers/os/package/hpkg/NoErrorOutput.h
Normal file
29
headers/os/package/hpkg/NoErrorOutput.h
Normal 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_
|
@ -73,6 +73,7 @@ SharedLibrary libpackage.so
|
||||
$(HPKG_SOURCES)
|
||||
|
||||
# hpkg, but only libpackage
|
||||
NoErrorOutput.cpp
|
||||
StandardErrorOutput.cpp
|
||||
|
||||
:
|
||||
|
26
src/kits/package/hpkg/NoErrorOutput.cpp
Normal file
26
src/kits/package/hpkg/NoErrorOutput.cpp
Normal 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
|
Loading…
Reference in New Issue
Block a user