summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/window.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-04-19 06:02:01 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-04-19 06:02:01 +0000
commitd971ce8f36eb00f27da0c2ef8c8b280d568db58c (patch)
tree70f11c500fa64702e29c0a502ec1941bf8610625 /src/osd/windows/window.h
parent3628e7eaedd083da8d876a618a0af8486b114c55 (diff)
Privatized most of the m_machine pointers in the system to prevent
direct use.
Diffstat (limited to 'src/osd/windows/window.h')
-rw-r--r--src/osd/windows/window.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/osd/windows/window.h b/src/osd/windows/window.h
index 689708ba960..c723bce5c3e 100644
--- a/src/osd/windows/window.h
+++ b/src/osd/windows/window.h
@@ -65,10 +65,13 @@
// TYPE DEFINITIONS
//============================================================
-typedef struct _win_window_info win_window_info;
-struct _win_window_info
+struct win_window_info
{
- running_machine &machine() const { assert(m_machine != NULL); return *m_machine; }
+public:
+ win_window_info(running_machine &machine)
+ : m_machine(machine) { }
+
+ running_machine &machine() const { return m_machine; }
win_window_info * next;
volatile int init_state;
@@ -106,7 +109,8 @@ struct _win_window_info
// drawing data
void * drawdata;
- running_machine * m_machine;
+private:
+ running_machine & m_machine;
};