~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/emu/dislot.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#pragma once
2
 
 
3
 
#ifndef __EMU_H__
4
 
#error Dont include this file directly; include emu.h instead.
5
 
#endif
6
 
 
7
 
#ifndef __DISLOT_H__
8
 
#define __DISLOT_H__
9
 
 
10
 
 
11
 
//**************************************************************************
12
 
//  TYPE DEFINITIONS
13
 
//**************************************************************************
14
 
// ======================> device_slot_interface
15
 
 
16
 
struct slot_interface
17
 
{
18
 
        const char *    name;
19
 
        device_type             devtype;
20
 
};
21
 
 
22
 
#define MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot) \
23
 
        device_slot_interface::static_set_slot_info(*device, SLOT_INTERFACE_NAME(_slot_intf), _def_slot);
24
 
 
25
 
#define SLOT_INTERFACE_NAME(name)       slot_interface_##name
26
 
 
27
 
#define SLOT_INTERFACE_START(name)                                                              \
28
 
        const slot_interface slot_interface_##name[] =                          \
29
 
        {                                                                                                                       \
30
 
 
31
 
#define SLOT_INTERFACE(tag,device) \
32
 
        { tag, device }, \
33
 
 
34
 
#define SLOT_INTERFACE_END \
35
 
                { NULL, NULL }                                                  \
36
 
        };
37
 
 
38
 
class device_slot_card_interface;
39
 
 
40
 
class device_slot_interface : public device_interface
41
 
{
42
 
public:
43
 
        // construction/destruction
44
 
        device_slot_interface(const machine_config &mconfig, device_t &device);
45
 
        virtual ~device_slot_interface();
46
 
 
47
 
        static void static_set_slot_info(device_t &device, const slot_interface *slots_info, const char *default_card);
48
 
        const slot_interface* get_slot_interfaces() const { return m_slot_interfaces; };
49
 
        const char * get_default_card() const { return m_default_card; };
50
 
        device_t* get_card_device();
51
 
protected:
52
 
        const char *m_default_card;
53
 
        const slot_interface *m_slot_interfaces;
54
 
};
55
 
 
56
 
// ======================> device_slot_card_interface
57
 
 
58
 
class device_slot_card_interface : public device_interface
59
 
{
60
 
public:
61
 
        // construction/destruction
62
 
        device_slot_card_interface(const machine_config &mconfig, device_t &device);
63
 
        virtual ~device_slot_card_interface();
64
 
};
65
 
 
66
 
#endif  /* __DISLOT_H__ */