/* Derived from source code of TrueCrypt 7.1a, which is Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0. Modifications and additions to the original source code (contained in this file) and all other portions of this file are Copyright (c) 2013-2016 IDRIX and are governed by the Apache License 2.0 the full text of which is contained in the file License.txt included in VeraCrypt binary and source code distribution packages. */ #ifndef TC_HEADER_Core_Unix_CoreServiceResponse #define TC_HEADER_Core_Unix_CoreServiceResponse #include "Platform/Serializable.h" #include "Core/Core.h" namespace VeraCrypt { struct CoreServiceResponse : public Serializable { }; struct CheckFilesystemResponse : CoreServiceResponse { CheckFilesystemResponse () { } TC_SERIALIZABLE (CheckFilesystemResponse); }; struct DismountFilesystemResponse : CoreServiceResponse { DismountFilesystemResponse () { } TC_SERIALIZABLE (DismountFilesystemResponse); }; struct DismountVolumeResponse : CoreServiceResponse { DismountVolumeResponse () { } TC_SERIALIZABLE (DismountVolumeResponse); shared_ptr DismountedVolumeInfo; }; struct GetDeviceSectorSizeResponse : CoreServiceResponse { GetDeviceSectorSizeResponse () { } GetDeviceSectorSizeResponse (uint32 size) : Size (size) { } TC_SERIALIZABLE (GetDeviceSectorSizeResponse); uint32 Size; }; struct GetDeviceSizeResponse : CoreServiceResponse { GetDeviceSizeResponse () { } GetDeviceSizeResponse (uint64 size) : Size (size) { } TC_SERIALIZABLE (GetDeviceSizeResponse); uint64 Size; }; struct GetHostDevicesResponse : CoreServiceResponse { GetHostDevicesResponse () { } GetHostDevicesResponse (const HostDeviceList &hostDevices) : HostDevices (hostDevices) { } TC_SERIALIZABLE (GetHostDevicesResponse); HostDeviceList HostDevices; }; struct MountVolumeResponse : CoreServiceResponse { MountVolumeResponse () { } MountVolumeResponse (shared_ptr volumeInfo) : MountedVolumeInfo (volumeInfo) { } TC_SERIALIZABLE (MountVolumeResponse); shared_ptr MountedVolumeInfo; }; struct SetFileOwnerResponse : CoreServiceResponse { SetFileOwnerResponse () { } TC_SERIALIZABLE (SetFileOwnerResponse); }; } #endif // TC_HEADER_Core_Unix_CoreServiceResponse