summaryrefslogblamecommitdiffstatshomepage
path: root/src/osd/modules/output/output_module.h
blob: 9046fda3252a8f19cdc6a16f144d9d90af6f3656 (plain) (tree)


















                                                              

                                     
 


                   
                                               


                                    
                                                                    
 



                                                                             


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