X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fmonitor.h;h=3530061ed4fc8e3f3bafa091e7a1450afd457a6c;hp=b9ca4540a3cb5e85695d364a09e18766305604bb;hb=17b48928d6fa43e8eeb24d3894d807475c75de69;hpb=0b4c42d3274bfcd08db55f5be02626c9e86a81ca diff --git a/include/monitor.h b/include/monitor.h index b9ca454..3530061 100644 --- a/include/monitor.h +++ b/include/monitor.h @@ -52,6 +52,12 @@ enum { MONINSIZE = 40 /**<モニターの、入力領域 */ }; +typedef enum { + MONREPEAT = 0, + MONNEXT = 1, + MONQUIT = 2, +} MONCMDTYPE; + /** * @brief アドレスのハッシュ値を返す * @@ -79,6 +85,16 @@ MONARGS *monargstok(const char *str); */ MONCMDLINE *monlinetok(const char *line); +/** + * @brief モニターの命令を実行する + * + * @return モニター命令の種類 + * + * @param *cmd モニター命令 + * @param *args モニター命令の引数 + */ +MONCMDTYPE monitorcmd(char *cmd, MONARGS *args); + /** * @brief ブレークポイント表にアドレスがある場合はtrue、ない場合はfalseを返す *