• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Virtual machine Management Terminal User Interface


Commit MetaInfo

Révision89332adb4bdc3bcff9053cec2687726db1972c2c (tree)
l'heure2022-07-24 20:02:32
AuteurKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Message de Log

Change REQUEST_CMD_EXIT for REQUEST_CMD_HV_EXIT.

Change Summary

Modification

--- a/src/hvthread.c
+++ b/src/hvthread.c
@@ -117,7 +117,7 @@ void *
117117 p_request->dw_serial, REQUEST_CMD_STR( (int)p_request->b_reqcmd ));
118118 */
119119
120- if( REQUEST_CMD_EXIT == p_request->b_reqcmd ) {
120+ if( REQUEST_CMD_HV_EXIT == p_request->b_reqcmd ) {
121121 Request_Release( p_request );
122122 Request_Free( p_hvcon->req.i_exec );
123123 break;
--- a/src/request.h
+++ b/src/request.h
@@ -33,7 +33,7 @@
3333 #define REQUEST_MAXLEN_CMDLINE 512
3434
3535 #define REQUEST_CMD_NONE 0x00
36-#define REQUEST_CMD_EXIT 0x01
36+#define REQUEST_CMD_HV_EXIT 0x01
3737 #define REQUEST_CMD_HV_CONNECT 0x02
3838 #define REQUEST_CMD_HV_DISCONNECT 0x03
3939 #define REQUEST_CMD_HV_RECONNECT 0x04
@@ -49,7 +49,8 @@
4949 #define REQUEST_CMD_VM_CONFIGURE 0x0e
5050 #define REQUEST_CMD_VM_RENAME 0x0f
5151 #define REQUEST_CMD_TEST 0x2f
52-#define REQUEST_CMD_MAX 0x30
52+#define REQUEST_CMD_MAX 0x30 // for Array items (NOT Command)
53+#define REQUEST_CMD_SYS_QUIT 0xff // Dummy Commnad
5354
5455 typedef struct {
5556 // System Data ---
@@ -120,10 +121,10 @@ void Request_Clear( Request *p_req, int i_id );
120121 #ifdef VMTUI_SRC_REQUEST
121122 char *gstr_request_string[REQUEST_CMD_MAX] = {
122123 "CMD_None", // REQUEST_CMD_NONE 0x00
123- "CMD_Exit", // REQUEST_CMD_EXIT 0x01
124- "CMD_Connect", // REQUEST_CMD_HV_CONNECT 0x02
125- "CMD_DisConnect", // REQUEST_CMD_HV_DISCONNECT 0x03
126- "CMD_ReConnect", // REQUEST_CMD_HV_RECONNECT 0x04
124+ "CMD_HV_Exit", // REQUEST_CMD_HV_EXIT 0x01
125+ "CMD_HV_Connect", // REQUEST_CMD_HV_CONNECT 0x02
126+ "CMD_HV_DisConnect", // REQUEST_CMD_HV_DISCONNECT 0x03
127+ "CMD_HV_ReConnect", // REQUEST_CMD_HV_RECONNECT 0x04
127128 "CMD_VM_List", // REQUEST_CMD_VMLIST 0x05
128129 "CMD_VM_Start", // REQUEST_CMD_VM_START 0x06
129130 "CMD_VM_Stop", // REQUEST_CMD_VM_STOP 0x07
--- a/src/vmtui_main.c
+++ b/src/vmtui_main.c
@@ -136,7 +136,7 @@ int main( int argc, char *argv[] ) {
136136 if( HVISOR_STATUS_CONNECTED & dw_status )
137137 { ReqCtl_CreateRequest( REQUEST_CMD_HV_DISCONNECT, i_hvisor, GUEST_ID_NONE, NULL ); }
138138
139- ReqCtl_CreateRequest( REQUEST_CMD_EXIT, i_hvisor, GUEST_ID_NONE, NULL );
139+ ReqCtl_CreateRequest( REQUEST_CMD_HV_EXIT, i_hvisor, GUEST_ID_NONE, NULL );
140140
141141 i_hnext = HVisor_GetNextID( i_hvisor );
142142