master
cpp 39 lines 770 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 ServiceVersion.cpp
8
9 Abstract:
10
11 This file contains the implementation of the WinRT wrapper for the WSLC SDK ServiceVersion class.
12
13 --*/
14
15 #include "precomp.h"
16 #include "ServiceVersion.h"
17 #include "Microsoft.WSL.Containers.ServiceVersion.g.cpp"
18
19 namespace winrt::Microsoft::WSL::Containers::implementation {
20 ServiceVersion::ServiceVersion(uint32_t major, uint32_t minor, uint32_t revision) :
21 m_major(major), m_minor(minor), m_revision(revision)
22 {
23 }
24
25 uint32_t ServiceVersion::Major()
26 {
27 return m_major;
28 }
29
30 uint32_t ServiceVersion::Minor()
31 {
32 return m_minor;
33 }
34
35 uint32_t ServiceVersion::Revision()
36 {
37 return m_revision;
38 }
39 } // namespace winrt::Microsoft::WSL::Containers::implementation