-
Notifications
You must be signed in to change notification settings - Fork 1
/
htflt.h
63 lines (50 loc) · 1.47 KB
/
htflt.h
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
58
59
60
61
62
/*
* HT Editor
* htflt.h
*
* Copyright (C) 2003 Sebastian Biallas ([email protected])
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __HTFLT_H__
#define __HTFLT_H__
#include "fltstruc.h"
#include "formats.h"
#include "endianess.h"
#include "htformat.h"
#include "relfile.h"
#define DESC_FLT "flat - binary format"
#define DESC_FLT_HEADER "flat/header"
#define DESC_FLT_IMAGE "flat/image"
extern format_viewer_if htflt_if;
typedef uint32 FLTAddress;
struct ht_flt_shared_data {
FileOfs header_ofs;
flat_hdr header;
FLTAddress code_start;
FLTAddress code_end;
FLTAddress data_start;
FLTAddress data_end;
FLTAddress bss_start;
FLTAddress bss_end;
};
/*
* CLASS ht_flt
*/
class ht_flt: public ht_format_group {
public:
void init(Bounds *b, File *file, format_viewer_if **ifs, ht_format_group *format_group, FileOfs header_ofs);
virtual void done();
};
#endif /* !__HTELF_H__ */