changeset 24:87f5e19c4885

Make library more suitable for independent reuse
author Ivo Smits <Ivo@UCIS.nl>
date Mon, 15 Apr 2013 15:38:23 +0200
parents 644a923bca98
children 5d8fe6b2189c
files .hgignore Properties/AssemblyInfo.cs UCIS.Core.csproj UCIS.csproj
diffstat 4 files changed, 202 insertions(+), 195 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Mon Apr 15 15:38:23 2013 +0200
@@ -0,0 +1,7 @@
+syntax: glob
+bin/*
+obj/*
+UCIS.snk
+*.suo
+*.*proj.user
+UCIS.sln
--- a/Properties/AssemblyInfo.cs	Mon Apr 15 02:04:36 2013 +0200
+++ b/Properties/AssemblyInfo.cs	Mon Apr 15 15:38:23 2013 +0200
@@ -5,12 +5,12 @@
 // 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("UCIS")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("UCIS Class Library")]
+[assembly: AssemblyDescription("UCIS Class Library")]
 [assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UCIS")]
-[assembly: AssemblyCopyright("Copyright ©  2009")]
+[assembly: AssemblyCompany("UCIS")]
+[assembly: AssemblyProduct("UCIS Class Library")]
+[assembly: AssemblyCopyright("Copyright © Ivo Smits 2009-2013")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UCIS.Core.csproj	Mon Apr 15 15:38:23 2013 +0200
@@ -0,0 +1,190 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.30729</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{3200885C-E36B-400B-BE21-6209B47832E6}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>UCIS</RootNamespace>
+    <AssemblyName>UCIS.Core</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <SignAssembly>true</SignAssembly>
+    <AssemblyOriginatorKeyFile>UCIS.snk</AssemblyOriginatorKeyFile>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Management" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Cache.cs" />
+    <Compile Include="Cci\CciCommand.cs" />
+    <Compile Include="Database.cs" />
+    <None Include="DBReader.cs" />
+    <Compile Include="FBGUI.cs">
+      <SubType>Component</SubType>
+    </Compile>
+    <Compile Include="NaCl\APIv2.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_box\curve25519xsalsa20poly1305.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_core\hsalsa20.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_core\salsa20.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_hashblocks\sha512.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_hash\sha512.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_onetimeauth\poly1305.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_scalarmult\curve25519.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_secretbox\xsalsa20poly1305.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_sign\edwards25519sha512batch.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_stream\salsa20.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_stream\xsalsa20.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_verify\16.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\crypto_verify\32.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\Native.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="NaCl\randombytes.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Net\ConnectionList.cs" />
+    <Compile Include="Net\HTTP.cs" />
+    <Compile Include="Net\INetworkConnection.cs" />
+    <Compile Include="Net\TCPServer.cs" />
+    <Compile Include="Net\TCPStream.cs" />
+    <Compile Include="Net\WebSocketPacketStream.cs" />
+    <Compile Include="Pml\Channels\ActivePmlChannel.cs" />
+    <Compile Include="Pml\Channels\PassivePmlChannel.cs" />
+    <Compile Include="Pml\Channels\PmlChannel.cs" />
+    <None Include="Pml\Elements\Array.cs" />
+    <Compile Include="Pml\Elements\Binary.cs" />
+    <Compile Include="Pml\Elements\Collection.cs" />
+    <Compile Include="Pml\Elements\Dictionary.cs" />
+    <Compile Include="Pml\Elements\Element.cs" />
+    <Compile Include="Pml\Elements\Integer.cs" />
+    <None Include="Pml\Elements\Number.cs" />
+    <Compile Include="Pml\Elements\PmlNull.cs" />
+    <Compile Include="Pml\Elements\PmlString.cs" />
+    <Compile Include="Pml\Channels\IPmlChannel.cs" />
+    <Compile Include="Pml\IPmlCommunicator.cs" />
+    <Compile Include="Pml\IPmlRpc.cs" />
+    <None Include="Pml\LegacyPmlCommunicator.cs" />
+    <Compile Include="Pml\PmlBuilder.cs" />
+    <None Include="Pml\PmlCommunicator.cs" />
+    <None Include="UCIS.snk" />
+    <Compile Include="Pml\PmlCommunicator2.cs" />
+    <Compile Include="Pml\RW\PmlAmfRW.cs" />
+    <Compile Include="Pml\RW\PmlPHPRW.cs" />
+    <Compile Include="Pml\RW\PmlBinaryRW.cs" />
+    <Compile Include="Pml\RW\IPmlRW.cs" />
+    <Compile Include="Pml\PmlConnection.cs" />
+    <Compile Include="Pml\RW\PmlTextRW.cs" />
+    <Compile Include="Pml\RW\PmlXmlRW.cs" />
+    <Compile Include="Pml\Channels\TCPPmlChannel.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="ProtocolBuffers.cs" />
+    <Compile Include="Radio\Tuner.cs" />
+    <Compile Include="Remoting\RemotingManager.cs" />
+    <Compile Include="ThreadPool.cs" />
+    <Compile Include="USBLib\Communication\IUsbDevice.cs" />
+    <Compile Include="USBLib\Communication\IUsbDeviceRegistry.cs" />
+    <Compile Include="USBLib\Communication\LibUsb0\LibUsb0Registry.cs" />
+    <Compile Include="USBLib\Communication\LibUsb0\LibUsbDevice.cs" />
+    <Compile Include="USBLib\Communication\LibUsb0\Support.cs" />
+    <Compile Include="USBLib\Communication\LibUsb1\libusb1.cs" />
+    <Compile Include="USBLib\Communication\LibUsb1\LibUsb1Device.cs" />
+    <Compile Include="USBLib\Communication\LibUsb1\LibUsb1Registry.cs" />
+    <Compile Include="USBLib\Communication\LibUsbDotNet.cs" />
+    <Compile Include="USBLib\Communication\UsbControlRequestType.cs" />
+    <Compile Include="USBLib\Communication\UsbDescriptorType.cs" />
+    <Compile Include="USBLib\Communication\UsbInterface.cs" />
+    <Compile Include="USBLib\Communication\UsbPipeStream.cs" />
+    <Compile Include="USBLib\Communication\WindowsUsbDeviceRegistry.cs" />
+    <Compile Include="USBLib\Communication\WinUsb\WinUsbDevice.cs" />
+    <Compile Include="USBLib\Communication\WinUsb\WinUsbRegistry.cs" />
+    <Compile Include="USBLib\Descriptor\UsbDescriptor.cs" />
+    <Compile Include="USBLib\Internal\Windows\SetupApi.cs" />
+    <Compile Include="USBLib\Internal\Windows\UsbApi.cs" />
+    <Compile Include="USBLib\Internal\Windows\Win32Kernel.cs" />
+    <Compile Include="USBLib\Windows\Devices\DeviceNode.cs" />
+    <Compile Include="USBLib\Windows\USB\UsbBus.cs" />
+    <Compile Include="USBLib\Windows\USB\UsbController.cs" />
+    <Compile Include="USBLib\Windows\USB\UsbDevice.cs" />
+    <Compile Include="USBLib\Windows\USB\UsbHub.cs" />
+    <Compile Include="UTF8NoPreamble.cs" />
+    <Compile Include="Util\ArrayUtil.cs" />
+    <Compile Include="Util\AsyncResultBase.cs" />
+    <Compile Include="Util\AsyncStream.cs" />
+    <Compile Include="Util\CrossStream.cs" />
+    <Compile Include="Util\HoldStream.cs" />
+    <Compile Include="Util\PacketStream.cs" />
+    <Compile Include="Util\PipeStream.cs" />
+    <Compile Include="Util\PrebufferingStream.cs" />
+    <Compile Include="Util\QueuedPacketStream.cs" />
+    <Compile Include="VNCServer\IFramebuffer.cs" />
+    <Compile Include="VNCServer\VNCServer.cs" />
+    <Compile Include="Windows\ServiceManager.cs" />
+    <Compile Include="Xml\PolicyFile.cs" />
+    <Compile Include="Xml\Server.cs" />
+    <Compile Include="Xml\Socket.cs" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file
--- a/UCIS.csproj	Mon Apr 15 02:04:36 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,190 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>9.0.30729</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{3200885C-E36B-400B-BE21-6209B47832E6}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>UCIS</RootNamespace>
-    <AssemblyName>UCIS</AssemblyName>
-    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
-    <FileAlignment>512</FileAlignment>
-    <SignAssembly>true</SignAssembly>
-    <AssemblyOriginatorKeyFile>UCIS.snk</AssemblyOriginatorKeyFile>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>..\lib\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>..\lib\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Drawing" />
-    <Reference Include="System.Management" />
-    <Reference Include="System.Windows.Forms" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Cache.cs" />
-    <Compile Include="Cci\CciCommand.cs" />
-    <Compile Include="Database.cs" />
-    <None Include="DBReader.cs" />
-    <Compile Include="FBGUI.cs">
-      <SubType>Component</SubType>
-    </Compile>
-    <Compile Include="NaCl\APIv2.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_box\curve25519xsalsa20poly1305.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_core\hsalsa20.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_core\salsa20.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_hashblocks\sha512.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_hash\sha512.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_onetimeauth\poly1305.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_scalarmult\curve25519.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_secretbox\xsalsa20poly1305.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_sign\edwards25519sha512batch.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_stream\salsa20.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_stream\xsalsa20.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_verify\16.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\crypto_verify\32.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\Native.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="NaCl\randombytes.cs">
-      <SubType>Code</SubType>
-    </Compile>
-    <Compile Include="Net\ConnectionList.cs" />
-    <Compile Include="Net\HTTP.cs" />
-    <Compile Include="Net\INetworkConnection.cs" />
-    <Compile Include="Net\TCPServer.cs" />
-    <Compile Include="Net\TCPStream.cs" />
-    <Compile Include="Net\WebSocketPacketStream.cs" />
-    <Compile Include="Pml\Channels\ActivePmlChannel.cs" />
-    <Compile Include="Pml\Channels\PassivePmlChannel.cs" />
-    <Compile Include="Pml\Channels\PmlChannel.cs" />
-    <None Include="Pml\Elements\Array.cs" />
-    <Compile Include="Pml\Elements\Binary.cs" />
-    <Compile Include="Pml\Elements\Collection.cs" />
-    <Compile Include="Pml\Elements\Dictionary.cs" />
-    <Compile Include="Pml\Elements\Element.cs" />
-    <Compile Include="Pml\Elements\Integer.cs" />
-    <None Include="Pml\Elements\Number.cs" />
-    <Compile Include="Pml\Elements\PmlNull.cs" />
-    <Compile Include="Pml\Elements\PmlString.cs" />
-    <Compile Include="Pml\Channels\IPmlChannel.cs" />
-    <Compile Include="Pml\IPmlCommunicator.cs" />
-    <Compile Include="Pml\IPmlRpc.cs" />
-    <None Include="Pml\LegacyPmlCommunicator.cs" />
-    <Compile Include="Pml\PmlBuilder.cs" />
-    <None Include="Pml\PmlCommunicator.cs" />
-    <None Include="UCIS.snk" />
-    <Compile Include="Pml\PmlCommunicator2.cs" />
-    <Compile Include="Pml\RW\PmlAmfRW.cs" />
-    <Compile Include="Pml\RW\PmlPHPRW.cs" />
-    <Compile Include="Pml\RW\PmlBinaryRW.cs" />
-    <Compile Include="Pml\RW\IPmlRW.cs" />
-    <Compile Include="Pml\PmlConnection.cs" />
-    <Compile Include="Pml\RW\PmlTextRW.cs" />
-    <Compile Include="Pml\RW\PmlXmlRW.cs" />
-    <Compile Include="Pml\Channels\TCPPmlChannel.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="ProtocolBuffers.cs" />
-    <Compile Include="Radio\Tuner.cs" />
-    <Compile Include="Remoting\RemotingManager.cs" />
-    <Compile Include="ThreadPool.cs" />
-    <Compile Include="USBLib\Communication\IUsbDevice.cs" />
-    <Compile Include="USBLib\Communication\IUsbDeviceRegistry.cs" />
-    <Compile Include="USBLib\Communication\LibUsb0\LibUsb0Registry.cs" />
-    <Compile Include="USBLib\Communication\LibUsb0\LibUsbDevice.cs" />
-    <Compile Include="USBLib\Communication\LibUsb0\Support.cs" />
-    <Compile Include="USBLib\Communication\LibUsb1\libusb1.cs" />
-    <Compile Include="USBLib\Communication\LibUsb1\LibUsb1Device.cs" />
-    <Compile Include="USBLib\Communication\LibUsb1\LibUsb1Registry.cs" />
-    <Compile Include="USBLib\Communication\LibUsbDotNet.cs" />
-    <Compile Include="USBLib\Communication\UsbControlRequestType.cs" />
-    <Compile Include="USBLib\Communication\UsbDescriptorType.cs" />
-    <Compile Include="USBLib\Communication\UsbInterface.cs" />
-    <Compile Include="USBLib\Communication\UsbPipeStream.cs" />
-    <Compile Include="USBLib\Communication\WindowsUsbDeviceRegistry.cs" />
-    <Compile Include="USBLib\Communication\WinUsb\WinUsbDevice.cs" />
-    <Compile Include="USBLib\Communication\WinUsb\WinUsbRegistry.cs" />
-    <Compile Include="USBLib\Descriptor\UsbDescriptor.cs" />
-    <Compile Include="USBLib\Internal\Windows\SetupApi.cs" />
-    <Compile Include="USBLib\Internal\Windows\UsbApi.cs" />
-    <Compile Include="USBLib\Internal\Windows\Win32Kernel.cs" />
-    <Compile Include="USBLib\Windows\Devices\DeviceNode.cs" />
-    <Compile Include="USBLib\Windows\USB\UsbBus.cs" />
-    <Compile Include="USBLib\Windows\USB\UsbController.cs" />
-    <Compile Include="USBLib\Windows\USB\UsbDevice.cs" />
-    <Compile Include="USBLib\Windows\USB\UsbHub.cs" />
-    <Compile Include="UTF8NoPreamble.cs" />
-    <Compile Include="Util\ArrayUtil.cs" />
-    <Compile Include="Util\AsyncResultBase.cs" />
-    <Compile Include="Util\AsyncStream.cs" />
-    <Compile Include="Util\CrossStream.cs" />
-    <Compile Include="Util\HoldStream.cs" />
-    <Compile Include="Util\PacketStream.cs" />
-    <Compile Include="Util\PipeStream.cs" />
-    <Compile Include="Util\PrebufferingStream.cs" />
-    <Compile Include="Util\QueuedPacketStream.cs" />
-    <Compile Include="VNCServer\IFramebuffer.cs" />
-    <Compile Include="VNCServer\VNCServer.cs" />
-    <Compile Include="Windows\ServiceManager.cs" />
-    <Compile Include="Xml\PolicyFile.cs" />
-    <Compile Include="Xml\Server.cs" />
-    <Compile Include="Xml\Socket.cs" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
\ No newline at end of file