view src/win32/ramwatch.h @ 2:3549bbe597ed

adding makefile.am
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:47 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef RAMWATCH_H
2 #define RAMWATCH_H
4 bool ResetWatches();
5 void OpenRWRecentFile(int memwRFileNumber);
6 extern bool AutoRWLoad;
7 extern bool RWSaveWindowPos;
8 #define MAX_RECENT_WATCHES 5
9 extern char rw_recent_files[MAX_RECENT_WATCHES][1024];
10 extern bool AskSave();
11 extern int ramw_x;
12 extern int ramw_y;
13 extern bool RWfileChanged;
15 //Constants
16 #define AUTORWLOAD "RamWatchAutoLoad"
17 #define RWSAVEPOS "RamWatchSaveWindowPos"
18 #define RAMWX "RamwX"
19 #define RAMWY "RamwY"
21 // AddressWatcher is self-contained now
22 struct AddressWatcher
23 {
24 unsigned int Address; // hardware address
25 char Size;
26 char Type;
27 char* comment; // NULL means no comment, non-NULL means allocated comment
28 bool WrongEndian;
29 unsigned int CurValue;
30 };
31 #define MAX_WATCH_COUNT 256
32 extern AddressWatcher rswatches[MAX_WATCH_COUNT];
33 extern int WatchCount; // number of valid items in rswatches
35 extern char Watch_Dir[1024];
37 extern HWND RamWatchHWnd;
38 extern HACCEL RamWatchAccels;
40 bool InsertWatch(const AddressWatcher& Watch, char *Comment);
41 bool InsertWatch(const AddressWatcher& Watch, HWND parent=NULL); // asks user for comment
42 void Update_RAM_Watch();
43 bool Load_Watches(bool clear, const char* filename);
44 void RWAddRecentFile(const char *filename);
46 #endif