Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Debug
Release
*.user
*.ncb
*.suo
*.suo
.vs/
2 changes: 1 addition & 1 deletion HDHR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ref class HDHomeRun
hd = hdhomerun_device_create_from_str(static_cast<char*>(p.ToPointer()), NULL);
Marshal::FreeHGlobal(p);
uint32_t id = ::hdhomerun_device_get_device_id_requested(hd);
bool_t valid = ::hdhomerun_discover_validate_device_id(id);
bool valid = ::hdhomerun_discover_validate_device_id(id);

}

Expand Down
11 changes: 8 additions & 3 deletions HDHR.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C++ Express 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HDHR", "HDHR.vcproj", "{B7B17717-DA85-49FA-882A-3950C1CD4471}"
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2008
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HDHR", "HDHR.vcxproj", "{B7B17717-DA85-49FA-882A-3950C1CD4471}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -17,4 +19,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8672F0F2-BB2A-4288-811A-C645BCE65907}
EndGlobalSection
EndGlobal
132 changes: 132 additions & 0 deletions HDHR.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{B7B17717-DA85-49FA-882A-3950C1CD4471}</ProjectGuid>
<RootNamespace>HDHR</RootNamespace>
<Keyword>ManagedCProj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<CLRSupport>true</CLRSupport>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<CLRSupport>true</CLRSupport>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>15.0.26919.1</_ProjectFileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<IntDir>$(Configuration)\</IntDir>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<IntDir>$(Configuration)\</IntDir>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>./libhdhomerun;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsCpp</CompileAs>
</ClCompile>
<Link>
<AdditionalDependencies>ws2_32.lib;advapi32.lib;user32.lib;Iphlpapi.lib</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AssemblyDebug>true</AssemblyDebug>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>./libhdhomerun;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsCpp</CompileAs>
</ClCompile>
<Link>
<AdditionalDependencies>ws2_32.lib;advapi32.lib;user32.lib;Iphlpapi.lib</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<Reference Include="System">
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
</Reference>
</ItemGroup>
<ItemGroup>
<ClCompile Include="AssemblyInfo.cpp" />
<ClCompile Include="HDHR.cpp" />
<ClCompile Include="libhdhomerun\hdhomerun_channels.c" />
<ClCompile Include="libhdhomerun\hdhomerun_channelscan.c" />
<ClCompile Include="libhdhomerun\hdhomerun_control.c" />
<ClCompile Include="libhdhomerun\hdhomerun_debug.c" />
<ClCompile Include="libhdhomerun\hdhomerun_device.c" />
<ClCompile Include="libhdhomerun\hdhomerun_device_selector.c" />
<ClCompile Include="libhdhomerun\hdhomerun_discover.c" />
<ClCompile Include="libhdhomerun\hdhomerun_os_windows.c" />
<ClCompile Include="libhdhomerun\hdhomerun_pkt.c" />
<ClCompile Include="libhdhomerun\hdhomerun_sock_windows.c" />
<ClCompile Include="libhdhomerun\hdhomerun_video.c" />
<ClCompile Include="stdafx.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="libhdhomerun\hdhomerun.h" />
<ClInclude Include="libhdhomerun\hdhomerun_channels.h" />
<ClInclude Include="libhdhomerun\hdhomerun_channelscan.h" />
<ClInclude Include="libhdhomerun\hdhomerun_control.h" />
<ClInclude Include="libhdhomerun\hdhomerun_debug.h" />
<ClInclude Include="libhdhomerun\hdhomerun_device.h" />
<ClInclude Include="libhdhomerun\hdhomerun_device_selector.h" />
<ClInclude Include="libhdhomerun\hdhomerun_discover.h" />
<ClInclude Include="libhdhomerun\hdhomerun_os.h" />
<ClInclude Include="libhdhomerun\hdhomerun_os_windows.h" />
<ClInclude Include="libhdhomerun\hdhomerun_pkt.h" />
<ClInclude Include="libhdhomerun\hdhomerun_sock.h" />
<ClInclude Include="libhdhomerun\hdhomerun_types.h" />
<ClInclude Include="libhdhomerun\hdhomerun_video.h" />
<ClInclude Include="stdafx.h" />
</ItemGroup>
<ItemGroup>
<None Include="README" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
114 changes: 114 additions & 0 deletions HDHR.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
</Filter>
<Filter Include="libhdhomerun">
<UniqueIdentifier>{58bb5678-7ad1-4d0c-8cbb-cf1de67c1d9d}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="AssemblyInfo.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="HDHR.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_channels.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_channelscan.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_control.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_debug.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_device.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_device_selector.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_discover.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_os_windows.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_pkt.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_sock_windows.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
<ClCompile Include="libhdhomerun\hdhomerun_video.c">
<Filter>libhdhomerun</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_channels.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_channelscan.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_control.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_debug.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_device.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_device_selector.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_discover.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_os.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_os_windows.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_pkt.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_sock.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_types.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
<ClInclude Include="libhdhomerun\hdhomerun_video.h">
<Filter>libhdhomerun</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="README" />
</ItemGroup>
</Project>
20 changes: 4 additions & 16 deletions libhdhomerun/hdhomerun.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,19 @@
*
* Copyright © 2006-2010 Silicondust USA Inc. <www.silicondust.com>.
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception to the GNU Lesser General Public License,
* you may link, statically or dynamically, an application with a
* publicly distributed version of the Library to produce an
* executable file containing portions of the Library, and
* distribute that executable file under terms of your choice,
* without any of the additional requirements listed in clause 4 of
* the GNU Lesser General Public License.
*
* By "a publicly distributed version of the Library", we mean
* either the unmodified Library as distributed by Silicondust, or a
* modified version of the Library that is distributed under the
* conditions defined in the GNU Lesser General Public License.
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "hdhomerun_os.h"
Expand Down
Loading