| | |
| | | //预设参数解析用 |
| | | typedef u32 (*ParamCtrl_fn)(IModule* m, void* handle, int &plen); |
| | | //参数控制用 |
| | | typedef u32 (*Ctrl_fn)(IModule* m, u32 pID, s16* val_c, u32 num); |
| | | typedef u32 (*Ctrl_fn)(IModule* m, u32 pID, s16* val_c, u32 num, void* param); |
| | | |
| | | class ParamEntry { |
| | | private: |
| | |
| | | return mctrl_list.find(mtype) != mctrl_list.end(); |
| | | } |
| | | }; |
| | | /*class param_ctrl_t{ |
| | | protected: |
| | | std::map<u32, ParamEntry> mctrl_list; |
| | | public: |
| | | ParamCtrl_fn GetParamEntry(u32 mtype) |
| | | { |
| | | if(mctrl_list.count(mtype)) |
| | | return mctrl_list[mtype].GetParamEntry(); |
| | | else |
| | | return NULL; |
| | | } |
| | | |
| | | Ctrl_fn GetCtrlEntry(u32 mtype) |
| | | { |
| | | if(mctrl_list.count(mtype)) |
| | | return mctrl_list[mtype].GetCtrlEntry(); |
| | | else |
| | | return NULL; |
| | | } |
| | | };*/ |
| | | //class param_ctrl_t{ |
| | | //protected: |
| | | // std::map<u32, ParamEntry> mctrl_list; |
| | | //public: |
| | | // ParamCtrl_fn GetParamEntry(u32 mtype) |
| | | // { |
| | | // if(mctrl_list.count(mtype)) |
| | | // return mctrl_list[mtype].GetParamEntry(); |
| | | // else |
| | | // return NULL; |
| | | // } |
| | | // |
| | | // Ctrl_fn GetCtrlEntry(u32 mtype) |
| | | // { |
| | | // if(mctrl_list.count(mtype)) |
| | | // return mctrl_list[mtype].GetCtrlEntry(); |
| | | // else |
| | | // return NULL; |
| | | // } |
| | | //}; |
| | | |
| | | |
| | | |