From 7b03fd544837fbe0bc5a5373b60dfd5de50892e1 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 26 May 2019 15:55:28 +0800 Subject: Major code refactor continued and (mostly) concluded. Removed all references to ICallback in official plugins. New flag field in SEvent. Further type usage corrections. --- include/qmpcorepublic.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/qmpcorepublic.hpp') diff --git a/include/qmpcorepublic.hpp b/include/qmpcorepublic.hpp index 67a39e0..a4949ac 100644 --- a/include/qmpcorepublic.hpp +++ b/include/qmpcorepublic.hpp @@ -15,12 +15,13 @@ struct SEvent { uint32_t iid,time; uint8_t type,p1,p2; + uint8_t flags; std::string str; - SEvent(){time=p1=p2=0;type=0;str="";} + SEvent(){time=iid=0;type=p1=p2=0;flags=0;str="";} SEvent(uint32_t _iid,uint32_t _t,uint8_t _tp,uint8_t _p1,uint8_t _p2,const char* s=nullptr) { iid=_iid;time=_t;type=_tp; - p1=_p1;p2=_p2; + p1=_p1;p2=_p2;flags=0; if(s)str=std::string(s);else str=""; } friend bool operator <(const SEvent& a,const SEvent& b){return a.time-b.time?a.time