summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/deprecat.h
diff options
context:
space:
mode:
author Zsolt Vasvari <zsoltvas@mamedev.org>2008-01-25 09:30:43 +0000
committer Zsolt Vasvari <zsoltvas@mamedev.org>2008-01-25 09:30:43 +0000
commit4930b2dbfd341f1619de955570223a24f4d10d30 (patch)
treebd178c33a85f6749e58f839a365449de188ac355 /src/emu/deprecat.h
parent877b75ad75a758d62b158af6688a88f5f61c8860 (diff)
- Added deprecat.h that contains some deprecated/discouraged contructs (see below)
The idea is to create extra work if a driver wants to use these and hopefully gives an incentive to look for an alternate solution - Added #include of deprecat.h that rely on these contructs - Removed a bunch of unneccassary #include's from these files
Diffstat (limited to 'src/emu/deprecat.h')
-rw-r--r--src/emu/deprecat.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/emu/deprecat.h b/src/emu/deprecat.h
new file mode 100644
index 00000000000..14397bd7bb7
--- /dev/null
+++ b/src/emu/deprecat.h
@@ -0,0 +1,52 @@
+/***************************************************************************
+
+ deprecat.h
+
+ Definition of derprecated and obsolte constructs that should not
+ be used by new code, if at all possible.
+
+ Copyright Nicola Salmoria and the MAME Team.
+ Visit http://mamedev.org for licensing and usage restrictions.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __DEPRECAT_H__
+#define __DEPRECAT_H__
+
+
+
+/*************************************
+ *
+ * Global access to the currently
+ * executing machine.
+ *
+ * Please investigate if it is
+ * possible to use a passed in
+ * 'machine' argument.
+ *
+ *************************************/
+
+extern running_machine *Machine;
+
+
+
+/*************************************
+ *
+ * Video timing
+ *
+ * These functions are no longer considered
+ * to be the authority on scanline timing.
+ * Please use the video_screen_* functions
+ * in video.c for newer drivers.
+ *
+ *************************************/
+
+/* Recomputes the VBLANK timing after, e.g., a visible area change */
+void cpu_compute_vblank_timing(running_machine *machine);
+
+/* Returns the number of the video frame we are currently playing */
+int cpu_getcurrentframe(void);
+
+#endif /* __DEPRECAT_H__ */