static void destroy() { boardRemoveExternalDevices(); ay8910SetIoPort(ay8910, NULL, NULL, NULL, NULL); ay8910Destroy(ay8910); ay8910 = NULL; audioKeyClickDestroy(keyClick); r800DebugDestroy(); slotManagerDestroy(); deviceManagerDestroy(); r800Destroy(r800); }
static void destroy(SviPPI* ppi) { ioPortUnregister(0x98); ioPortUnregister(0x99); ioPortUnregister(0x96); ioPortUnregister(0x97); ioPortUnregister(0x9A); audioKeyClickDestroy(ppi->keyClick); deviceManagerUnregister(ppi->deviceHandle); debugDeviceUnregister(ppi->debugHandle); dacDestroy(ppi->dac); i8255Destroy(ppi->i8255); free(ppi); }