Compare commits
10 Commits
a5d06cbe58
...
aa827860d9
| Author | SHA1 | Date | |
|---|---|---|---|
| aa827860d9 | |||
| a167eca0b7 | |||
| 9ee1e52425 | |||
| 79c2527935 | |||
| 62f5ce3398 | |||
| b64be092a1 | |||
| 3f8fbdbf09 | |||
| 7867b6afd2 | |||
| c0899a0182 | |||
| e3d7a0128f |
153
.cproject
153
.cproject
@@ -1,153 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
||||
<macros>
|
||||
<stringMacro name="target" type="VALUE_TEXT" value="wiipair"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="${target}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112" name="Debug" parent="cdt.managedbuild.config.gnu.mingw.exe.debug">
|
||||
<folderInfo id="cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112." name="/" resourcePath="">
|
||||
<toolChain id="cdt.managedbuild.toolchain.gnu.mingw.exe.debug.1606459632" name="MinGW GCC" superClass="cdt.managedbuild.toolchain.gnu.mingw.exe.debug">
|
||||
<targetPlatform id="cdt.managedbuild.target.gnu.platform.mingw.exe.debug.1400801069" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.mingw.exe.debug"/>
|
||||
<builder buildPath="${workspace_loc:/Wiiscan/Debug}" id="cdt.managedbuild.tool.gnu.builder.mingw.base.1038745333" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CDT Internal Builder" superClass="cdt.managedbuild.tool.gnu.builder.mingw.base"/>
|
||||
<tool command="as" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="cdt.managedbuild.tool.gnu.assembler.mingw.exe.debug.312047017" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.exe.debug">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1633887679" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.467778333" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.exe.debug.480343089" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.exe.debug">
|
||||
<option id="gnu.cpp.compiler.mingw.exe.debug.option.optimization.level.1217318328" name="Optimization Level" superClass="gnu.cpp.compiler.mingw.exe.debug.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
|
||||
<option id="gnu.cpp.compiler.mingw.exe.debug.option.debugging.level.1686233059" name="Debug Level" superClass="gnu.cpp.compiler.mingw.exe.debug.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
|
||||
<option id="gnu.cpp.compiler.option.include.paths.1929858827" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/include}""/>
|
||||
</option>
|
||||
<option id="gnu.cpp.compiler.option.other.other.1746557196" name="Other flags" superClass="gnu.cpp.compiler.option.other.other" value="-c -fmessage-length=0 -fpermissive" valueType="string"/>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1020795710" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.exe.debug.226403212" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.exe.debug">
|
||||
<option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.mingw.exe.debug.option.optimization.level.805230373" name="Optimization Level" superClass="gnu.c.compiler.mingw.exe.debug.option.optimization.level" valueType="enumerated"/>
|
||||
<option id="gnu.c.compiler.mingw.exe.debug.option.debugging.level.958575927" name="Debug Level" superClass="gnu.c.compiler.mingw.exe.debug.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.15033032" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.exe.debug.1193975353" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.exe.debug"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.exe.debug.945221910" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.exe.debug">
|
||||
<option id="gnu.cpp.link.option.paths.1277553684" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/>
|
||||
</option>
|
||||
<option id="gnu.cpp.link.option.libs.683496236" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="bthprops"/>
|
||||
<listOptionValue builtIn="false" value="odbccp32"/>
|
||||
<listOptionValue builtIn="false" value="irprops"/>
|
||||
<listOptionValue builtIn="false" value="libcpmt"/>
|
||||
</option>
|
||||
<option id="gnu.cpp.link.option.flags.941494999" name="Linker flags" superClass="gnu.cpp.link.option.flags" value="" valueType="string"/>
|
||||
<option id="gnu.cpp.link.option.strip.132174675" name="Omit all symbol information (-s)" superClass="gnu.cpp.link.option.strip" value="false" valueType="boolean"/>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1294514710" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
|
||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
||||
</inputType>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="cdt.managedbuild.config.gnu.mingw.exe.release.1147005981">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.mingw.exe.release.1147005981" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
||||
<macros>
|
||||
<stringMacro name="target" type="VALUE_TEXT" value="wiipair"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactName="${target}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.mingw.exe.release.1147005981" name="Release" parent="cdt.managedbuild.config.gnu.mingw.exe.release">
|
||||
<folderInfo id="cdt.managedbuild.config.gnu.mingw.exe.release.1147005981." name="/" resourcePath="">
|
||||
<toolChain id="cdt.managedbuild.toolchain.gnu.mingw.exe.release.1457737133" name="MinGW GCC" superClass="cdt.managedbuild.toolchain.gnu.mingw.exe.release">
|
||||
<targetPlatform id="cdt.managedbuild.target.gnu.platform.mingw.exe.release.1320357259" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.mingw.exe.release"/>
|
||||
<builder buildPath="${workspace_loc:/Wiiscan/Release}" id="cdt.managedbuild.tool.gnu.builder.mingw.base.1900936223" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CDT Internal Builder" superClass="cdt.managedbuild.tool.gnu.builder.mingw.base"/>
|
||||
<tool command="as" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="cdt.managedbuild.tool.gnu.assembler.mingw.exe.release.1320132974" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.exe.release">
|
||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.2118467120" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.24300882" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/>
|
||||
<tool command="g++" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.exe.release.1597340797" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.exe.release">
|
||||
<option id="gnu.cpp.compiler.mingw.exe.release.option.optimization.level.434289127" name="Optimization Level" superClass="gnu.cpp.compiler.mingw.exe.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
|
||||
<option id="gnu.cpp.compiler.mingw.exe.release.option.debugging.level.925028123" name="Debug Level" superClass="gnu.cpp.compiler.mingw.exe.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
|
||||
<option id="gnu.cpp.compiler.option.include.paths.1857921938" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/include}""/>
|
||||
</option>
|
||||
<option id="gnu.cpp.compiler.option.other.other.1784522890" name="Other flags" superClass="gnu.cpp.compiler.option.other.other" value="-c -fmessage-length=0 -fpermissive" valueType="string"/>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1090014067" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.exe.release.481111125" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.exe.release">
|
||||
<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.mingw.exe.release.option.optimization.level.1533075923" name="Optimization Level" superClass="gnu.c.compiler.mingw.exe.release.option.optimization.level" valueType="enumerated"/>
|
||||
<option id="gnu.c.compiler.mingw.exe.release.option.debugging.level.1946013826" name="Debug Level" superClass="gnu.c.compiler.mingw.exe.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1764704290" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
|
||||
</tool>
|
||||
<tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.exe.release.98347709" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.exe.release"/>
|
||||
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.exe.release.1801877662" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.exe.release">
|
||||
<option id="gnu.cpp.link.option.libs.1604900232" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="bthprops"/>
|
||||
<listOptionValue builtIn="false" value="odbccp32"/>
|
||||
<listOptionValue builtIn="false" value="irprops"/>
|
||||
<listOptionValue builtIn="false" value="libcpmt"/>
|
||||
</option>
|
||||
<option id="gnu.cpp.link.option.paths.1267841202" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/>
|
||||
</option>
|
||||
<option id="gnu.cpp.link.option.flags.755517020" name="Linker flags" superClass="gnu.cpp.link.option.flags" value="" valueType="string"/>
|
||||
<option id="gnu.cpp.link.option.strip.1519066152" name="Omit all symbol information (-s)" superClass="gnu.cpp.link.option.strip" value="false" valueType="boolean"/>
|
||||
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1431555461" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
|
||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
||||
</inputType>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="Wiiscan.cdt.managedbuild.target.gnu.mingw.exe.1693973787" name="Executable" projectType="cdt.managedbuild.target.gnu.mingw.exe"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112;cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112.;cdt.managedbuild.tool.gnu.cpp.compiler.mingw.exe.debug.480343089;cdt.managedbuild.tool.gnu.cpp.compiler.input.1020795710">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.exe.release.1147005981;cdt.managedbuild.config.gnu.mingw.exe.release.1147005981.;cdt.managedbuild.tool.gnu.cpp.compiler.mingw.exe.release.1597340797;cdt.managedbuild.tool.gnu.cpp.compiler.input.1090014067">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112;cdt.managedbuild.config.gnu.mingw.exe.debug.1313294112.;cdt.managedbuild.tool.gnu.c.compiler.mingw.exe.debug.226403212;cdt.managedbuild.tool.gnu.c.compiler.input.15033032">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.mingw.exe.release.1147005981;cdt.managedbuild.config.gnu.mingw.exe.release.1147005981.;cdt.managedbuild.tool.gnu.c.compiler.mingw.exe.release.481111125;cdt.managedbuild.tool.gnu.c.compiler.input.1764704290">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
|
||||
<storageModule moduleId="refreshScope" versionNumber="1">
|
||||
<resource resourceType="PROJECT" workspacePath="/Wiiscan"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
</cproject>
|
||||
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
.gradle
|
||||
.settings
|
||||
.classpath
|
||||
.project
|
||||
cproject
|
||||
build
|
||||
bin
|
||||
71
.project
71
.project
@@ -1,71 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Wiipair</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
<dictionary>
|
||||
<key>?name?</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.append_environment</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildArguments</key>
|
||||
<value></value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildCommand</key>
|
||||
<value>make</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildLocation</key>
|
||||
<value>${workspace_loc:/Wiiscan/Release}</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.contents</key>
|
||||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
|
||||
<value>false</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.stopOnError</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
Binary file not shown.
619
LICENSE
Normal file
619
LICENSE
Normal file
@@ -0,0 +1,619 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
1
README.md
Normal file
1
README.md
Normal file
@@ -0,0 +1 @@
|
||||
Based on <https://www.richlynch.com/2009/11/18/permanently-pair-wiimotewii-balance-board/>.
|
||||
Binary file not shown.
60
build.gradle
Normal file
60
build.gradle
Normal file
@@ -0,0 +1,60 @@
|
||||
apply plugin: 'cpp'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
group = 'com.github.boukefalos'
|
||||
archivesBaseName = 'wiipair'
|
||||
version = '0.1'
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.12'
|
||||
}
|
||||
uploadArchives {
|
||||
repositories.mavenDeployer {
|
||||
repository(url: uri('.maven'))
|
||||
}
|
||||
}
|
||||
|
||||
model {
|
||||
platforms {
|
||||
windows_i386 {
|
||||
architecture 'i386'
|
||||
operatingSystem 'windows'
|
||||
}
|
||||
windows_amd64 {
|
||||
architecture 'amd64'
|
||||
operatingSystem 'windows'
|
||||
}
|
||||
}
|
||||
toolChains {
|
||||
visualCpp(VisualCpp)
|
||||
}
|
||||
repositories {
|
||||
libs(PrebuiltLibraries) {
|
||||
bthprops {
|
||||
binaries.withType(StaticLibraryBinary) {
|
||||
staticLibraryFile = file("lib/${targetPlatform.name}/bthprops.lib")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
executables {
|
||||
main {
|
||||
baseName project.archivesBaseName
|
||||
}
|
||||
all {
|
||||
binaries.all {
|
||||
lib library: 'bthprops', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(Upload) {
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
repository(url: uri('.maven'))
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#Sat Nov 29 18:39:19 GMT 2014
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip
|
||||
164
gradlew
vendored
Normal file
164
gradlew
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn ( ) {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die ( ) {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
esac
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched.
|
||||
if $cygwin ; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
fi
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >&-
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >&-
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
||||
90
gradlew.bat
vendored
Normal file
90
gradlew.bat
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windowz variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
goto execute
|
||||
|
||||
:4NT_args
|
||||
@rem Get arguments from the 4NT Shell from JP Software
|
||||
set CMD_LINE_ARGS=%$
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
File diff suppressed because it is too large
Load Diff
858
include/bthdef.h
858
include/bthdef.h
@@ -1,858 +0,0 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2000 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
bthdef.h
|
||||
|
||||
Abstract:
|
||||
|
||||
This module contains the Bluetooth common structures and definitions
|
||||
|
||||
Author:
|
||||
|
||||
Notes:
|
||||
|
||||
Environment:
|
||||
|
||||
Kernel mode only
|
||||
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef __BTHDEF_H__
|
||||
#define __BTHDEF_H__
|
||||
|
||||
#ifndef GUID_DEFS_ONLY
|
||||
#ifndef NO_BTHSDPDEF_INC
|
||||
#include "bthsdpdef.h"
|
||||
#endif // NO_BTHSDPDEF_INC
|
||||
#endif // GUID_DEFS_ONLY
|
||||
|
||||
#ifndef NO_GUID_DEFS
|
||||
|
||||
// {0850302A-B344-4fda-9BE9-90576B8D46F0}
|
||||
DEFINE_GUID(GUID_BTHPORT_DEVICE_INTERFACE, 0x850302a, 0xb344, 0x4fda, 0x9b, 0xe9, 0x90, 0x57, 0x6b, 0x8d, 0x46, 0xf0);
|
||||
|
||||
// {EA3B5B82-26EE-450E-B0D8-D26FE30A3869}
|
||||
DEFINE_GUID(GUID_BLUETOOTH_RADIO_IN_RANGE, 0xea3b5b82, 0x26ee, 0x450e, 0xb0, 0xd8, 0xd2, 0x6f, 0xe3, 0x0a, 0x38, 0x69);
|
||||
|
||||
// {E28867C9-C2AA-4CED-B969-4570866037C4}
|
||||
DEFINE_GUID(GUID_BLUETOOTH_RADIO_OUT_OF_RANGE, 0xe28867c9, 0xc2aa, 0x4ced, 0xb9, 0x69, 0x45, 0x70, 0x86, 0x60, 0x37, 0xc4);
|
||||
|
||||
// BD198B7C-24AB-4B9A-8C0D-A8EA8349AA16
|
||||
DEFINE_GUID(GUID_BLUETOOTH_PIN_REQUEST, 0xbd198b7c, 0x24ab, 0x4b9a, 0x8c, 0x0d, 0xa8, 0xea, 0x83, 0x49, 0xaa, 0x16);
|
||||
|
||||
// {7EAE4030-B709-4AA8-AC55-E953829C9DAA}
|
||||
DEFINE_GUID(GUID_BLUETOOTH_L2CAP_EVENT, 0x7eae4030, 0xb709, 0x4aa8, 0xac, 0x55, 0xe9, 0x53, 0x82, 0x9c, 0x9d, 0xaa);
|
||||
|
||||
// {FC240062-1541-49BE-B463-84C4DCD7BF7F}
|
||||
DEFINE_GUID(GUID_BLUETOOTH_HCI_EVENT, 0xfc240062, 0x1541, 0x49be, 0xb4, 0x63, 0x84, 0xc4, 0xdc, 0xd7, 0xbf, 0x7f);
|
||||
|
||||
//
|
||||
// Bluetooth base UUID for service discovery
|
||||
//
|
||||
DEFINE_GUID(Bluetooth_Base_UUID, 0x00000000, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
|
||||
//
|
||||
// UUID for the root of the browse group list
|
||||
//
|
||||
|
||||
DEFINE_GUID(SDP_PROTOCOL_UUID, 0x00000001, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(UDP_PROTOCOL_UUID, 0x00000002, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(RFCOMM_PROTOCOL_UUID, 0x00000003, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(TCP_PROTOCOL_UUID, 0x00000004, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(TCSBIN_PROTOCOL_UUID, 0x00000005, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(TCSAT_PROTOCOL_UUID, 0x00000006, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(OBEX_PROTOCOL_UUID, 0x00000008, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(IP_PROTOCOL_UUID, 0x00000009, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(FTP_PROTOCOL_UUID, 0x0000000A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HTTP_PROTOCOL_UUID, 0x0000000C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(WSP_PROTOCOL_UUID, 0x0000000E, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(BNEP_PROTOCOL_UUID, 0x0000000F, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(UPNP_PROTOCOL_UUID, 0x00000010, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HID_PROTOCOL_UUID, 0x00000011, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HCCC_PROTOCOL_UUID, 0x00000012, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HCDC_PROTOCOL_UUID, 0x00000014, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HN_PROTOCOL_UUID, 0x00000016, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AVCTP_PROTOCOL_UUID, 0x00000017, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AVDTP_PROTOCOL_UUID, 0x00000019, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(CMPT_PROTOCOL_UUID, 0x0000001B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(UDI_C_PLANE_PROTOCOL_UUID, 0x0000001D, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(L2CAP_PROTOCOL_UUID, 0x00000100, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
|
||||
#define SDP_PROTOCOL_UUID16 (0x0001)
|
||||
#define UDP_PROTOCOL_UUID16 (0x0002)
|
||||
#define RFCOMM_PROTOCOL_UUID16 (0x0003)
|
||||
#define TCP_PROTOCOL_UUID16 (0x0004)
|
||||
#define TCSBIN_PROTOCOL_UUID16 (0x0005)
|
||||
#define TCSAT_PROTOCOL_UUID16 (0x0006)
|
||||
#define OBEX_PROTOCOL_UUID16 (0x0008)
|
||||
#define IP_PROTOCOL_UUID16 (0x0009)
|
||||
#define FTP_PROTOCOL_UUID16 (0x000A)
|
||||
#define HTTP_PROTOCOL_UUID16 (0x000C)
|
||||
#define WSP_PROTOCOL_UUID16 (0x000E)
|
||||
#define BNEP_PROTOCOL_UUID16 (0x000F)
|
||||
#define UPNP_PROTOCOL_UUID16 (0x0010)
|
||||
#define HID_PROTOCOL_UUID16 (0x0011)
|
||||
#define HCCC_PROTOCOL_UUID16 (0x0012)
|
||||
#define HCDC_PROTOCOL_UUID16 (0x0014)
|
||||
#define HCN_PROTOCOL_UUID16 (0x0016)
|
||||
#define AVCTP_PROTOCOL_UUID16 (0x0017)
|
||||
#define AVDTP_PROTOCOL_UUID16 (0x0019)
|
||||
#define CMPT_PROTOCOL_UUID16 (0x001B)
|
||||
#define UDI_C_PLANE_PROTOCOL_UUID16 (0x001D)
|
||||
#define L2CAP_PROTOCOL_UUID16 (0x0100)
|
||||
|
||||
DEFINE_GUID(ServiceDiscoveryServerServiceClassID_UUID, 0x00001000, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(BrowseGroupDescriptorServiceClassID_UUID, 0x00001001, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(PublicBrowseGroupServiceClass_UUID, 0x00001002, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(SerialPortServiceClass_UUID, 0x00001101, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(LANAccessUsingPPPServiceClass_UUID, 0x00001102, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(DialupNetworkingServiceClass_UUID, 0x00001103, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(IrMCSyncServiceClass_UUID, 0x00001104, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(OBEXObjectPushServiceClass_UUID, 0x00001105, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(OBEXFileTransferServiceClass_UUID, 0x00001106, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(IrMCSyncCommandServiceClass_UUID, 0x00001107, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HeadsetServiceClass_UUID, 0x00001108, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(CordlessTelephonyServiceClass_UUID, 0x00001109, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AudioSourceServiceClass_UUID, 0x0000110A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AudioSinkServiceClass_UUID, 0x0000110B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AVRemoteControlTargetServiceClass_UUID, 0x0000110C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AdvancedAudioDistributionServiceClass_UUID,0x0000110D, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AVRemoteControlServiceClass_UUID, 0x0000110E, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(VideoConferencingServiceClass_UUID, 0x0000110F, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(IntercomServiceClass_UUID, 0x00001110, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(FaxServiceClass_UUID, 0x00001111, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HeadsetAudioGatewayServiceClass_UUID, 0x00001112, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(WAPServiceClass_UUID, 0x00001113, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(WAPClientServiceClass_UUID, 0x00001114, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(PANUServiceClass_UUID, 0x00001115, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(NAPServiceClass_UUID, 0x00001116, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(GNServiceClass_UUID, 0x00001117, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(DirectPrintingServiceClass_UUID, 0x00001118, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(ReferencePrintingServiceClass_UUID, 0x00001119, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(ImagingServiceClass_UUID, 0x0000111A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(ImagingResponderServiceClass_UUID, 0x0000111B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(ImagingAutomaticArchiveServiceClass_UUID, 0x0000111C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(ImagingReferenceObjectsServiceClass_UUID, 0x0000111D, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HandsfreeServiceClass_UUID, 0x0000111E, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HandsfreeAudioGatewayServiceClass_UUID, 0x0000111F, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(DirectPrintingReferenceObjectsServiceClass_UUID,
|
||||
0x00001120, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(ReflectedUIServiceClass_UUID, 0x00001121, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(BasicPringingServiceClass_UUID, 0x00001122, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(PrintingStatusServiceClass_UUID, 0x00001123, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HumanInterfaceDeviceServiceClass_UUID, 0x00001124, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HardcopyCableReplacementServiceClass_UUID, 0x00001125, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HCRPrintServiceClass_UUID, 0x00001126, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(HCRScanServiceClass_UUID, 0x00001127, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(CommonISDNAccessServiceClass_UUID, 0x00001128, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(VideoConferencingGWServiceClass_UUID, 0x00001129, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(UDIMTServiceClass_UUID, 0x0000112A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(UDITAServiceClass_UUID, 0x0000112B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(AudioVideoServiceClass_UUID, 0x0000112C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(PnPInformationServiceClass_UUID, 0x00001200, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(GenericNetworkingServiceClass_UUID, 0x00001201, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(GenericFileTransferServiceClass_UUID, 0x00001202, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(GenericAudioServiceClass_UUID, 0x00001203, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
DEFINE_GUID(GenericTelephonyServiceClass_UUID, 0x00001204, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
|
||||
|
||||
#define ServiceDiscoveryServerServiceClassID_UUID16 (0x1000)
|
||||
#define BrowseGroupDescriptorServiceClassID_UUID16 (0x1001)
|
||||
#define PublicBrowseGroupServiceClassID_UUID16 (0x1002)
|
||||
#define SerialPortServiceClassID_UUID16 (0x1101)
|
||||
#define LANAccessUsingPPPServiceClassID_UUID16 (0x1102)
|
||||
#define DialupNetworkingServiceClassID_UUID16 (0x1103)
|
||||
#define IrMCSyncServiceClassID_UUID16 (0x1104)
|
||||
#define OBEXObjectPushServiceClassID_UUID16 (0x1105)
|
||||
#define OBEXFileTransferServiceClassID_UUID16 (0x1106)
|
||||
#define IrMcSyncCommandServiceClassID_UUID16 (0x1107)
|
||||
#define HeadsetServiceClassID_UUID16 (0x1108)
|
||||
#define CordlessServiceClassID_UUID16 (0x1109)
|
||||
#define AudioSourceServiceClassID_UUID16 (0x110A)
|
||||
#define AudioSinkSourceServiceClassID_UUID16 (0x110B)
|
||||
#define AVRemoteControlTargetServiceClassID_UUID16 (0x110C)
|
||||
#define AdvancedAudioDistributionServiceClassID_UUID16 (0x110D)
|
||||
#define AVRemoteControlServiceClassID_UUID16 (0x110E)
|
||||
#define VideoConferencingServiceClassID_UUID16 (0x110F)
|
||||
#define IntercomServiceClassID_UUID16 (0x1110)
|
||||
#define FaxServiceClassID_UUID16 (0x1111)
|
||||
#define HeadsetAudioGatewayServiceClassID_UUID16 (0x1112)
|
||||
#define WAPServiceClassID_UUID16 (0x1113)
|
||||
#define WAPClientServiceClassID_UUID16 (0x1114)
|
||||
#define PANUServiceClassID_UUID16 (0x1115)
|
||||
#define NAPServiceClassID_UUID16 (0x1116)
|
||||
#define GNServiceClassID_UUID16 (0x1117)
|
||||
#define DirectPrintingServiceClassID_UUID16 (0x1118)
|
||||
#define ReferencePrintingServiceClassID_UUID16 (0x1119)
|
||||
#define ImagingServiceClassID_UUID16 (0x111A)
|
||||
#define ImagingResponderServiceClassID_UUID16 (0x111B)
|
||||
#define ImagingAutomaticArchiveServiceClassID_UUID16 (0x111C)
|
||||
#define ImagingReferenceObjectsServiceClassID_UUID16 (0x111D)
|
||||
#define HandsfreeServiceClassID_UUID16 (0x111E)
|
||||
#define HandsfreeAudioGatewayServiceClassID_UUID16 (0x111F)
|
||||
#define DirectPrintingReferenceObjectsServiceClassID_UUID16 \
|
||||
(0x1120)
|
||||
#define ReflectsUIServiceClassID_UUID16 (0x1121)
|
||||
#define BasicPrintingServiceClassID_UUID16 (0x1122)
|
||||
#define PrintingStatusServiceClassID_UUID16 (0x1123)
|
||||
#define HumanInterfaceDeviceServiceClassID_UUID16 (0x1124)
|
||||
#define HardcopyCableReplacementServiceClassID_UUID16 (0x1125)
|
||||
#define HCRPrintServiceClassID_UUID16 (0x1126)
|
||||
#define HCRScanServiceClassID_UUID16 (0x1127)
|
||||
#define CommonISDNAccessServiceClass_UUID16 (0x1128)
|
||||
#define VideoConferencingGWServiceClass_UUID16 (0x1129)
|
||||
#define UDIMTServiceClass_UUID16 (0x112A)
|
||||
#define UDITAServiceClass_UUID16 (0x112B)
|
||||
#define AudioVideoServiceClass_UUID16 (0x112C)
|
||||
|
||||
#define PnPInformationServiceClassID_UUID16 (0x1200)
|
||||
#define GenericNetworkingServiceClassID_UUID16 (0x1201)
|
||||
#define GenericFileTransferServiceClassID_UUID16 (0x1202)
|
||||
#define GenericAudioServiceClassID_UUID16 (0x1203)
|
||||
#define GenericTelephonyServiceClassID_UUID16 (0x1204)
|
||||
|
||||
#endif // NO_GUID_DEFS
|
||||
|
||||
#ifndef GUID_DEFS_ONLY
|
||||
|
||||
//
|
||||
// max length of device friendly name.
|
||||
//
|
||||
#define BTH_MAX_NAME_SIZE (248)
|
||||
|
||||
#define BTH_MAX_PIN_SIZE (16)
|
||||
#define BTH_LINK_KEY_LENGTH (16)
|
||||
|
||||
#define BTH_MFG_ERICSSON (0)
|
||||
#define BTH_MFG_NOKIA (1)
|
||||
#define BTH_MFG_INTEL (2)
|
||||
#define BTH_MFG_IBM (3)
|
||||
#define BTH_MFG_TOSHIBA (4)
|
||||
#define BTH_MFG_3COM (5)
|
||||
#define BTH_MFG_MICROSOFT (6)
|
||||
#define BTH_MFG_LUCENT (7)
|
||||
#define BTH_MFG_MOTOROLA (8)
|
||||
#define BTH_MFG_INFINEON (9)
|
||||
#define BTH_MFG_CSR (10)
|
||||
#define BTH_MFG_SILICONWAVE (11)
|
||||
#define BTH_MFG_DIGIANSWER (12)
|
||||
#define BTH_MFG_TI (13)
|
||||
#define BTH_MFG_PARTHUS (14)
|
||||
#define BTH_MFG_BROADCOM (15)
|
||||
#define BTH_MFG_MITEL (16)
|
||||
#define BTH_MFG_WIDCOMM (17)
|
||||
#define BTH_MFG_ZEEVO (18)
|
||||
#define BTH_MFG_ATMEL (19)
|
||||
#define BTH_MFG_MITSIBUSHI (20)
|
||||
#define BTH_MFG_RTX_TELECOM (21)
|
||||
#define BTH_MFG_KC_TECHNOLOGY (22)
|
||||
#define BTH_MFG_NEWLOGIC (23)
|
||||
#define BTH_MFG_TRANSILICA (24)
|
||||
#define BTH_MFG_ROHDE_SCHWARZ (25)
|
||||
#define BTH_MFG_TTPCOM (26)
|
||||
#define BTH_MFG_SIGNIA (27)
|
||||
#define BTH_MFG_CONEXANT (28)
|
||||
#define BTH_MFG_QUALCOMM (29)
|
||||
#define BTH_MFG_INVENTEL (30)
|
||||
#define BTH_MFG_AVM_BERLIN (31)
|
||||
#define BTH_MFG_BANDSPEED (32)
|
||||
#define BTH_MFG_MANSELLA (33)
|
||||
#define BTH_MFG_NEC (34)
|
||||
#define BTH_MFG_WAVEPLUS_TECHNOLOGY_CO (35)
|
||||
#define BTH_MFG_ALCATEL (36)
|
||||
#define BTH_MFG_PHILIPS_SEMICONDUCTOR (37)
|
||||
#define BTH_MFG_C_TECHNOLOGIES (38)
|
||||
#define BTH_MFG_OPEN_INTERFACE (39)
|
||||
#define BTH_MFG_RF_MICRO_DEVICES (40)
|
||||
#define BTH_MFG_HITACHI (41)
|
||||
#define BTH_MFG_SYMBOL_TECHNOLOGIES (42)
|
||||
#define BTH_MFG_TENOVIS (43)
|
||||
#define BTH_MFG_MACRONIX_INTERNATIONAL (44)
|
||||
#define BTH_MFG_INTERNAL_USE (65535)
|
||||
|
||||
typedef ULONGLONG BTH_ADDR, *PBTH_ADDR;
|
||||
typedef ULONG BTH_COD, *PBTH_COD;
|
||||
typedef ULONG BTH_LAP, *PBTH_LAP;
|
||||
|
||||
#define BTH_ADDR_NULL ((ULONGLONG) 0x0000000000000000)
|
||||
|
||||
#define NAP_MASK ((ULONGLONG) 0xFFFF00000000)
|
||||
#define SAP_MASK ((ULONGLONG) 0x0000FFFFFFFF)
|
||||
|
||||
#define NAP_BIT_OFFSET (8 * 4)
|
||||
#define SAP_BIT_OFFSET (0)
|
||||
|
||||
#define GET_NAP(_bth_addr) ((USHORT) (((_bth_addr) & NAP_MASK) >> NAP_BIT_OFFSET))
|
||||
#define GET_SAP(_bth_addr) ((ULONG) (((_bth_addr) & SAP_MASK) >> SAP_BIT_OFFSET))
|
||||
|
||||
#define SET_NAP(_nap) (((ULONGLONG) ((USHORT) (_nap))) << NAP_BIT_OFFSET)
|
||||
#define SET_SAP(_sap) (((ULONGLONG) ((ULONG) (_sap))) << SAP_BIT_OFFSET)
|
||||
|
||||
#define SET_NAP_SAP(_nap, _sap) (SET_NAP(_nap) | SET_SAP(_sap))
|
||||
|
||||
#define COD_FORMAT_BIT_OFFSET (0)
|
||||
#define COD_MINOR_BIT_OFFSET (2)
|
||||
#define COD_MAJOR_BIT_OFFSET (8 * 1)
|
||||
#define COD_SERVICE_BIT_OFFSET (8 * 1 + 5)
|
||||
|
||||
#define COD_FORMAT_MASK (0x000003)
|
||||
#define COD_MINOR_MASK (0x0000FC)
|
||||
#define COD_MAJOR_MASK (0x001F00)
|
||||
#define COD_SERVICE_MASK (0xFFE000)
|
||||
|
||||
|
||||
#define GET_COD_FORMAT(_cod) ( (_cod) & COD_FORMAT_MASK >> COD_FORMAT_BIT_OFFSET)
|
||||
#define GET_COD_MINOR(_cod) (((_cod) & COD_MINOR_MASK) >> COD_MINOR_BIT_OFFSET)
|
||||
#define GET_COD_MAJOR(_cod) (((_cod) & COD_MAJOR_MASK) >> COD_MAJOR_BIT_OFFSET)
|
||||
#define GET_COD_SERVICE(_cod) (((_cod) & COD_SERVICE_MASK) >> COD_SERVICE_BIT_OFFSET)
|
||||
|
||||
#define SET_COD_MINOR(_cod, _minor) (_cod) = ((_cod) & ~COD_MINOR_MASK) | ((_minor) << COD_MINOR_BIT_OFFSET)
|
||||
#define SET_COD_MAJOR(_cod, _major) (_cod) = ((_cod) & ~COD_MAJOR_MASK) | ((_major) << COD_MAJOR_BIT_OFFSET)
|
||||
#define SET_COD_SERVICE(_cod, _service) (_cod) = ((_cod) & ~COD_SERVICE_MASK) | ((_service) << COD_SERVICE_BIT_OFFSET)
|
||||
|
||||
#define COD_VERSION (0x0)
|
||||
|
||||
#define COD_SERVICE_LIMITED (0x0001)
|
||||
#define COD_SERVICE_POSITIONING (0x0008)
|
||||
#define COD_SERVICE_NETWORKING (0x0010)
|
||||
#define COD_SERVICE_RENDERING (0x0020)
|
||||
#define COD_SERVICE_CAPTURING (0x0040)
|
||||
#define COD_SERVICE_OBJECT_XFER (0x0080)
|
||||
#define COD_SERVICE_AUDIO (0x0100)
|
||||
#define COD_SERVICE_TELEPHONY (0x0200)
|
||||
#define COD_SERVICE_INFORMATION (0x0400)
|
||||
|
||||
#define COD_SERVICE_VALID_MASK (COD_SERVICE_LIMITED | \
|
||||
COD_SERVICE_POSITIONING | \
|
||||
COD_SERVICE_NETWORKING | \
|
||||
COD_SERVICE_RENDERING | \
|
||||
COD_SERVICE_CAPTURING | \
|
||||
COD_SERVICE_OBJECT_XFER |\
|
||||
COD_SERVICE_AUDIO |\
|
||||
COD_SERVICE_TELEPHONY |\
|
||||
COD_SERVICE_INFORMATION)
|
||||
|
||||
#define COD_SERVICE_MAX_COUNT (9)
|
||||
|
||||
//
|
||||
// Major class codes
|
||||
//
|
||||
#define COD_MAJOR_MISCELLANEOUS (0x00)
|
||||
#define COD_MAJOR_COMPUTER (0x01)
|
||||
#define COD_MAJOR_PHONE (0x02)
|
||||
#define COD_MAJOR_LAN_ACCESS (0x03)
|
||||
#define COD_MAJOR_AUDIO (0x04)
|
||||
#define COD_MAJOR_PERIPHERAL (0x05)
|
||||
#define COD_MAJOR_IMAGING (0x06)
|
||||
#define COD_MAJOR_UNCLASSIFIED (0x1F)
|
||||
|
||||
//
|
||||
// Minor class codes specific to each major class
|
||||
//
|
||||
#define COD_COMPUTER_MINOR_UNCLASSIFIED (0x00)
|
||||
#define COD_COMPUTER_MINOR_DESKTOP (0x01)
|
||||
#define COD_COMPUTER_MINOR_SERVER (0x02)
|
||||
#define COD_COMPUTER_MINOR_LAPTOP (0x03)
|
||||
#define COD_COMPUTER_MINOR_HANDHELD (0x04)
|
||||
#define COD_COMPUTER_MINOR_PALM (0x05)
|
||||
#define COD_COMPUTER_MINOR_WEARABLE (0x06)
|
||||
|
||||
#define COD_PHONE_MINOR_UNCLASSIFIED (0x00)
|
||||
#define COD_PHONE_MINOR_CELLULAR (0x01)
|
||||
#define COD_PHONE_MINOR_CORDLESS (0x02)
|
||||
#define COD_PHONE_MINOR_SMART (0x03)
|
||||
#define COD_PHONE_MINOR_WIRED_MODEM (0x04)
|
||||
|
||||
#define COD_AUDIO_MINOR_UNCLASSIFIED (0x00)
|
||||
#define COD_AUDIO_MINOR_HEADSET (0x01)
|
||||
#define COD_AUDIO_MINOR_HANDS_FREE (0x02)
|
||||
#define COD_AUDIO_MINOR_HEADSET_HANDS_FREE (0x03)
|
||||
#define COD_AUDIO_MINOR_MICROPHONE (0x04)
|
||||
#define COD_AUDIO_MINOR_LOUDSPEAKER (0x05)
|
||||
#define COD_AUDIO_MINOR_HEADPHONES (0x06)
|
||||
#define COD_AUDIO_MINOR_PORTABLE_AUDIO (0x07)
|
||||
#define COD_AUDIO_MINOR_CAR_AUDIO (0x08)
|
||||
#define COD_AUDIO_MINOR_SET_TOP_BOX (0x09)
|
||||
#define COD_AUDIO_MINOR_HIFI_AUDIO (0x0A)
|
||||
#define COD_AUDIO_MINOR_VCR (0x0B)
|
||||
#define COD_AUDIO_MINOR_VIDEO_CAMERA (0x0C)
|
||||
#define COD_AUDIO_MINOR_CAMCORDER (0x0D)
|
||||
#define COD_AUDIO_MINOR_VIDEO_MONITOR (0x0E)
|
||||
#define COD_AUDIO_MINOR_VIDEO_DISPLAY_LOUDSPEAKER \
|
||||
(0x0F)
|
||||
#define COD_AUDIO_MINOR_VIDEO_DISPLAY_CONFERENCING \
|
||||
(0x10)
|
||||
// #define COD_AUDIO_MINOR_RESERVED (0x11)
|
||||
#define COD_AUDIO_MINOR_GAMING_TOY (0x12)
|
||||
|
||||
#define COD_PERIPHERAL_MINOR_KEYBOARD_MASK (0x10)
|
||||
#define COD_PERIPHERAL_MINOR_POINTER_MASK (0x20)
|
||||
|
||||
#define COD_PERIPHERAL_MINOR_NO_CATEGORY (0x00)
|
||||
#define COD_PERIPHERAL_MINOR_JOYSTICK (0x01)
|
||||
#define COD_PERIPHERAL_MINOR_GAMEPAD (0x02)
|
||||
#define COD_PERIPHERAL_MINOR_REMOTE_CONTROL (0x03)
|
||||
#define COD_PERIPHERAL_MINOR_SENSING (0x04)
|
||||
|
||||
#define COD_IMAGING_MINOR_DISPLAY_MASK (0x04)
|
||||
#define COD_IMAGING_MINOR_CAMERA_MASK (0x08)
|
||||
#define COD_IMAGING_MINOR_SCANNER_MASK (0x10)
|
||||
#define COD_IMAGING_MINOR_PRINTER_MASK (0x20)
|
||||
|
||||
//
|
||||
// Cannot use GET_COD_MINOR for this b/c it is embedded in a different manner
|
||||
// than the rest of the major classes
|
||||
//
|
||||
|
||||
#define COD_LAN_ACCESS_BIT_OFFSET (5)
|
||||
|
||||
#define COD_LAN_MINOR_MASK (0x00001C)
|
||||
#define COD_LAN_ACCESS_MASK (0x0000E0)
|
||||
|
||||
#define GET_COD_LAN_MINOR(_cod) (((_cod) & COD_LAN_MINOR_MASK) >> COD_MINOR_BIT_OFFSET)
|
||||
#define GET_COD_LAN_ACCESS(_cod) (((_cod) & COD_LAN_ACCESS_MASK) >> COD_LAN_ACCESS_BIT_OFFSET)
|
||||
|
||||
//
|
||||
// LAN access percent usage subcodes
|
||||
//
|
||||
#define COD_LAN_MINOR_UNCLASSIFIED (0x00)
|
||||
|
||||
#define COD_LAN_ACCESS_0_USED (0x00)
|
||||
#define COD_LAN_ACCESS_17_USED (0x01)
|
||||
#define COD_LAN_ACCESS_33_USED (0x02)
|
||||
#define COD_LAN_ACCESS_50_USED (0x03)
|
||||
#define COD_LAN_ACCESS_67_USED (0x04)
|
||||
#define COD_LAN_ACCESS_83_USED (0x05)
|
||||
#define COD_LAN_ACCESS_99_USED (0x06)
|
||||
#define COD_LAN_ACCESS_FULL (0x07)
|
||||
|
||||
//
|
||||
// Used as an initializer of LAP_DATA
|
||||
//
|
||||
#define LAP_GIAC_INIT { 0x33, 0x8B, 0x9E }
|
||||
#define LAP_LIAC_INIT { 0x00, 0x8B, 0x9E }
|
||||
|
||||
//
|
||||
// General Inquiry Access Code.
|
||||
//
|
||||
#define LAP_GIAC_VALUE (0x009E8B33)
|
||||
|
||||
//
|
||||
// Limited Inquiry Access Code.
|
||||
//
|
||||
#define LAP_LIAC_VALUE (0x009E8B00)
|
||||
|
||||
#define BTH_ADDR_IAC_FIRST (0x9E8B00)
|
||||
#define BTH_ADDR_IAC_LAST (0x9E8B3f)
|
||||
#define BTH_ADDR_LIAC (0x9E8B00)
|
||||
#define BTH_ADDR_GIAC (0x9E8B33)
|
||||
|
||||
typedef UCHAR BTHSTATUS, *PBTHSTATUS;
|
||||
|
||||
#define BTH_ERROR(_btStatus) ((_btStatus) != BTH_ERROR_SUCCESS)
|
||||
#define BTH_SUCCESS(_btStatus) ((_btStatus) == BTH_ERROR_SUCCESS)
|
||||
|
||||
#define BTH_ERROR_SUCCESS (0x00)
|
||||
#define BTH_ERROR_UNKNOWN_HCI_COMMAND (0x01)
|
||||
#define BTH_ERROR_NO_CONNECTION (0x02)
|
||||
#define BTH_ERROR_HARDWARE_FAILURE (0x03)
|
||||
#define BTH_ERROR_PAGE_TIMEOUT (0x04)
|
||||
#define BTH_ERROR_AUTHENTICATION_FAILURE (0x05)
|
||||
#define BTH_ERROR_KEY_MISSING (0x06)
|
||||
#define BTH_ERROR_MEMORY_FULL (0x07)
|
||||
#define BTH_ERROR_CONNECTION_TIMEOUT (0x08)
|
||||
#define BTH_ERROR_MAX_NUMBER_OF_CONNECTIONS (0x09)
|
||||
#define BTH_ERROR_MAX_NUMBER_OF_SCO_CONNECTIONS (0x0a)
|
||||
#define BTH_ERROR_ACL_CONNECTION_ALREADY_EXISTS (0x0b)
|
||||
#define BTH_ERROR_COMMAND_DISALLOWED (0x0c)
|
||||
#define BTH_ERROR_HOST_REJECTED_LIMITED_RESOURCES (0x0d)
|
||||
#define BTH_ERROR_HOST_REJECTED_SECURITY_REASONS (0x0e)
|
||||
#define BTH_ERROR_HOST_REJECTED_PERSONAL_DEVICE (0x0f)
|
||||
#define BTH_ERROR_HOST_TIMEOUT (0x10)
|
||||
#define BTH_ERROR_UNSUPPORTED_FEATURE_OR_PARAMETER (0x11)
|
||||
#define BTH_ERROR_INVALID_HCI_PARAMETER (0x12)
|
||||
#define BTH_ERROR_REMOTE_USER_ENDED_CONNECTION (0x13)
|
||||
#define BTH_ERROR_REMOTE_LOW_RESOURCES (0x14)
|
||||
#define BTH_ERROR_REMOTE_POWERING_OFF (0x15)
|
||||
#define BTH_ERROR_LOCAL_HOST_TERMINATED_CONNECTION (0x16)
|
||||
#define BTH_ERROR_REPEATED_ATTEMPTS (0x17)
|
||||
#define BTH_ERROR_PAIRING_NOT_ALLOWED (0x18)
|
||||
#define BTH_ERROR_UKNOWN_LMP_PDU (0x19)
|
||||
#define BTH_ERROR_UNSUPPORTED_REMOTE_FEATURE (0x1a)
|
||||
#define BTH_ERROR_SCO_OFFSET_REJECTED (0x1b)
|
||||
#define BTH_ERROR_SCO_INTERVAL_REJECTED (0x1c)
|
||||
#define BTH_ERROR_SCO_AIRMODE_REJECTED (0x1d)
|
||||
#define BTH_ERROR_INVALID_LMP_PARAMETERS (0x1e)
|
||||
#define BTH_ERROR_UNSPECIFIED_ERROR (0x1f)
|
||||
#define BTH_ERROR_UNSUPPORTED_LMP_PARM_VALUE (0x20)
|
||||
#define BTH_ERROR_ROLE_CHANGE_NOT_ALLOWED (0x21)
|
||||
#define BTH_ERROR_LMP_RESPONSE_TIMEOUT (0x22)
|
||||
#define BTH_ERROR_LMP_TRANSACTION_COLLISION (0x23)
|
||||
#define BTH_ERROR_LMP_PDU_NOT_ALLOWED (0x24)
|
||||
#define BTH_ERROR_ENCRYPTION_MODE_NOT_ACCEPTABLE (0x25)
|
||||
#define BTH_ERROR_UNIT_KEY_NOT_USED (0x26)
|
||||
#define BTH_ERROR_QOS_IS_NOT_SUPPORTED (0x27)
|
||||
#define BTH_ERROR_INSTANT_PASSED (0x28)
|
||||
#define BTH_ERROR_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED (0x29)
|
||||
|
||||
#define BTH_ERROR_UNSPECIFIED (0xFF)
|
||||
|
||||
//
|
||||
// Min, max, and default L2cap MTU.
|
||||
//
|
||||
#define L2CAP_MIN_MTU (48)
|
||||
#define L2CAP_MAX_MTU (0xFFFF)
|
||||
#define L2CAP_DEFAULT_MTU (672)
|
||||
|
||||
//
|
||||
// Max l2cap signal size (48) - size of signal header (4)
|
||||
//
|
||||
#define MAX_L2CAP_PING_DATA_LENGTH (44)
|
||||
#define MAX_L2CAP_INFO_DATA_LENGTH (44)
|
||||
|
||||
//
|
||||
// the following two structures provides information about
|
||||
// disocvered remote radios.
|
||||
//
|
||||
|
||||
#define BDIF_ADDRESS (0x00000001)
|
||||
#define BDIF_COD (0x00000002)
|
||||
#define BDIF_NAME (0x00000004)
|
||||
#define BDIF_PAIRED (0x00000008)
|
||||
#define BDIF_PERSONAL (0x00000010)
|
||||
#define BDIF_CONNECTED (0x00000020)
|
||||
|
||||
#define BDIF_VALID_FLAGS \
|
||||
(BDIF_ADDRESS | BDIF_COD | BDIF_NAME | BDIF_PAIRED | BDIF_PERSONAL | \
|
||||
BDIF_CONNECTED)
|
||||
|
||||
typedef struct _BTH_DEVICE_INFO {
|
||||
//
|
||||
// Combination BDIF_Xxx flags
|
||||
//
|
||||
ULONG flags;
|
||||
|
||||
//
|
||||
// Address of remote device.
|
||||
//
|
||||
BTH_ADDR address;
|
||||
|
||||
//
|
||||
// Class Of Device.
|
||||
//
|
||||
BTH_COD classOfDevice;
|
||||
|
||||
//
|
||||
// name of the device
|
||||
//
|
||||
CHAR name[BTH_MAX_NAME_SIZE];
|
||||
|
||||
} BTH_DEVICE_INFO, *PBTH_DEVICE_INFO;
|
||||
|
||||
//
|
||||
// Buffer associated with GUID_BLUETOOTH_RADIO_IN_RANGE
|
||||
//
|
||||
typedef struct _BTH_RADIO_IN_RANGE {
|
||||
//
|
||||
// Information about the remote radio
|
||||
//
|
||||
BTH_DEVICE_INFO deviceInfo;
|
||||
|
||||
//
|
||||
// The previous flags value for the BTH_DEVICE_INFO. The receiver of this
|
||||
// notification can compare the deviceInfo.flags and previousDeviceFlags
|
||||
// to determine what has changed about this remote radio.
|
||||
//
|
||||
// For instance, if BDIF_NAME is set in deviceInfo.flags and not in
|
||||
// previousDeviceFlags, the remote radio's has just been retrieved.
|
||||
//
|
||||
ULONG previousDeviceFlags;
|
||||
|
||||
} BTH_RADIO_IN_RANGE, *PBTH_RADIO_IN_RANGE;
|
||||
|
||||
//
|
||||
// Buffer associated with GUID_BLUETOOTH_L2CAP_EVENT
|
||||
//
|
||||
typedef struct _BTH_L2CAP_EVENT_INFO {
|
||||
//
|
||||
// Remote radio address which the L2CAP event is associated with
|
||||
//
|
||||
BTH_ADDR bthAddress;
|
||||
|
||||
//
|
||||
// The PSM that is either being connected to or disconnected from
|
||||
//
|
||||
USHORT psm;
|
||||
|
||||
//
|
||||
// If != 0, then the channel has just been established. If == 0, then the
|
||||
// channel has been destroyed. Notifications for a destroyed channel will
|
||||
// only be sent for channels successfully established.
|
||||
//
|
||||
UCHAR connected;
|
||||
|
||||
//
|
||||
// If != 0, then the local host iniated the l2cap connection. If == 0, then
|
||||
// the remote host initated the connection. This field is only valid if
|
||||
// connect is != 0.
|
||||
//
|
||||
UCHAR initiated;
|
||||
|
||||
} BTH_L2CAP_EVENT_INFO, *PBTH_L2CAP_EVENT_INFO;
|
||||
|
||||
#define HCI_CONNNECTION_TYPE_ACL (1)
|
||||
#define HCI_CONNNECTION_TYPE_SCO (2)
|
||||
|
||||
//
|
||||
// Buffer associated with GUID_BLUETOOTH_HCI_EVENT
|
||||
//
|
||||
typedef struct _BTH_HCI_EVENT_INFO {
|
||||
//
|
||||
// Remote radio address which the HCI event is associated with
|
||||
//
|
||||
BTH_ADDR bthAddress;
|
||||
|
||||
//
|
||||
// HCI_CONNNECTION_TYPE_XXX value
|
||||
//
|
||||
UCHAR connectionType;
|
||||
|
||||
//
|
||||
// If != 0, then the underlying connection to the remote radio has just
|
||||
// been estrablished. If == 0, then the underlying conneciton has just been
|
||||
// destroyed.
|
||||
//
|
||||
UCHAR connected;
|
||||
|
||||
} BTH_HCI_EVENT_INFO, *PBTH_HCI_EVENT_INFO;
|
||||
|
||||
#define MAX_UUIDS_IN_QUERY (12)
|
||||
|
||||
#define BTH_VID_DEFAULT_VALUE (0xFFFF)
|
||||
|
||||
#define SDP_ERROR_INVALID_SDP_VERSION (0x0001)
|
||||
#define SDP_ERROR_INVALID_RECORD_HANDLE (0x0002)
|
||||
#define SDP_ERROR_INVALID_REQUEST_SYNTAX (0x0003)
|
||||
#define SDP_ERROR_INVALID_PDU_SIZE (0x0004)
|
||||
#define SDP_ERROR_INVALID_CONTINUATION_STATE (0x0005)
|
||||
#define SDP_ERROR_INSUFFICIENT_RESOURCES (0x0006)
|
||||
|
||||
//
|
||||
// Defined by windows to handle server errors that are not described by the
|
||||
// above errors. Start at 0x0100 so we don't go anywhere near the spec
|
||||
// defined values.
|
||||
//
|
||||
|
||||
//
|
||||
// Success, nothing went wrong
|
||||
//
|
||||
#define SDP_ERROR_SUCCESS ((SDP_ERROR) 0x0000)
|
||||
|
||||
//
|
||||
// The SDP PDU or parameters other than the SDP stream response was not correct
|
||||
//
|
||||
#define SDP_ERROR_SERVER_INVALID_RESPONSE ((SDP_ERROR) 0x0100)
|
||||
|
||||
//
|
||||
// The SDP response stream did not parse correctly.
|
||||
//
|
||||
#define SDP_ERROR_SERVER_RESPONSE_DID_NOT_PARSE ((SDP_ERROR) 0x0200)
|
||||
|
||||
//
|
||||
// The SDP response stream was successfully parsed, but did not match the
|
||||
// required format for the query.
|
||||
//
|
||||
#define SDP_ERROR_SERVER_BAD_FORMAT ((SDP_ERROR) 0x0300)
|
||||
|
||||
//
|
||||
// SDP was unable to send a continued query back to the server
|
||||
//
|
||||
#define SDP_ERROR_COULD_NOT_SEND_CONTINUE ((SDP_ERROR) 0x0400)
|
||||
|
||||
//
|
||||
// Server sent a response that was too large to fit in the caller's buffer.
|
||||
//
|
||||
#define SDP_ERROR_RESPONSE_TOO_LARGE ((SDP_ERROR) 0x0500)
|
||||
|
||||
|
||||
#define SDP_ATTRIB_RECORD_HANDLE (0x0000)
|
||||
#define SDP_ATTRIB_CLASS_ID_LIST (0x0001)
|
||||
#define SDP_ATTRIB_RECORD_STATE (0x0002)
|
||||
#define SDP_ATTRIB_SERVICE_ID (0x0003)
|
||||
#define SDP_ATTRIB_PROTOCOL_DESCRIPTOR_LIST (0x0004)
|
||||
#define SDP_ATTRIB_BROWSE_GROUP_LIST (0x0005)
|
||||
#define SDP_ATTRIB_LANG_BASE_ATTRIB_ID_LIST (0x0006)
|
||||
#define SDP_ATTRIB_INFO_TIME_TO_LIVE (0x0007)
|
||||
#define SDP_ATTRIB_AVAILABILITY (0x0008)
|
||||
#define SDP_ATTRIB_PROFILE_DESCRIPTOR_LIST (0x0009)
|
||||
#define SDP_ATTRIB_DOCUMENTATION_URL (0x000A)
|
||||
#define SDP_ATTRIB_CLIENT_EXECUTABLE_URL (0x000B)
|
||||
#define SDP_ATTRIB_ICON_URL (0x000C)
|
||||
#define SDP_ATTRIB_ADDITIONAL_PROTOCOL_DESCRIPTOR_LIST \
|
||||
(0x000D)
|
||||
|
||||
//
|
||||
// Attribute IDs in the range of 0x000D - 0x01FF are reserved for future use
|
||||
//
|
||||
#define SDP_ATTRIB_PROFILE_SPECIFIC (0x0200)
|
||||
|
||||
#define LANG_BASE_LANGUAGE_INDEX (0x0000)
|
||||
#define LANG_BASE_ENCODING_INDEX (0x0001)
|
||||
#define LANG_BASE_OFFSET_INDEX (0x0002)
|
||||
#define LANG_DEFAULT_ID (0x0100)
|
||||
|
||||
#define STRING_NAME_OFFSET (0x0000)
|
||||
#define STRING_DESCRIPTION_OFFSET (0x0001)
|
||||
#define STRING_PROVIDER_NAME_OFFSET (0x0002)
|
||||
|
||||
#define SDP_ATTRIB_SDP_VERSION_NUMBER_LIST (0x0200)
|
||||
#define SDP_ATTRIB_SDP_DATABASE_STATE (0x0201)
|
||||
|
||||
#define SDP_ATTRIB_BROWSE_GROUP_ID (0x0200)
|
||||
|
||||
#define SDP_ATTRIB_CORDLESS_EXTERNAL_NETWORK (0x0301)
|
||||
|
||||
#define SDP_ATTRIB_FAX_CLASS_1_SUPPORT (0x0302)
|
||||
#define SDP_ATTRIB_FAX_CLASS_2_0_SUPPORT (0x0303)
|
||||
#define SDP_ATTRIB_FAX_CLASS_2_SUPPORT (0x0304)
|
||||
#define SDP_ATTRIB_FAX_AUDIO_FEEDBACK_SUPPORT (0x0305)
|
||||
|
||||
#define SDP_ATTRIB_HEADSET_REMOTE_AUDIO_VOLUME_CONTROL (0x0302)
|
||||
|
||||
#define SDP_ATTRIB_LAN_LPSUBNET (0x0200)
|
||||
|
||||
#define SDP_ATTRIB_OBJECT_PUSH_SUPPORTED_FORMATS_LIST (0x0303)
|
||||
|
||||
#define SDP_ATTRIB_SYNCH_SUPPORTED_DATA_STORES_LIST (0x0301)
|
||||
|
||||
// this is in the assigned numbers doc, but it does not show up in any profile
|
||||
#define SDP_ATTRIB_SERVICE_VERSION (0x0300)
|
||||
|
||||
#define SDP_ATTRIB_PAN_NETWORK_ADDRESS (0x0306)
|
||||
#define SDP_ATTRIB_PAN_WAP_GATEWAY (0x0307)
|
||||
#define SDP_ATTRIB_PAN_HOME_PAGE_URL (0x0308)
|
||||
#define SDP_ATTRIB_PAN_WAP_STACK_TYPE (0x0309)
|
||||
#define SDP_ATTRIB_PAN_SECURITY_DESCRIPTION (0x030A)
|
||||
#define SDP_ATTRIB_PAN_NET_ACCESS_TYPE (0x030B)
|
||||
#define SDP_ATTRIB_PAN_MAX_NET_ACCESS_RATE (0x030C)
|
||||
|
||||
#define SDP_ATTRIB_IMAGING_SUPPORTED_CAPABILITIES (0x0310)
|
||||
#define SDP_ATTRIB_IMAGING_SUPPORTED_FEATURES (0x0311)
|
||||
#define SDP_ATTRIB_IMAGING_SUPPORTED_FUNCTIONS (0x0312)
|
||||
#define SDP_ATTRIB_IMAGING_TOTAL_DATA_CAPACITY (0x0313)
|
||||
|
||||
#define SDP_ATTRIB_DI_SPECIFICATION_ID (0x0200)
|
||||
#define SDP_ATTRIB_DI_VENDOR_ID (0x0201)
|
||||
#define SDP_ATTRIB_DI_PRODUCT_ID (0x0202)
|
||||
#define SDP_ATTRIB_DI_VERSION (0x0203)
|
||||
#define SDP_ATTRIB_DI_PRIMARY_RECORD (0x0204)
|
||||
#define SDP_ATTRIB_DI_VENDOR_ID_SOURCE (0x0205)
|
||||
|
||||
#define SDP_ATTRIB_HID_DEVICE_RELEASE_NUMBER (0x0200)
|
||||
#define SDP_ATTRIB_HID_PARSER_VERSION (0x0201)
|
||||
#define SDP_ATTRIB_HID_DEVICE_SUBCLASS (0x0202)
|
||||
#define SDP_ATTRIB_HID_COUNTRY_CODE (0x0203)
|
||||
#define SDP_ATTRIB_HID_VIRTUAL_CABLE (0x0204)
|
||||
#define SDP_ATTRIB_HID_RECONNECT_INITIATE (0x0205)
|
||||
#define SDP_ATTRIB_HID_DESCRIPTOR_LIST (0x0206)
|
||||
#define SDP_ATTRIB_HID_LANG_ID_BASE_LIST (0x0207)
|
||||
#define SDP_ATTRIB_HID_SDP_DISABLE (0x0208)
|
||||
#define SDP_ATTRIB_HID_BATTERY_POWER (0x0209)
|
||||
#define SDP_ATTRIB_HID_REMOTE_WAKE (0x020A)
|
||||
#define SDP_ATTRIB_HID_REPORT_LIST (0x020B)
|
||||
#define SDP_ATTRIB_HID_SUPERVISION_TIMEOUT (0x020C)
|
||||
#define SDP_ATTRIB_HID_NORMALLY_CONNECTABLE (0x020D)
|
||||
#define SDP_ATTRIB_HID_BOOT_DEVICE (0x020E)
|
||||
|
||||
//
|
||||
// Profile specific values
|
||||
//
|
||||
#define CORDLESS_EXTERNAL_NETWORK_PSTN (0x01)
|
||||
#define CORDLESS_EXTERNAL_NETWORK_ISDN (0x02)
|
||||
#define CORDLESS_EXTERNAL_NETWORK_GSM (0x03)
|
||||
#define CORDLESS_EXTERNAL_NETWORK_CDMA (0x04)
|
||||
#define CORDLESS_EXTERNAL_NETWORK_ANALOG_CELLULAR (0x05)
|
||||
#define CORDLESS_EXTERNAL_NETWORK_PACKET_SWITCHED (0x06)
|
||||
#define CORDLESS_EXTERNAL_NETWORK_OTHER (0x07)
|
||||
|
||||
#define OBJECT_PUSH_FORMAT_VCARD_2_1 (0x01)
|
||||
#define OBJECT_PUSH_FORMAT_VCARD_3_0 (0x02)
|
||||
#define OBJECT_PUSH_FORMAT_VCAL_1_0 (0x03)
|
||||
#define OBJECT_PUSH_FORMAT_ICAL_2_0 (0x04)
|
||||
#define OBJECT_PUSH_FORMAT_VNOTE (0x05)
|
||||
#define OBJECT_PUSH_FORMAT_VMESSAGE (0x06)
|
||||
#define OBJECT_PUSH_FORMAT_ANY (0xFF)
|
||||
|
||||
#define SYNCH_DATA_STORE_PHONEBOOK (0x01)
|
||||
#define SYNCH_DATA_STORE_CALENDAR (0x03)
|
||||
#define SYNCH_DATA_STORE_NOTES (0x05)
|
||||
#define SYNCH_DATA_STORE_MESSAGES (0x06)
|
||||
|
||||
#define DI_VENDOR_ID_SOURCE_BLUETOOTH_SIG (0x0001)
|
||||
#define DI_VENDOR_ID_SOURCE_USB_IF (0x0002)
|
||||
|
||||
#define PSM_SDP (0x0001)
|
||||
#define PSM_RFCOMM (0x0003)
|
||||
#define PSM_TCS_BIN (0x0005)
|
||||
#define PSM_TCS_BIN_CORDLESS (0x0007)
|
||||
#define PSM_BNEP (0x000F)
|
||||
#define PSM_HID_CONTROL (0x0011)
|
||||
#define PSM_HID_INTERRUPT (0x0013)
|
||||
#define PSM_AVCTP (0x0017)
|
||||
#define PSM_AVDTP (0x0019)
|
||||
#define PSM_UDI_C_PLANE (0x001D)
|
||||
|
||||
//
|
||||
// Strings
|
||||
//
|
||||
#define STR_ADDR_FMTA "(%02x:%02x:%02x:%02x:%02x:%02x)"
|
||||
#define STR_ADDR_FMTW L"(%02x:%02x:%02x:%02x:%02x:%02x)"
|
||||
|
||||
#define STR_ADDR_SHORT_FMTA "%04x%08x"
|
||||
#define STR_ADDR_SHORT_FMTW L"%04x%08x"
|
||||
|
||||
#if defined(UNICODE) || defined(BTH_KERN)
|
||||
|
||||
#define STR_ADDR_FMT STR_ADDR_FMTW
|
||||
#define STR_ADDR_SHORT_FMT STR_ADDR_SHORT_FMTW
|
||||
|
||||
#else // UNICODE
|
||||
|
||||
#define STR_ADDR_FMT STR_ADDR_FMTA
|
||||
#define STR_ADDR_SHORT_FMT STR_ADDR_SHORT_FMTA
|
||||
|
||||
#endif // UNICODE
|
||||
|
||||
#define GET_BITS(field,offset,mask) ( ( (field) >> (offset) ) & (mask) )
|
||||
#define GET_BIT(field,offset) ( GET_BITS(field,offset,0x1) )
|
||||
|
||||
#define LMP_3_SLOT_PACKETS(x) (GET_BIT(x, 0))
|
||||
#define LMP_5_SLOT_PACKETS(x) (GET_BIT(x, 1))
|
||||
#define LMP_ENCRYPTION(x) (GET_BIT(x, 2))
|
||||
#define LMP_SLOT_OFFSET(x) (GET_BIT(x, 3))
|
||||
#define LMP_TIMING_ACCURACY(x) (GET_BIT(x, 4))
|
||||
#define LMP_SWITCH(x) (GET_BIT(x, 5))
|
||||
#define LMP_HOLD_MODE(x) (GET_BIT(x, 6))
|
||||
#define LMP_SNIFF_MODE(x) (GET_BIT(x, 7))
|
||||
#define LMP_PARK_MODE(x) (GET_BIT(x, 8))
|
||||
#define LMP_RSSI(x) (GET_BIT(x, 9))
|
||||
#define LMP_CHANNEL_QUALITY_DRIVEN_MODE(x) (GET_BIT(x,10))
|
||||
#define LMP_SCO_LINK(x) (GET_BIT(x,11))
|
||||
#define LMP_HV2_PACKETS(x) (GET_BIT(x,12))
|
||||
#define LMP_HV3_PACKETS(x) (GET_BIT(x,13))
|
||||
#define LMP_MU_LAW_LOG(x) (GET_BIT(x,14))
|
||||
#define LMP_A_LAW_LOG(x) (GET_BIT(x,15))
|
||||
#define LMP_CVSD(x) (GET_BIT(x,16))
|
||||
#define LMP_PAGING_SCHEME(x) (GET_BIT(x,17))
|
||||
#define LMP_POWER_CONTROL(x) (GET_BIT(x,18))
|
||||
#define LMP_TRANSPARENT_SCO_DATA(x) (GET_BIT(x,19))
|
||||
#define LMP_FLOW_CONTROL_LAG(x) (GET_BITS(x,20,0x3))
|
||||
|
||||
#endif // GUID_DEFS_ONLY
|
||||
|
||||
#endif // __BTHDEF_H__
|
||||
@@ -1,111 +0,0 @@
|
||||
#ifndef __BTHSDPDEF_H__
|
||||
#define __BTHSDPDEF_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct SDP_LARGE_INTEGER_16 {
|
||||
ULONGLONG LowPart;
|
||||
LONGLONG HighPart;
|
||||
};
|
||||
|
||||
|
||||
struct SDP_ULARGE_INTEGER_16 {
|
||||
ULONGLONG LowPart;
|
||||
ULONGLONG HighPart;
|
||||
};
|
||||
|
||||
typedef struct SDP_ULARGE_INTEGER_16 SDP_ULARGE_INTEGER_16, *PSDP_ULARGE_INTEGER_16, *LPSDP_ULARGE_INTEGER_16;
|
||||
typedef struct SDP_LARGE_INTEGER_16 SDP_LARGE_INTEGER_16, *PSDP_LARGE_INTEGER_16, *LPSDP_LARGE_INTEGER_16;
|
||||
|
||||
enum NodeContainerType {
|
||||
NodeContainerTypeSequence,
|
||||
NodeContainerTypeAlternative
|
||||
};
|
||||
|
||||
typedef enum NodeContainerType NodeContainerType;
|
||||
|
||||
typedef USHORT SDP_ERROR, *PSDP_ERROR;
|
||||
|
||||
enum SDP_TYPE {
|
||||
SDP_TYPE_NIL = 0x00,
|
||||
SDP_TYPE_UINT = 0x01,
|
||||
SDP_TYPE_INT = 0x02,
|
||||
SDP_TYPE_UUID = 0x03,
|
||||
SDP_TYPE_STRING = 0x04,
|
||||
SDP_TYPE_BOOLEAN = 0x05,
|
||||
SDP_TYPE_SEQUENCE = 0x06,
|
||||
SDP_TYPE_ALTERNATIVE = 0x07,
|
||||
SDP_TYPE_URL = 0x08,
|
||||
SDP_TYPE_CONTAINER = 0x20
|
||||
};
|
||||
// 9 - 31 are reserved
|
||||
typedef enum SDP_TYPE SDP_TYPE;
|
||||
|
||||
// allow for a little easier type checking / sizing for integers and UUIDs
|
||||
// ((SDP_ST_XXX & 0xF0) >> 4) == SDP_TYPE_XXX
|
||||
// size of the data (in bytes) is encoded as ((SDP_ST_XXX & 0xF0) >> 8)
|
||||
enum SDP_SPECIFICTYPE {
|
||||
SDP_ST_NONE = 0x0000,
|
||||
|
||||
SDP_ST_UINT8 = 0x0010,
|
||||
SDP_ST_UINT16 = 0x0110,
|
||||
SDP_ST_UINT32 = 0x0210,
|
||||
SDP_ST_UINT64 = 0x0310,
|
||||
SDP_ST_UINT128 = 0x0410,
|
||||
|
||||
SDP_ST_INT8 = 0x0020,
|
||||
SDP_ST_INT16 = 0x0120,
|
||||
SDP_ST_INT32 = 0x0220,
|
||||
SDP_ST_INT64 = 0x0320,
|
||||
SDP_ST_INT128 = 0x0420,
|
||||
|
||||
SDP_ST_UUID16 = 0x0130,
|
||||
SDP_ST_UUID32 = 0x0220,
|
||||
SDP_ST_UUID128 = 0x0430
|
||||
};
|
||||
typedef enum SDP_SPECIFICTYPE SDP_SPECIFICTYPE;
|
||||
|
||||
typedef struct _SdpAttributeRange {
|
||||
USHORT minAttribute;
|
||||
USHORT maxAttribute;
|
||||
} SdpAttributeRange;
|
||||
|
||||
|
||||
typedef
|
||||
#ifdef USE_MIDL_SYNTAX
|
||||
[switch_type(unsigned short)]
|
||||
#endif
|
||||
union SdpQueryUuidUnion {
|
||||
#ifdef USE_MIDL_SYNTAX
|
||||
[case(SDP_ST_UUID128)]
|
||||
#endif
|
||||
GUID uuid128;
|
||||
|
||||
#ifdef USE_MIDL_SYNTAX
|
||||
[case(SDP_ST_UUID32)]
|
||||
#endif _NTDDK_
|
||||
ULONG uuid32;
|
||||
|
||||
#ifdef USE_MIDL_SYNTAX
|
||||
[case(SDP_ST_UUID16)]
|
||||
#endif _NTDDK_
|
||||
USHORT uuid16;
|
||||
} SdpQueryUuidUnion;
|
||||
|
||||
typedef struct _SdpQueryUuid {
|
||||
#ifdef USE_MIDL_SYNTAX
|
||||
[switch_is(uuidType)]
|
||||
#endif
|
||||
SdpQueryUuidUnion u;
|
||||
|
||||
USHORT uuidType;
|
||||
} SdpQueryUuid;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // __BTHSDPDEF_H__
|
||||
6611
include/strsafe.h
6611
include/strsafe.h
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
lib/advapi32.lib
BIN
lib/advapi32.lib
Binary file not shown.
BIN
lib/comdlg32.lib
BIN
lib/comdlg32.lib
Binary file not shown.
BIN
lib/gdi32.lib
BIN
lib/gdi32.lib
Binary file not shown.
BIN
lib/irprops.lib
BIN
lib/irprops.lib
Binary file not shown.
BIN
lib/kernel32.lib
BIN
lib/kernel32.lib
Binary file not shown.
BIN
lib/libcpmt.lib
BIN
lib/libcpmt.lib
Binary file not shown.
BIN
lib/odbc32.lib
BIN
lib/odbc32.lib
Binary file not shown.
BIN
lib/odbccp32.lib
BIN
lib/odbccp32.lib
Binary file not shown.
BIN
lib/ole32.lib
BIN
lib/ole32.lib
Binary file not shown.
BIN
lib/oleaut32.lib
BIN
lib/oleaut32.lib
Binary file not shown.
BIN
lib/shell32.lib
BIN
lib/shell32.lib
Binary file not shown.
BIN
lib/user32.lib
BIN
lib/user32.lib
Binary file not shown.
BIN
lib/uuid.lib
BIN
lib/uuid.lib
Binary file not shown.
BIN
lib/windows_amd64/bthprops.lib
Normal file
BIN
lib/windows_amd64/bthprops.lib
Normal file
Binary file not shown.
BIN
lib/windows_i386/bthprops.lib
Normal file
BIN
lib/windows_i386/bthprops.lib
Normal file
Binary file not shown.
BIN
lib/winspool.lib
BIN
lib/winspool.lib
Binary file not shown.
@@ -1,10 +1,26 @@
|
||||
/**
|
||||
* Copyright (C) 2009 Richard L. Lynch <rich@richlynch.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <bthsdpdef.h>
|
||||
#include <bthdef.h>
|
||||
#include <BluetoothAPIs.h>
|
||||
#include <strsafe.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#include <strsafe.h>
|
||||
|
||||
DWORD ShowErrorCode(LPTSTR msg, DWORD dw)
|
||||
{
|
||||
// Retrieve the system error message for the last-error code
|
||||
Reference in New Issue
Block a user