diff options
author | Marc-André Moreau <marcandre.moreau@gmail.com> | 2012-09-16 07:24:12 +0400 |
---|---|---|
committer | Marc-André Moreau <marcandre.moreau@gmail.com> | 2012-09-16 07:24:12 +0400 |
commit | a0491cac4debc6b132ef86aab9fcb9ff10a72467 (patch) | |
tree | 51e916e85db98859fb7ab0eed82d61d10639f258 /FreeRDP.Server | |
parent | 4f3ad304cbc6bc56bc0975df93d7479a9c39121c (diff) |
cleanup unused code
Diffstat (limited to 'FreeRDP.Server')
-rw-r--r-- | FreeRDP.Server/FreeRDP.Server.csproj | 55 | ||||
-rw-r--r-- | FreeRDP.Server/Properties/AssemblyInfo.cs | 36 | ||||
-rw-r--r-- | FreeRDP.Server/Server.cs | 27 | ||||
-rw-r--r-- | FreeRDP.Server/Windows.cs | 62 |
4 files changed, 180 insertions, 0 deletions
diff --git a/FreeRDP.Server/FreeRDP.Server.csproj b/FreeRDP.Server/FreeRDP.Server.csproj new file mode 100644 index 0000000..8050ff5 --- /dev/null +++ b/FreeRDP.Server/FreeRDP.Server.csproj @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.30703</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{509571ED-62AD-48D5-ADDE-ECC79FF87223}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>FreeRDP.Server</RootNamespace> + <AssemblyName>FreeRDP.Server</AssemblyName> + <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </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> + </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> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Server.cs" /> + <Compile Include="Windows.cs" /> + <Compile Include="Properties\AssemblyInfo.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 diff --git a/FreeRDP.Server/Properties/AssemblyInfo.cs b/FreeRDP.Server/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..69e9f1e --- /dev/null +++ b/FreeRDP.Server/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 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("FreeRDP.Server")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("FreeRDP.Server")] +[assembly: AssemblyCopyright("Copyright © 2012")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("08699bff-c8a0-4b77-8fc6-0d1065fdc331")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// 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")] diff --git a/FreeRDP.Server/Server.cs b/FreeRDP.Server/Server.cs new file mode 100644 index 0000000..50eeb92 --- /dev/null +++ b/FreeRDP.Server/Server.cs @@ -0,0 +1,27 @@ +/** + * FreeRDP: A Remote Desktop Protocol Implementation + * Abstract Server Interface + * + * Copyright 2011-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace FreeRDP.Server +{ + public abstract class Server + { + public abstract void Start(); + public abstract void Stop(); + } +} diff --git a/FreeRDP.Server/Windows.cs b/FreeRDP.Server/Windows.cs new file mode 100644 index 0000000..86f3eb5 --- /dev/null +++ b/FreeRDP.Server/Windows.cs @@ -0,0 +1,62 @@ +/** + * FreeRDP: A Remote Desktop Protocol Implementation + * Windows Server Interface + * + * Copyright 2011-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; +using System.Text; +using System.Runtime.InteropServices; + +namespace FreeRDP.Server +{ + public class Windows : Server + { + private IntPtr instance; + + [DllImport("libwfreerdp-server", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr wfreerdp_server_new(); + + [DllImport("libwfreerdp-server", CallingConvention = CallingConvention.Cdecl)] + public static extern void wfreerdp_server_start(IntPtr instance); + + [DllImport("libwfreerdp-server", CallingConvention = CallingConvention.Cdecl)] + public static extern void wfreerdp_server_stop(IntPtr instance); + + [DllImport("libwfreerdp-server", CallingConvention = CallingConvention.Cdecl)] + public static extern void wfreerdp_server_free(IntPtr instance); + + public Windows() + { + instance = wfreerdp_server_new(); + } + + ~Windows() + { + wfreerdp_server_free(instance); + } + + public override void Start() + { + wfreerdp_server_start(instance); + } + + public override void Stop() + { + wfreerdp_server_stop(instance); + } + } +} |