blob: 48a688eb7d1c4437f03321c5f388ad0ff56b8071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/* -*- mode: C++; tab-width: 4 -*- */
/* ===================================================================== *\
Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries.
All rights reserved.
This file is part of the Palm OS Emulator.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
\* ===================================================================== */
#ifndef _TRACER_PLATFORM_H_
#define _TRACER_PLATFORM_H_
#include "EmCommon.h"
#include "TracerCommon.h"
class Tracer : public TracerBase
{
public:
Tracer (void);
virtual ~Tracer (void);
// Tracing subsystem lifecycle
virtual void Initialize (void);
virtual void Dispose (void);
// HostTrace* counterparts
virtual void InitOutputPort (void);
virtual void CloseOutputPort (void);
virtual void OutputVT (unsigned short errModule, const char* formatString, va_list args);
virtual void OutputVTL (unsigned short errModule, const char* formatString, va_list args);
virtual void OutputB (unsigned short errModule, const void* buffer, size_t bufferLen);
// User feedback
virtual void GetLibraryVersionString (char* buffer, size_t bufferLen);
virtual unsigned long GetLibraryVersionNumber (void);
virtual long GetConnectionStatus (void);
virtual bool IsLibraryLoaded (void);
// Connection control
virtual void StopTracer (void);
virtual void GetTracerCapabilities (char* buffer, size_t* bufferLen);
virtual void SetCurrentTracerTypeIndex (unsigned short tracerType, Bool paramChange = false);
#if PLATFORM_WINDOWS
// Connection control
virtual void CheckPeerStatus (void);
#endif
};
extern Tracer gTracer;
#endif // _TRACER_PLATFORM_H_
|