diff src/win32/ramwatch.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/ramwatch.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,46 @@
     1.4 +#ifndef RAMWATCH_H
     1.5 +#define RAMWATCH_H
     1.6 +
     1.7 +bool ResetWatches();
     1.8 +void OpenRWRecentFile(int memwRFileNumber);
     1.9 +extern bool AutoRWLoad;
    1.10 +extern bool RWSaveWindowPos;
    1.11 +#define MAX_RECENT_WATCHES 5
    1.12 +extern char rw_recent_files[MAX_RECENT_WATCHES][1024];
    1.13 +extern bool AskSave();
    1.14 +extern int ramw_x;
    1.15 +extern int ramw_y;
    1.16 +extern bool RWfileChanged;
    1.17 +
    1.18 +//Constants
    1.19 +#define AUTORWLOAD "RamWatchAutoLoad"
    1.20 +#define RWSAVEPOS "RamWatchSaveWindowPos"
    1.21 +#define RAMWX "RamwX"
    1.22 +#define RAMWY "RamwY"
    1.23 +
    1.24 +// AddressWatcher is self-contained now
    1.25 +struct AddressWatcher
    1.26 +{
    1.27 +	unsigned int Address; // hardware address
    1.28 +	char Size;
    1.29 +	char Type;
    1.30 +	char* comment; // NULL means no comment, non-NULL means allocated comment
    1.31 +	bool WrongEndian;
    1.32 +	unsigned int CurValue;
    1.33 +};
    1.34 +#define MAX_WATCH_COUNT 256
    1.35 +extern AddressWatcher rswatches[MAX_WATCH_COUNT];
    1.36 +extern int WatchCount; // number of valid items in rswatches
    1.37 +
    1.38 +extern char Watch_Dir[1024];
    1.39 +
    1.40 +extern HWND RamWatchHWnd;
    1.41 +extern HACCEL RamWatchAccels;
    1.42 +
    1.43 +bool InsertWatch(const AddressWatcher& Watch, char *Comment);
    1.44 +bool InsertWatch(const AddressWatcher& Watch, HWND parent=NULL); // asks user for comment
    1.45 +void Update_RAM_Watch();
    1.46 +bool Load_Watches(bool clear, const char* filename);
    1.47 +void RWAddRecentFile(const char *filename);
    1.48 +
    1.49 +#endif