summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/output/output_module.h
blob: 54f19dfa90574389c4ea796f4086e75a38f4e567 (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
// 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"

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_ */