1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 01:31:42 +00:00

Unified delegates. Let's keep it easy for the caller.

This commit is contained in:
Thomas Harte 2016-11-22 22:11:11 +08:00
parent 13a608a8c2
commit 03843bf934

View File

@ -29,11 +29,11 @@ class Microdisc: public WD::WD1770 {
MicrodscDisable = (1 << 1)
};
class Delegate {
class Delegate: public WD1770::Delegate {
public:
virtual void microdisc_did_change_paging_flags(Microdisc *microdisc) = 0;
};
inline void set_microdisc_delegate(Delegate *delegate) { delegate_ = delegate; }
inline void set_delegate(Delegate *delegate) { delegate_ = delegate; WD1770::set_delegate(delegate); }
inline int get_paging_flags() { return paging_flags_; }
private: