0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32\kernel\crashdebug_gzip.cpp
|
|
15 |
// Wrapper class for using Zlib with the crash logger to create GZip
|
|
16 |
// compatible output
|
|
17 |
//
|
|
18 |
//
|
|
19 |
|
|
20 |
#include "crashdebug_gzip.h"
|
|
21 |
#include <kernel/monitor.h>
|
|
22 |
|
|
23 |
|
|
24 |
void TCrashDebugGzip::SetOutput(CrashDebugger* aDebugger)
|
|
25 |
{
|
|
26 |
iDebugger = aDebugger;
|
|
27 |
Init();
|
|
28 |
}
|
|
29 |
|
|
30 |
|
|
31 |
TInt TCrashDebugGzip::Out(const TDesC8& aDes)
|
|
32 |
{
|
|
33 |
iDebugger->Print(aDes);
|
|
34 |
return KErrNone;
|
|
35 |
}
|
|
36 |
|
|
37 |
|
|
38 |
TInt32 TCrashDebugGzip::GetMaxLength()
|
|
39 |
{
|
|
40 |
return -1;
|
|
41 |
}
|
|
42 |
|