vbox的更動 22480 路徑 trunk/src/VBox/Devices/Input/DevPS2.cpp
- 時間撮記:
- 2009-8-26 下午05:14:13 (15 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Input/DevPS2.cpp
r22462 r22480 1428 1428 * @param pDevIns The device instance. 1429 1429 * @param pSSMHandle The handle to the saved state. 1430 * @param u32Version The data unit version number. 1430 * @param uVersion The data unit version number. 1431 * @param uPhase The data phase. 1431 1432 */ 1432 static DECLCALLBACK(int) kbdLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version) 1433 { 1434 return kbd_load(pSSMHandle, PDMINS_2_DATA(pDevIns, KBDState *), u32Version); 1433 static DECLCALLBACK(int) kbdLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t uVersion, uint32_t uPhase) 1434 { 1435 Assert(uPhase == SSM_PHASE_FINAL); NOREF(uPhase); 1436 return kbd_load(pSSMHandle, PDMINS_2_DATA(pDevIns, KBDState *), uVersion); 1435 1437 } 1436 1438 … … 1670 1672 } 1671 1673 1674 1672 1675 /** 1673 1676 * @copydoc FNPDMDEVRELOCATE … … 1679 1682 } 1680 1683 1684 1681 1685 /** 1682 1686 * Destruct a device instance for a VM. … … 1692 1696 return VINF_SUCCESS; 1693 1697 } 1698 1694 1699 1695 1700 /** … … 1776 1781 return rc; 1777 1782 } 1778 rc = PDMDevHlpSSMRegister(pDevIns, g_DevicePS2KeyboardMouse.szDeviceName, iInstance, PCKBD_SAVED_STATE_VERSION, sizeof(*pThis), 1779 NULL, kbdSaveExec, NULL, 1780 NULL, kbdLoadExec, NULL); 1783 rc = PDMDevHlpSSMRegister(pDevIns, PCKBD_SAVED_STATE_VERSION, sizeof(*pThis), kbdSaveExec, kbdLoadExec); 1781 1784 if (RT_FAILURE(rc)) 1782 1785 return rc;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器