Skip to content

Commit

Permalink
Refactor namespace and class names
Browse files Browse the repository at this point in the history
  • Loading branch information
regueiro committed Nov 23, 2014
1 parent 61baa21 commit 74dfd7d
Show file tree
Hide file tree
Showing 38 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion CCDWrapper/CCDWrapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CCDWrapper.cs" />
<Compile Include="Wrapper.cs" />
<Compile Include="Enum\D3DmtVideoSignalStandard.cs" />
<Compile Include="Enum\DisplayConfigDeviceInfoType.cs" />
<Compile Include="Enum\DisplayConfigFlags.cs" />
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/D3DmtVideoSignalStandard.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum D3DmdtVideoSignalStandard : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigDeviceInfoType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CCDWrapper.Enum
namespace CCD.Enum
{
public enum DisplayConfigDeviceInfoType : uint
{
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigFlags.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigFlags : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigModeInfoType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigModeInfoType : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigPixelFormat.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigPixelFormat : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigRotation.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigRotation : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigScaling.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigScaling : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigScanLineOrdering.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigScanLineOrdering : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigSourceStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigSourceStatus
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigTargetStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigTargetStatus : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigTopologyId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigTopologyId : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/DisplayConfigVideoOutputTechnology.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum DisplayConfigVideoOutputTechnology : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/QueryDisplayFlags.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum QueryDisplayFlags : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/SdcFlags.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace CCDWrapper.Enum
namespace CCD.Enum
{
[Flags]
public enum SdcFlags : uint
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Enum/StatusCode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CCDWrapper.Enum
namespace CCD.Enum
{
/// <summary>
/// Use this enum so that you don't have to hardcode magic values.
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/IDisplayConfigInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CCDWrapper
namespace CCD
{
/// <summary>
/// Just an contract.
Expand Down
12 changes: 6 additions & 6 deletions CCDWrapper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CCDWrapper")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("Wrapper")]
[assembly: AssemblyDescription("A wrapper for accessing the Windows Connecting and Configuring Displays API")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CCDWrapper")]
[assembly: AssemblyCompany("Santiago Regueiro, Erti-Chris Eelmaa")]
[assembly: AssemblyProduct("Wrapper")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfig2DRegion.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfig2DRegion
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigAdapterName.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DisplayConfigAdapterName : IDisplayConfigInfo
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigDeviceInfoHeader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigDeviceInfoHeader
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigModeInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Explicit)]
public struct DisplayConfigModeInfo
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigPathInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigPathInfo
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigPathSourceInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigPathSourceInfo
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigPathTargetInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigPathTargetInfo
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigPathWrap.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
/// <summary>
/// This class is used in order to wrap path and mode info.
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigRational.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigRational
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigSetTargetPersistence.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DisplayConfigSetTargetPersistence : IDisplayConfigInfo
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigSourceDeviceName.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DisplayConfigSourceDeviceName : IDisplayConfigInfo
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigSourceMode.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigSourceMode
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigTargetDeviceName.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct DisplayConfigTargetDeviceName : IDisplayConfigInfo
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigTargetDeviceNameFlags.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Explicit)]
public struct DisplayConfigTargetDeviceNameFlags
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigTargetMode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigTargetMode
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/DisplayConfigTargetPreferredMode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigTargetPreferredMode : IDisplayConfigInfo
Expand Down
4 changes: 2 additions & 2 deletions CCDWrapper/Struct/DisplayConfigVideoSignalInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCD.Enum;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct DisplayConfigVideoSignalInfo
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/LUID.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct Luid
Expand Down
2 changes: 1 addition & 1 deletion CCDWrapper/Struct/PointL.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace CCDWrapper.Struct
namespace CCD.Struct
{
[StructLayout(LayoutKind.Sequential)]
public struct PointL
Expand Down
8 changes: 4 additions & 4 deletions CCDWrapper/CCDWrapper.cs → CCDWrapper/Wrapper.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.Runtime.InteropServices;
using CCDWrapper.Enum;
using CCDWrapper.Struct;
using CCD.Enum;
using CCD.Struct;

namespace CCDWrapper
namespace CCD
{
// ReSharper disable once InconsistentNaming
public class CCDWrapper
public class Wrapper
{
[DllImport("User32.dll")]
public static extern StatusCode SetDisplayConfig(
Expand Down

0 comments on commit 74dfd7d

Please sign in to comment.