| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | WslcSDKPrivate.cpp |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains the private WSL Container SDK implementations. |
| 12 | |
| 13 | --*/ |
| 14 | #include "precomp.h" |
| 15 | |
| 16 | #include "wslcsdkprivate.h" |
| 17 | |
| 18 | WslcSessionOptionsInternal* GetInternalType(WslcSessionSettings* settings) |
| 19 | { |
| 20 | return reinterpret_cast<WslcSessionOptionsInternal*>(settings); |
| 21 | } |
| 22 | |
| 23 | WslcContainerProcessOptionsInternal* GetInternalType(WslcProcessSettings* settings) |
| 24 | { |
| 25 | return reinterpret_cast<WslcContainerProcessOptionsInternal*>(settings); |
| 26 | } |
| 27 | |
| 28 | WslcContainerOptionsInternal* GetInternalType(WslcContainerSettings* settings) |
| 29 | { |
| 30 | return reinterpret_cast<WslcContainerOptionsInternal*>(settings); |
| 31 | } |
| 32 | |
| 33 | const WslcContainerOptionsInternal* GetInternalType(const WslcContainerSettings* settings) |
| 34 | { |
| 35 | return reinterpret_cast<const WslcContainerOptionsInternal*>(settings); |
| 36 | } |
| 37 | |
| 38 | WslcSessionImpl* GetInternalType(WslcSession handle) |
| 39 | { |
| 40 | return reinterpret_cast<WslcSessionImpl*>(handle); |
| 41 | } |
| 42 | |
| 43 | WslcCrashDumpSubscriptionImpl* GetInternalType(WslcCrashDumpSubscription handle) |
| 44 | { |
| 45 | return reinterpret_cast<WslcCrashDumpSubscriptionImpl*>(handle); |
| 46 | } |
| 47 | |
| 48 | WslcContainerImpl* GetInternalType(WslcContainer handle) |
| 49 | { |
| 50 | return reinterpret_cast<WslcContainerImpl*>(handle); |
| 51 | } |
| 52 | |
| 53 | WslcProcessImpl* GetInternalType(WslcProcess handle) |
| 54 | { |
| 55 | return reinterpret_cast<WslcProcessImpl*>(handle); |
| 56 | } |