summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/output/output_module.h
blob: 9046fda3252a8f19cdc6a16f144d9d90af6f3656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/*
 * outpout_module.h
 *
 */

#ifndef OUTPUT_MODULE_H_
#define OUTPUT_MODULE_H_

#include "osdepend.h"
#include "modules/osdmodule.h"

//============================================================
//  CONSTANTS
//============================================================

#define OSD_OUTPUT_PROVIDER   "output"

#define IM_MAME_PAUSE               0
#define IM_MAME_SAVESTATE           1

class output_module
{
public:
	output_module(): m_machine(nullptr) { }

	virtual ~output_module() { }

	virtual void notify(const char *outname, int32_t value) = 0;

	void set_machine(running_machine *machine) { m_machine = machine;  };
	running_machine &machine() const { return *m_machine; }
private:
	running_machine *m_machine;
};

#endif /* OUTPUT_MODULE_H_ */