瀏覽代碼

版本升级维护

yyqxiaoyin 6 年之前
父節點
當前提交
a644ba3350
共有 100 個文件被更改,包括 570 次插入15693 次删除
  1. 10 10
      Example/MKRRadioManager.xcodeproj/project.pbxproj
  2. 1 1
      Example/Podfile
  3. 1 1
      Example/Podfile.lock
  4. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRAVPlayer.h
  5. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRBTRadioControlManager.h
  6. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRM3UListModel.h
  7. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRPlayControlProtocol.h
  8. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRPlayResourceStatus.h
  9. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRPlayResourceUpdateProtocol.h
  10. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRRadioControlMaster.h
  11. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRRadioPlayControlManager.h
  12. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRRadioResorce.h
  13. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRRadioResourceProtocol.h
  14. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRUPnPDevice.h
  15. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRWIFIDeviceManager.h
  16. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/MKRWIFIRadioControlManager.h
  17. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/NSString+MKRRadioManagerAdd.h
  18. 0 1
      Example/Pods/Headers/Private/MKRRadioManager/UIDevice+MKRRadioManagerAdd.h
  19. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRAVPlayer.h
  20. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRBTRadioControlManager.h
  21. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRM3UListModel.h
  22. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRPlayControlProtocol.h
  23. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRPlayResourceStatus.h
  24. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRPlayResourceUpdateProtocol.h
  25. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRRadioControlMaster.h
  26. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRRadioPlayControlManager.h
  27. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRRadioResorce.h
  28. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRRadioResourceProtocol.h
  29. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRUPnPDevice.h
  30. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRWIFIDeviceManager.h
  31. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/MKRWIFIRadioControlManager.h
  32. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/NSString+MKRRadioManagerAdd.h
  33. 0 1
      Example/Pods/Headers/Public/MKRRadioManager/UIDevice+MKRRadioManagerAdd.h
  34. 1 1
      Example/Pods/Manifest.lock
  35. 523 408
      Example/Pods/Pods.xcodeproj/project.pbxproj
  36. 1 1
      Example/Pods/Target Support Files/MKRRadioManager/MKRRadioManager-Info.plist
  37. 15 0
      Example/Pods/Target Support Files/MKRRadioManager/MKRRadioManager-umbrella.h
  38. 0 2
      Example/Pods/Target Support Files/MKRRadioManager/MKRRadioManager.xcconfig
  39. 2 2
      Example/Pods/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example-frameworks.sh
  40. 4 5
      Example/Pods/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example.debug.xcconfig
  41. 4 5
      Example/Pods/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example.release.xcconfig
  42. 4 3
      Example/Pods/Target Support Files/Pods-MKRRadioManager_Tests/Pods-MKRRadioManager_Tests.debug.xcconfig
  43. 4 3
      Example/Pods/Target Support Files/Pods-MKRRadioManager_Tests/Pods-MKRRadioManager_Tests.release.xcconfig
  44. 0 1
      Example/Pods/Target Support Files/libASControl/libASControl.xcconfig
  45. 0 301
      Example/Pods/libASControl/libASControl/Classes/libASControl.framework/Headers/ASControlTools.h
  46. 二進制
      Example/Pods/libASControl/libASControl/Classes/libASControl.framework/libASControl
  47. 0 131
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/FreeList.h
  48. 0 289
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/LinkedList.h
  49. 0 536
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ThreadPool.h
  50. 0 161
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/TimerThread.h
  51. 0 122
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpGlobal.h
  52. 0 67
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpInet.h
  53. 0 11
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpIntTypes.h
  54. 0 20
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpStdInt.h
  55. 0 171
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpString.h
  56. 0 10
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpUniStd.h
  57. 0 69
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/VirtualDir.h
  58. 0 216
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/autoconfig.h
  59. 0 248
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/client_table.h
  60. 0 531
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/config.h
  61. 0 385
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gena.h
  62. 0 64
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gena_ctrlpt.h
  63. 0 79
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gena_device.h
  64. 0 69
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/global.h
  65. 0 97
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gmtdate.h
  66. 0 499
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/httpparser.h
  67. 0 584
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/httpreadwrite.h
  68. 0 50
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/inet_pton.h
  69. 0 948
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ithread.h
  70. 0 1835
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixml.h
  71. 0 72
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixmldebug.h
  72. 0 174
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixmlmembuf.h
  73. 0 269
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixmlparser.h
  74. 0 35
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/md5.h
  75. 0 265
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/membuffer.h
  76. 0 145
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/miniserver.h
  77. 0 33
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/netall.h
  78. 0 61
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/parsetools.h
  79. 0 69
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/server.h
  80. 0 377
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/service_table.h
  81. 0 129
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/soaplib.h
  82. 0 193
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/sock.h
  83. 0 26
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ssdp_ResultData.h
  84. 0 521
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ssdplib.h
  85. 0 118
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/statcodes.h
  86. 0 102
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/statuscodes.h
  87. 0 103
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/strintmap.h
  88. 0 64
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/sysdep.h
  89. 0 51
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/unixutil.h
  90. 0 2947
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnp.h
  91. 0 62
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnp_timeout.h
  92. 0 322
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnpapi.h
  93. 0 145
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnpconfig.h
  94. 0 292
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnpdebug.h
  95. 0 290
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnptools.h
  96. 0 141
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnputil.h
  97. 0 554
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/uri.h
  98. 0 81
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/urlconfig.h
  99. 0 86
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/uuid.h
  100. 0 0
      Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/webserver.h

+ 10 - 10
Example/MKRRadioManager.xcodeproj/project.pbxproj

@@ -7,7 +7,7 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		0431E8069A5355B24E92FF42 /* libPods-MKRRadioManager_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BA0A14EA6823D25235C739B /* libPods-MKRRadioManager_Example.a */; };
+		1235C8EDED6AE965479289DF /* Pods_MKRRadioManager_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ACF9A481056475F820149DE4 /* Pods_MKRRadioManager_Example.framework */; };
 		6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
 		6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
 		6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
@@ -23,8 +23,8 @@
 		6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
 		71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; };
 		873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
-		9131B550336D0E7612B7DB18 /* libPods-MKRRadioManager_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E9B91107B24E82C699A8092B /* libPods-MKRRadioManager_Tests.a */; };
 		BAD6DE83226708F70095069D /* MKRPlayControlViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BAD6DE82226708F70095069D /* MKRPlayControlViewController.m */; };
+		C4632B3C265FF4F3B623D3B2 /* Pods_MKRRadioManager_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 648DE1519841E50146A4125D /* Pods_MKRRadioManager_Tests.framework */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -41,7 +41,6 @@
 		30CC6BE02E9C81A23E72A301 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
 		3342E3A76531BAB139ED3F8D /* Pods-MKRRadioManager_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MKRRadioManager_Tests.release.xcconfig"; path = "Target Support Files/Pods-MKRRadioManager_Tests/Pods-MKRRadioManager_Tests.release.xcconfig"; sourceTree = "<group>"; };
 		3EF384348FAC9DDDDC9AFFF5 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
-		4BA0A14EA6823D25235C739B /* libPods-MKRRadioManager_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MKRRadioManager_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; };
 		5602B288FC72D73A0A62A866 /* Pods-MKRRadioManager_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MKRRadioManager_Tests.debug.xcconfig"; path = "Target Support Files/Pods-MKRRadioManager_Tests/Pods-MKRRadioManager_Tests.debug.xcconfig"; sourceTree = "<group>"; };
 		6003F58A195388D20070C39A /* MKRRadioManager_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MKRRadioManager_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@@ -62,13 +61,14 @@
 		6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
 		6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; };
 		606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
+		648DE1519841E50146A4125D /* Pods_MKRRadioManager_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MKRRadioManager_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 		84C622ED86065E87CB259746 /* Pods-MKRRadioManager_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MKRRadioManager_Example.debug.xcconfig"; path = "Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example.debug.xcconfig"; sourceTree = "<group>"; };
 		873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
 		ABE922AAA9D41BC767AB86F0 /* MKRRadioManager.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MKRRadioManager.podspec; path = ../MKRRadioManager.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
+		ACF9A481056475F820149DE4 /* Pods_MKRRadioManager_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MKRRadioManager_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		BAD6DE81226708F70095069D /* MKRPlayControlViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MKRPlayControlViewController.h; sourceTree = "<group>"; };
 		BAD6DE82226708F70095069D /* MKRPlayControlViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MKRPlayControlViewController.m; sourceTree = "<group>"; };
-		E9B91107B24E82C699A8092B /* libPods-MKRRadioManager_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MKRRadioManager_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
 		FE24A4D86C5F738B45C21E8B /* Pods-MKRRadioManager_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MKRRadioManager_Example.release.xcconfig"; path = "Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example.release.xcconfig"; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
@@ -80,7 +80,7 @@
 				6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
 				6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
 				6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
-				0431E8069A5355B24E92FF42 /* libPods-MKRRadioManager_Example.a in Frameworks */,
+				1235C8EDED6AE965479289DF /* Pods_MKRRadioManager_Example.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -91,7 +91,7 @@
 				6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
 				6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
 				6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
-				9131B550336D0E7612B7DB18 /* libPods-MKRRadioManager_Tests.a in Frameworks */,
+				C4632B3C265FF4F3B623D3B2 /* Pods_MKRRadioManager_Tests.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -126,8 +126,8 @@
 				6003F58F195388D20070C39A /* CoreGraphics.framework */,
 				6003F591195388D20070C39A /* UIKit.framework */,
 				6003F5AF195388D20070C39A /* XCTest.framework */,
-				4BA0A14EA6823D25235C739B /* libPods-MKRRadioManager_Example.a */,
-				E9B91107B24E82C699A8092B /* libPods-MKRRadioManager_Tests.a */,
+				ACF9A481056475F820149DE4 /* Pods_MKRRadioManager_Example.framework */,
+				648DE1519841E50146A4125D /* Pods_MKRRadioManager_Tests.framework */,
 			);
 			name = Frameworks;
 			sourceTree = "<group>";
@@ -357,13 +357,13 @@
 			);
 			inputPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example-frameworks.sh",
-				"${PODS_ROOT}/libASControl/libASControl/Classes/libASControl.framework",
+				"${BUILT_PRODUCTS_DIR}/MKRRadioManager/MKRRadioManager.framework",
 			);
 			name = "[CP] Embed Pods Frameworks";
 			outputFileListPaths = (
 			);
 			outputPaths = (
-				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libASControl.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MKRRadioManager.framework",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;

+ 1 - 1
Example/Podfile

@@ -1,7 +1,7 @@
 source 'https://github.com/CocoaPods/Specs.git'
 source 'http://60.205.190.38:9000/iOS/MKRPodSpecs.git'
 platform :ios, '9.2'
-
+use_frameworks!
 inhibit_all_warnings!
 target 'MKRRadioManager_Example' do
   pod 'MKRRadioManager', :path => '../'

+ 1 - 1
Example/Podfile.lock

@@ -18,6 +18,6 @@ SPEC CHECKSUMS:
   libASControl: 9bb0f71cadbfd0098ab28b8a944181090c68e393
   MKRRadioManager: 58c76664111b1c8241ccf6537a1b496a28ff7555
 
-PODFILE CHECKSUM: 8303461999b565769d01de92194b006141f64598
+PODFILE CHECKSUM: fc0757b7aa6dc79a3ae28a31aedac4f5ba495588
 
 COCOAPODS: 1.6.1

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRAVPlayer.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRAVPlayer/MKRAVPlayer.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRBTRadioControlManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRBTRadioManager/MKRBTRadioControlManager.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRM3UListModel.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWIFIDeviceManager/MKRM3UListModel.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRPlayControlProtocol.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRPlayControlProtocol.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRPlayResourceStatus.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRAVPlayer/MKRPlayResourceStatus.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRPlayResourceUpdateProtocol.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRPlayResourceUpdateProtocol.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRRadioControlMaster.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRRadioControlMaster.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRRadioPlayControlManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRRadioPlayControlManager.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRRadioResorce.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRRadioResorce.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRRadioResourceProtocol.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRRadioResourceProtocol.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRUPnPDevice.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWIFIDeviceManager/MKRUPnPDevice.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRWIFIDeviceManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWIFIDeviceManager/MKRWIFIDeviceManager.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/MKRWIFIRadioControlManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWifiRadioManager/MKRWIFIRadioControlManager.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/NSString+MKRRadioManagerAdd.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Category/NSString+MKRRadioManagerAdd.h

+ 0 - 1
Example/Pods/Headers/Private/MKRRadioManager/UIDevice+MKRRadioManagerAdd.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Category/UIDevice+MKRRadioManagerAdd.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRAVPlayer.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRAVPlayer/MKRAVPlayer.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRBTRadioControlManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRBTRadioManager/MKRBTRadioControlManager.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRM3UListModel.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWIFIDeviceManager/MKRM3UListModel.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRPlayControlProtocol.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRPlayControlProtocol.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRPlayResourceStatus.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRAVPlayer/MKRPlayResourceStatus.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRPlayResourceUpdateProtocol.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRPlayResourceUpdateProtocol.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRRadioControlMaster.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRRadioControlMaster.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRRadioPlayControlManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRRadioPlayControlManager.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRRadioResorce.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRRadioResorce.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRRadioResourceProtocol.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Headers/MKRRadioResourceProtocol.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRUPnPDevice.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWIFIDeviceManager/MKRUPnPDevice.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRWIFIDeviceManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWIFIDeviceManager/MKRWIFIDeviceManager.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/MKRWIFIRadioControlManager.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/MKRWifiRadioManager/MKRWIFIRadioControlManager.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/NSString+MKRRadioManagerAdd.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Category/NSString+MKRRadioManagerAdd.h

+ 0 - 1
Example/Pods/Headers/Public/MKRRadioManager/UIDevice+MKRRadioManagerAdd.h

@@ -1 +0,0 @@
-../../../../../MKRRadioManager/Classes/Category/UIDevice+MKRRadioManagerAdd.h

+ 1 - 1
Example/Pods/Manifest.lock

@@ -18,6 +18,6 @@ SPEC CHECKSUMS:
   libASControl: 9bb0f71cadbfd0098ab28b8a944181090c68e393
   MKRRadioManager: 58c76664111b1c8241ccf6537a1b496a28ff7555
 
-PODFILE CHECKSUM: 8303461999b565769d01de92194b006141f64598
+PODFILE CHECKSUM: fc0757b7aa6dc79a3ae28a31aedac4f5ba495588
 
 COCOAPODS: 1.6.1

File diff suppressed because it is too large
+ 523 - 408
Example/Pods/Pods.xcodeproj/project.pbxproj


+ 1 - 1
Example/Pods/Target Support Files/MKRRadioManager/MKRRadioManager-Info.plist

@@ -15,7 +15,7 @@
   <key>CFBundlePackageType</key>
   <string>FMWK</string>
   <key>CFBundleShortVersionString</key>
-  <string>0.1.0</string>
+  <string>0.0.1</string>
   <key>CFBundleSignature</key>
   <string>????</string>
   <key>CFBundleVersion</key>

+ 15 - 0
Example/Pods/Target Support Files/MKRRadioManager/MKRRadioManager-umbrella.h

@@ -10,6 +10,21 @@
 #endif
 #endif
 
+#import "NSString+MKRRadioManagerAdd.h"
+#import "UIDevice+MKRRadioManagerAdd.h"
+#import "MKRPlayControlProtocol.h"
+#import "MKRPlayResourceUpdateProtocol.h"
+#import "MKRRadioPlayControlManager.h"
+#import "MKRRadioResourceProtocol.h"
+#import "MKRAVPlayer.h"
+#import "MKRPlayResourceStatus.h"
+#import "MKRBTRadioControlManager.h"
+#import "MKRRadioControlMaster.h"
+#import "MKRRadioResorce.h"
+#import "MKRM3UListModel.h"
+#import "MKRUPnPDevice.h"
+#import "MKRWIFIDeviceManager.h"
+#import "MKRWIFIRadioControlManager.h"
 
 FOUNDATION_EXPORT double MKRRadioManagerVersionNumber;
 FOUNDATION_EXPORT const unsigned char MKRRadioManagerVersionString[];

+ 0 - 2
Example/Pods/Target Support Files/MKRRadioManager/MKRRadioManager.xcconfig

@@ -1,7 +1,5 @@
 CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager
-FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/libASControl/libASControl/Classes"
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
-HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/MKRRadioManager" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MKRRadioManager"
 PODS_BUILD_DIR = ${BUILD_DIR}
 PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
 PODS_ROOT = ${SRCROOT}

+ 2 - 2
Example/Pods/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example-frameworks.sh

@@ -153,10 +153,10 @@ strip_invalid_archs() {
 
 
 if [[ "$CONFIGURATION" == "Debug" ]]; then
-  install_framework "${PODS_ROOT}/libASControl/libASControl/Classes/libASControl.framework"
+  install_framework "${BUILT_PRODUCTS_DIR}/MKRRadioManager/MKRRadioManager.framework"
 fi
 if [[ "$CONFIGURATION" == "Release" ]]; then
-  install_framework "${PODS_ROOT}/libASControl/libASControl/Classes/libASControl.framework"
+  install_framework "${BUILT_PRODUCTS_DIR}/MKRRadioManager/MKRRadioManager.framework"
 fi
 if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
   wait

+ 4 - 5
Example/Pods/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example.debug.xcconfig

@@ -1,10 +1,9 @@
-FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/libASControl/libASControl/Classes"
+FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
-HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MKRRadioManager"
+HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager/MKRRadioManager.framework/Headers"
 LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
-LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
-OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/MKRRadioManager" -iframework "${PODS_ROOT}/libASControl/libASControl/Classes"
-OTHER_LDFLAGS = $(inherited) -ObjC -l"MKRRadioManager" -framework "libASControl" -framework "libUPNP" -framework "openssl"
+OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager/MKRRadioManager.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
+OTHER_LDFLAGS = $(inherited) -framework "MKRRadioManager"
 PODS_BUILD_DIR = ${BUILD_DIR}
 PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
 PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

+ 4 - 5
Example/Pods/Target Support Files/Pods-MKRRadioManager_Example/Pods-MKRRadioManager_Example.release.xcconfig

@@ -1,10 +1,9 @@
-FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/libASControl/libASControl/Classes"
+FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
-HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MKRRadioManager"
+HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager/MKRRadioManager.framework/Headers"
 LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
-LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
-OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/MKRRadioManager" -iframework "${PODS_ROOT}/libASControl/libASControl/Classes"
-OTHER_LDFLAGS = $(inherited) -ObjC -l"MKRRadioManager" -framework "libASControl" -framework "libUPNP" -framework "openssl"
+OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager/MKRRadioManager.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
+OTHER_LDFLAGS = $(inherited) -framework "MKRRadioManager"
 PODS_BUILD_DIR = ${BUILD_DIR}
 PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
 PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

+ 4 - 3
Example/Pods/Target Support Files/Pods-MKRRadioManager_Tests/Pods-MKRRadioManager_Tests.debug.xcconfig

@@ -1,7 +1,8 @@
-FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/libASControl/libASControl/Classes"
+FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
-HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MKRRadioManager"
-OTHER_LDFLAGS = $(inherited) -ObjC -framework "libASControl"
+HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager/MKRRadioManager.framework/Headers"
+LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
+OTHER_LDFLAGS = $(inherited) -framework "MKRRadioManager"
 PODS_BUILD_DIR = ${BUILD_DIR}
 PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
 PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

+ 4 - 3
Example/Pods/Target Support Files/Pods-MKRRadioManager_Tests/Pods-MKRRadioManager_Tests.release.xcconfig

@@ -1,7 +1,8 @@
-FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/libASControl/libASControl/Classes"
+FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager"
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
-HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MKRRadioManager"
-OTHER_LDFLAGS = $(inherited) -ObjC -framework "libASControl"
+HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MKRRadioManager/MKRRadioManager.framework/Headers"
+LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
+OTHER_LDFLAGS = $(inherited) -framework "MKRRadioManager"
 PODS_BUILD_DIR = ${BUILD_DIR}
 PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
 PODS_PODFILE_DIR_PATH = ${SRCROOT}/.

+ 0 - 1
Example/Pods/Target Support Files/libASControl/libASControl.xcconfig

@@ -1,5 +1,4 @@
 CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/libASControl
-FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/libASControl/libASControl/Classes"
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
 PODS_BUILD_DIR = ${BUILD_DIR}
 PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

File diff suppressed because it is too large
+ 0 - 301
Example/Pods/libASControl/libASControl/Classes/libASControl.framework/Headers/ASControlTools.h


二進制
Example/Pods/libASControl/libASControl/Classes/libASControl.framework/libASControl


+ 0 - 131
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/FreeList.h

@@ -1,131 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef FREE_LIST_H
-#define FREE_LIST_H
-
-/*!
- * \file
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "ithread.h"
-
-#include <errno.h>
-
-/*!
- * Free list node. points to next free item.
- * Memory for node is borrowed from allocated items.
- * \internal
- */
-typedef struct FREELISTNODE
-{
-	struct FREELISTNODE *next;
-} FreeListNode;
-
-/*!
- * Stores head and size of free list, as well as mutex for protection.
- * \internal
- */
-typedef struct FREELIST
-{
-	FreeListNode *head;
-	size_t element_size;
- 	int maxFreeListLength;
-	int freeListLength;
-} FreeList;
-
-/*!
- * \brief Initializes Free List.
- *
- * Must be called first and only once for FreeList.
- *
- * \return:
- *	\li \c 0 on success.
- *	\li \c EINVAL on failure.
- */
-int FreeListInit(
-	/*! Must be valid, non null, pointer to a linked list. */
-	FreeList *free_list,
-	/*! Size of elements to store in free list. */
-	size_t elementSize,
-	/*! Max size that the free list can grow to before returning
-	 * memory to O.S. */
-	int maxFreeListLength);
-
-/*!
- * \brief Allocates chunk of set size.
- *
- * If a free item is available in the list, returnes the stored item,
- * otherwise calls the O.S. to allocate memory.
- *
- * \return Non NULL on success. NULL on failure.
- */
-void *FreeListAlloc(
-	/*! Must be valid, non null, pointer to a linked list. */
-	FreeList *free_list);
-
-/*!
- * \brief Returns an item to the Free List.
- *
- * If the free list is smaller than the max size then adds the item to the
- * free list, otherwise returns the item to the O.S.
- *
- * \return:
- *	\li \c 0 on success.
- *	\li \c EINVAL on failure.
- */
-int FreeListFree(
-	/*! Must be valid, non null, pointer to a free list. */
-	FreeList *free_list,
-	/*! Must be a pointer allocated by FreeListAlloc. */
-	void *element);
-
-/*!
- * \brief Releases the resources stored with the free list.
- *
- * \return:
- *	\li \c 0 on success.
- *	\li \c EINVAL on failure.
- */
-int FreeListDestroy(
-	/*! Must be valid, non null, pointer to a linked list. */
-	FreeList *free_list);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* FREE_LIST_H */
-

+ 0 - 289
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/LinkedList.h

@@ -1,289 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef LINKED_LIST_H
-#define LINKED_LIST_H
-
-/*!
- * \file
- */
-
-#include "FreeList.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define EOUTOFMEM (-7 & 1<<29)
-
-#define FREELISTSIZE 100
-#define LIST_SUCCESS 1
-#define LIST_FAIL 0
-
-/*! Function for freeing list items. */
-typedef void (*free_function)(void *arg);
-
-/*! Function for comparing list items. Returns 1 if itemA==itemB */
-typedef int (*cmp_routine)(void *itemA,void *itemB);
-
-/*! Linked list node. Stores generic item and pointers to next and prev.
- * \internal
- */
-typedef struct LISTNODE
-{
-	struct LISTNODE *prev;
-	struct LISTNODE *next;
-	void *item;
-} ListNode;
-
-/*!
- * Linked list (no protection).
- *
- * Because this is for internal use, parameters are NOT checked for validity.
- * The first item of the list is stored at node: head->next
- * The last item of the list is stored at node: tail->prev
- * If head->next=tail, then list is empty.
- * To iterate through the list:
- *
- *	LinkedList g;
- *	ListNode *temp = NULL;
- *	for (temp = ListHead(g);temp!=NULL;temp = ListNext(g,temp)) {
- *	}
- *
- * \internal
- */
-typedef struct LINKEDLIST
-{
-	/*! head, first item is stored at: head->next */
-	ListNode head;
-	/*! tail, last item is stored at: tail->prev  */
-	ListNode tail;
-	/*! size of list */
-	long size;
-	/*! free list to use */
-	FreeList freeNodeList;
-	/*! free function to use */
-	free_function free_func;
-	/*! compare function to use */
-	cmp_routine cmp_func;
-} LinkedList;
-
-/*!
- * \brief Initializes LinkedList. Must be called first and only once for List.
- * 
- *  \return
- *	\li \c 0 on success.
- *	\li \c EOUTOFMEM on failure.
- */
-int ListInit(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Function used to compare items. (May be NULL). */
-	cmp_routine cmp_func,
-	/*! Function used to free items. (May be NULL). */
-	free_function free_func);
-
-/*!
- * \brief Adds a node to the head of the list. Node gets immediately after
- * list head.
- *
- *  Precondition:
- *      The list has been initialized.
- *
- * \return The pointer to the ListNode on success, NULL on failure.
- */
-ListNode *ListAddHead(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Item to be added. */
-	void *item);
-
-/*!
- * \brief Adds a node to the tail of the list. Node gets added immediately
- * before list.tail.
- *
- * Precondition: The list has been initialized.
- *
- * \return The pointer to the ListNode on success, NULL on failure.
- */
-ListNode *ListAddTail(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Item to be added. */
-	void *item);
-
-/*!
- * \brief Adds a node after the specified node. Node gets added immediately
- * after bnode.
- *
- *  Precondition: The list has been initialized.
- *
- * \return The pointer to the ListNode on success, NULL on failure.
- */
-ListNode *ListAddAfter(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Item to be added. */
-	void *item,
-	/*! Node to add after. */
-	ListNode *bnode);
-
-/*!
- * \brief Adds a node before the specified node. Node gets added immediately
- * before anode.
- *
- * Precondition: The list has been initialized.
- *
- * \return The pointer to the ListNode on success, NULL on failure.
- */
-ListNode *ListAddBefore(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Item to be added. */
-	void *item,
-	/*! Node to add in front of. */
-	ListNode *anode);
-
-/*!
- * \brief Removes a node from the list. The memory for the node is freed.
- *
- * Precondition: The list has been initialized.
- *
- * \return The pointer to the item stored in the node or NULL if the item
- * is freed.
- */
-void *ListDelNode(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Node to delete. */
-	ListNode *dnode,
-	/*! if !0 then item is freed using free function. If 0 (or free
-	 * function is NULL) then item is not freed. */
-	int freeItem);
-
-/*!
- * \brief Removes all memory associated with list nodes. Does not free
- * LinkedList *list.
- *
- * Precondition: The list has been initialized.
- *
- * \return 0 on success, EINVAL on failure.
- */
-int ListDestroy(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! if !0 then item is freed using free function. If 0 (or free
-	 * function is NULL) then item is not freed. */
-	int freeItem);
-
-/*!
- * \brief Returns the head of the list.
- *    
- * Precondition: The list has been initialized.
- *
- * \return The head of the list. NULL if list is empty.
- */
-ListNode *ListHead(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list);
-
-/*!
- * \brief Returns the tail of the list.
- *    
- * Precondition: The list has been initialized.
- *
- * \return The tail of the list. NULL if list is empty.
- */
-ListNode *ListTail(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list);
-
-/*!
- * \brief Returns the next item in the list.
- *    
- * Precondition: The list has been initialized.
- *
- * \return The next item in the list. NULL if there are no more items in list.
- */
-ListNode *ListNext(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Node from the list. */
-	ListNode *node);
-
-/*!
- * \brief Returns the previous item in the list.
- *    
- * Precondition: The list has been initialized.
- *
- * \return The previous item in the list. NULL if there are no more items in list.
- */
-ListNode *ListPrev(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! Node from the list. */
-	ListNode *node);
-
-/*!
- * \brief Finds the specified item in the list.
- *
- * Uses the compare function specified in ListInit. If compare function
- * is NULL then compares items as pointers.
- *
- * Precondition: The list has been initialized.
- *
- * \return The node containing the item. NULL if no node contains the item.
- */
-ListNode* ListFind(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList *list,
-	/*! The node to start from, NULL if to start from beginning. */
-	ListNode *start,
-	/*! The item to search for. */
-	void *item);
-
-/*!
- * \brief Returns the size of the list.
- *
- * Precondition: The list has been initialized.
- *
- * \return The number of items in the list.
- */
-long ListSize(
-	/*! Must be valid, non null, pointer to a linked list. */
-	LinkedList* list);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* LINKED_LIST_H */
-

+ 0 - 536
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ThreadPool.h

@@ -1,536 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef THREADPOOL_H
-#define THREADPOOL_H
-
-/*!
- * \file
- */
-
-#include "FreeList.h"
-#include "ithread.h"
-#include "LinkedList.h"
-#include "UpnpInet.h"
-#include "UpnpGlobal.h" /* for UPNP_INLINE, EXPORT_SPEC */
-
-#include <errno.h>
-
-#ifdef WIN32
-	#include <time.h>
-	struct timezone
-	{
-		int  tz_minuteswest; /* minutes W of Greenwich */
-		int  tz_dsttime;     /* type of dst correction */
-	};
-	int gettimeofday(struct timeval *tv, struct timezone *tz);
-#else /* WIN32 */
-	#include <sys/param.h>
-	#include <sys/time.h> /* for gettimeofday() */
-	#if defined(__OSX__) || defined(__APPLE__) || defined(__NetBSD__)
-		#include <sys/resource.h>	/* for setpriority() */
-	#endif
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*! Size of job free list */
-#define JOBFREELISTSIZE 100
-
-#define INFINITE_THREADS -1
-
-#define EMAXTHREADS (-8 & 1<<29)
-
-/*! Invalid Policy */
-#define INVALID_POLICY (-9 & 1<<29)
-
-/*! Invalid JOB Id */
-#define INVALID_JOB_ID (-2 & 1<<29)
-
-typedef enum duration {
-	SHORT_TERM,
-	PERSISTENT
-} Duration;
-
-typedef enum priority {
-	LOW_PRIORITY,
-	MED_PRIORITY,
-	HIGH_PRIORITY
-} ThreadPriority;
-
-/*! default priority used by TPJobInit */
-#define DEFAULT_PRIORITY MED_PRIORITY
-
-/*! default minimum used by TPAttrInit */
-#define DEFAULT_MIN_THREADS 1
-
-/*! default max used by TPAttrInit */
-#define DEFAULT_MAX_THREADS 10
-
-/*! default stack size used by TPAttrInit */
-#define DEFAULT_STACK_SIZE 0u
-
-/*! default jobs per thread used by TPAttrInit */
-#define DEFAULT_JOBS_PER_THREAD 10
-
-/*! default starvation time used by TPAttrInit */
-#define DEFAULT_STARVATION_TIME	500
-
-/*! default idle time used by TPAttrInit */
-#define DEFAULT_IDLE_TIME 10 * 1000
-
-/*! default free routine used TPJobInit */
-#define DEFAULT_FREE_ROUTINE NULL
-
-/*! default max jobs used TPAttrInit */
-#define DEFAULT_MAX_JOBS_TOTAL 100
-
-/*!
- * \brief Statistics.
- *
- * Always include stats because code change is minimal.
- */
-#define STATS 1
-
-#ifdef _DEBUG
-	#define DEBUG 1
-#endif
-
-typedef int PolicyType;
-
-#define DEFAULT_POLICY SCHED_OTHER
-
-/*! Function for freeing a thread argument. */
-typedef void (*free_routine)(void *arg);
-
-
-/*! Attributes for thread pool. Used to set and change parameters of thread
- * pool. */
-typedef struct THREADPOOLATTR
-{
-	/*! ThreadPool will always maintain at least this many threads. */
-	int minThreads;
-	/*! ThreadPool will never have more than this number of threads. */
-	int maxThreads;
-	/*! This is the minimum stack size allocated for each thread. */
-	size_t stackSize;
-	/*! This is the maximum time a thread will
-	 * remain idle before dying (in milliseconds). */
-	int maxIdleTime;
-	/*! Jobs per thread to maintain. */
-	int jobsPerThread;
-	/*! Maximum number of jobs that can be queued totally. */
-	int maxJobsTotal;
-	/*! the time a low priority or med priority job waits before getting
-	 * bumped up a priority (in milliseconds). */
-	int starvationTime;
-	/*! scheduling policy to use. */
-	PolicyType schedPolicy;
-} ThreadPoolAttr;
-
-/*! Internal ThreadPool Job. */
-typedef struct THREADPOOLJOB
-{
-	start_routine func;
-	void *arg;
-	free_routine free_func;
-	struct timeval requestTime;
-	ThreadPriority priority;
-	int jobId;
-} ThreadPoolJob;
-
-/*! Structure to hold statistics. */
-typedef struct TPOOLSTATS
-{
-	double totalTimeHQ;
-	int totalJobsHQ;
-	double avgWaitHQ;
-	double totalTimeMQ;
-	int totalJobsMQ;
-	double avgWaitMQ;
-	double totalTimeLQ;
-	int totalJobsLQ;
-	double avgWaitLQ;
-	double totalWorkTime;
-	double totalIdleTime;
-	int workerThreads;
-	int idleThreads;
-	int persistentThreads;
-	int totalThreads;
-	int maxThreads;
-	int currentJobsHQ;
-	int currentJobsLQ;
-	int currentJobsMQ;
-} ThreadPoolStats;
-
-/*!
- * \brief A thread pool similar to the thread pool in the UPnP SDK.
- *
- * Allows jobs to be scheduled for running by threads in a 
- * thread pool. The thread pool is initialized with a 
- * minimum and maximum thread number as well as a max idle time
- * and a jobs per thread ratio. If a worker thread waits the whole
- * max idle time without receiving a job and the thread pool
- * currently has more threads running than the minimum
- * then the worker thread will exit. If when 
- * scheduling a job the current job to thread ratio
- * becomes greater than the set ratio and the thread pool currently has
- * less than the maximum threads then a new thread will
- * be created.
- */
-typedef struct THREADPOOL
-{
-	/*! Mutex to protect job qs. */
-	ithread_mutex_t mutex;
-	/*! Condition variable to signal Q. */
-	ithread_cond_t condition;
-	/*! Condition variable for start and stop. */
-	ithread_cond_t start_and_shutdown;
-	/*! ids for jobs */
-	int lastJobId;
-	/*! whether or not we are shutting down */
-	int shutdown;
-	/*! total number of threads */
-	int totalThreads;
-	/*! flag that's set when waiting for a new worker thread to start */
-	int pendingWorkerThreadStart;
-	/*! number of threads that are currently executing jobs */
-	int busyThreads;
-	/*! number of persistent threads */
-	int persistentThreads;
-	/*! free list of jobs */
-	FreeList jobFreeList;
-	/*! low priority job Q */
-	LinkedList lowJobQ;
-	/*! med priority job Q */
-	LinkedList medJobQ;
-	/*! high priority job Q */
-	LinkedList highJobQ;
-	/*! persistent job */
-	ThreadPoolJob *persistentJob;
-	/*! thread pool attributes */
-	ThreadPoolAttr attr;
-	/*! statistics */
-	ThreadPoolStats stats;
-} ThreadPool;
-
-/*!
- * \brief Initializes and starts ThreadPool. Must be called first and
- * only once for ThreadPool.
- *
- * \return
- * \li \c 0 on success.
- * \li \c EAGAIN if not enough system resources to create minimum threads.
- * \li \c INVALID_POLICY if schedPolicy can't be set.
- * \li \c EMAXTHREADS if minimum threads is greater than maximum threads.
- */
-int ThreadPoolInit(
-	/*! Must be valid, non null, pointer to ThreadPool. */
-	ThreadPool *tp,
-	/*! Can be null. if not null then attr contains the following fields:
-	 * \li \c minWorkerThreads - minimum number of worker threads thread
-	 * pool will never have less than this number of threads.
-	 * \li \c maxWorkerThreads - maximum number of worker threads thread
-	 * pool will never have more than this number of threads.
-	 * \li \c maxIdleTime - maximum time that a worker thread will spend
-	 * idle. If a worker is idle longer than this time and there are more
-	 * than the min number of workers running, then the worker thread
-	 * exits.
-	 * \li \c jobsPerThread - ratio of jobs to thread to try and maintain
-	 * if a job is scheduled and the number of jobs per thread is greater
-	 * than this number,and if less than the maximum number of workers are
-	 * running then a new thread is started to help out with efficiency.
-	 * \li \c schedPolicy - scheduling policy to try and set (OS dependent).
-	 */
-	ThreadPoolAttr *attr);
-
-/*!
- * \brief Adds a persistent job to the thread pool.
- *
- * Job will be run as soon as possible. Call will block until job is scheduled.
- * 
- * \return
- *	\li \c 0 on success.
- *	\li \c EOUTOFMEM not enough memory to add job.
- *	\li \c EMAXTHREADS not enough threads to add persistent job.
- */
-int ThreadPoolAddPersistent(
-	/*! Valid thread pool pointer. */
-	ThreadPool*tp,
-	/*! Valid thread pool job. */
-	ThreadPoolJob *job,
-	/*! . */
-	int *jobId);
-
-/*!
- * \brief Gets the current set of attributes associated with the thread pool.
- *
- * \return
- * 	\li \c 0 on success, nonzero on failure.
- */
-int ThreadPoolGetAttr(
-	/*! valid thread pool pointer. */
-	ThreadPool *tp,
-	/*! non null pointer to store attributes. */
-	ThreadPoolAttr *out);
-
-/*!
- * \brief Sets the attributes for the thread pool.
- * Only affects future calculations.
- *
- * \return
- * 	\li \c 0 on success, nonzero on failure.
- * 	\li \c INVALID_POLICY if policy can not be set.
- */
-int ThreadPoolSetAttr(
-	/*! valid thread pool pointer. */
-	ThreadPool *tp,
-	/*! pointer to attributes, null sets attributes to default. */
-	ThreadPoolAttr *attr);
-
-/*!
- * \brief Adds a job to the thread pool. Job will be run as soon as possible.
- *
- * \return
- * 	\li \c 0 on success, nonzero on failure.
- * 	\li \c EOUTOFMEM if not enough memory to add job.
- */
-int ThreadPoolAdd(
-	/*! valid thread pool pointer. */
-	ThreadPool*tp,
-	/*! . */
-	ThreadPoolJob *job,
-	/*! id of job. */
-	int *jobId);
-
-/*!
- * \brief Removes a job from the thread pool. Can only remove jobs which
- * are not currently running.
- *
- * \return
- * 	\li \c 0 on success, nonzero on failure.
- * 	\li \c INVALID_JOB_ID if job not found. 
- */
-int ThreadPoolRemove(
-	/*! valid thread pool pointer. */
-	ThreadPool *tp,
-	/*! id of job. */
-	int jobId,
-	/*! space for removed job. */
-	ThreadPoolJob *out);
-
-/*!
- * \brief Shuts the thread pool down. Waits for all threads to finish.
- * May block indefinitely if jobs do not exit.
- *
- * \return 0 on success, nonzero on failure
- */
-int ThreadPoolShutdown(
-	/*! must be valid tp. */
-	ThreadPool *tp);
-
-/*!
- * \brief Initializes thread pool job. Sets the priority to default defined
- * in ThreadPool.h. Sets the free_routine to default defined in ThreadPool.h.
- *
- * \return Always returns 0.
- */
-int TPJobInit(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolJob *job,
-	/*! function to run, must be valid. */
-	start_routine func,
-	/*! argument to pass to function. */
-	void *arg);
-
-/*!
- * \brief Sets the max threads for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPJobSetPriority(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolJob *job,
-	/*! value to set. */
-	ThreadPriority priority);
-
-/*!
- * \brief Sets the max threads for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPJobSetFreeFunction(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolJob *job,
-	/*! value to set. */
-	free_routine func);
-
-/*!
- * \brief Initializes thread pool attributes. Sets values to defaults defined
- * in ThreadPool.h.
- *
- * \return Always returns 0.
- */
-int TPAttrInit(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr);
-
-/*!
- * \brief Sets the max threads for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPAttrSetMaxThreads(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! value to set. */
-	int maxThreads);
-
-/*!
- * \brief Sets the min threads for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPAttrSetMinThreads(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! value to set. */
-	int minThreads);
-
-/*!
- * \brief Sets the stack size for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPAttrSetStackSize(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! value to set. */
-	size_t stackSize);
-
-/*!
- * \brief Sets the idle time for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPAttrSetIdleTime(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! . */
-	int idleTime);
-
-/*!
- * \brief Sets the jobs per thread ratio
- *
- * \return Always returns 0.
- */
-int TPAttrSetJobsPerThread(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! number of jobs per thread to maintain. */
-	int jobsPerThread);
-
-/*!
- * \brief Sets the starvation time for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPAttrSetStarvationTime(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! milliseconds. */
-	int starvationTime);
-
-/*!
- * \brief Sets the scheduling policy for the thread pool attributes.
- *
- * \return Always returns 0.
- */
-int TPAttrSetSchedPolicy(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! must be a valid policy type. */
-	PolicyType schedPolicy);
-
-/*!
- * \brief Sets the maximum number jobs that can be qeued totally.
- *
- * \return Always returns 0.
- */
-int TPAttrSetMaxJobsTotal(
-	/*! must be valid thread pool attributes. */
-	ThreadPoolAttr *attr,
-	/*! maximum number of jobs. */
-	int maxJobsTotal);
-
-/*!
- * \brief Returns various statistics about the thread pool.
- *
- * Only valid if STATS has been defined.
- *
- * \return Always returns 0.
- */
-#ifdef STATS
-	EXPORT_SPEC int ThreadPoolGetStats(
-		/*! Valid initialized threadpool. */
-		ThreadPool *tp,
-		/*! Valid stats, out parameter. */
-		ThreadPoolStats *stats);
-#else
-	static UPNP_INLINE int ThreadPoolGetStats(
-		/*! Valid initialized threadpool. */
-		ThreadPool *tp,
-		/*! Valid stats, out parameter. */
-		ThreadPoolStats *stats) {}
-#endif
-
-/*!
- * \brief
- */
-#ifdef STATS
-	EXPORT_SPEC void ThreadPoolPrintStats(
-		/*! . */
-		ThreadPoolStats *stats);
-#else
-	static UPNP_INLINE void ThreadPoolPrintStats(
-		/*! . */
-		ThreadPoolStats *stats) {}
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* THREADPOOL_H */
-

+ 0 - 161
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/TimerThread.h

@@ -1,161 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef TIMERTHREAD_H
-#define TIMERTHREAD_H
-
-/*!
- * \file
- */
-
-#include "FreeList.h"
-#include "ithread.h"
-#include "LinkedList.h"
-#include "ThreadPool.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define INVALID_EVENT_ID (-10 & 1<<29)
-
-/*! Timeout Types. */
-typedef enum timeoutType {
-	/*! seconds from Jan 1, 1970. */
-	ABS_SEC,
-	/*! seconds from current time. */
-	REL_SEC
-} TimeoutType;
-
-/*!
- * A timer thread similar to the one in the Upnp SDK that allows
- * the scheduling of a job to run at a specified time in the future.
- *
- * Because the timer thread uses the thread pool there is no 
- * gurantee of timing, only approximate timing.
- *
- * Uses ThreadPool, Mutex, Condition, Thread.
- */
-typedef struct TIMERTHREAD
-{
-	ithread_mutex_t mutex;
-	ithread_cond_t condition;
-	int lastEventId;
-	LinkedList eventQ;
-	int shutdown;
-	FreeList freeEvents;
-	ThreadPool *tp;
-} TimerThread;
-
-/*!
- * Struct to contain information for a timer event.
- *
- * Internal to the TimerThread.
- */
-typedef struct TIMEREVENT
-{
-	ThreadPoolJob job;
-	/*! [in] Absolute time for event in seconds since Jan 1, 1970. */
-	time_t eventTime;
-	/*! [in] Long term or short term job. */
-	Duration persistent;
-	int id;
-} TimerEvent;
-
-/*!
- * \brief Initializes and starts timer thread.
- *
- * \return 0 on success, nonzero on failure. Returns error from
- * 	ThreadPoolAddPersistent on failure.
- */
-int TimerThreadInit(
-	/*! [in] Valid timer thread pointer. */
-	TimerThread *timer,
-	/*! [in] Valid thread pool to use. Must be started. Must be valid for
-	 * lifetime of timer. Timer must be shutdown BEFORE thread pool. */
-	ThreadPool *tp);
-
-/*!
- * \brief Schedules an event to run at a specified time.
- *
- * \return 0 on success, nonzero on failure, EOUTOFMEM if not enough memory
- * 	to schedule job.
- */
-int TimerThreadSchedule(
-	/*! [in] Valid timer thread pointer. */
-	TimerThread* timer,
-	/*! [in] time of event. Either in absolute seconds, or relative
-	 * seconds in the future. */
-	time_t time, 
-	/*! [in] either ABS_SEC, or REL_SEC. If REL_SEC, then the event
-	 * will be scheduled at the current time + REL_SEC. */
-	TimeoutType type,
-	/*! [in] Valid Thread pool job with following fields. */
-	ThreadPoolJob *job,
-	/*! [in] . */
-	Duration duration,
-	/*! [in] Id of timer event. (out, can be null). */
-	int *id);
-
-/*!
- * \brief Removes an event from the timer Q.
- *
- * Events can only be removed before they have been placed in the thread pool.
- *
- * \return 0 on success, INVALID_EVENT_ID on failure.
- */
-int TimerThreadRemove(
-	/*! [in] Valid timer thread pointer. */
-	TimerThread *timer,
-	/*! [in] Id of event to remove. */
-	int id,
-	/*! [in] Space for thread pool job. */
-	ThreadPoolJob *out);
-
-/*!
- * \brief Shutdown the timer thread.
- *
- * Events scheduled in the future will NOT be run.
- *
- * Timer thread should be shutdown BEFORE it's associated thread pool.
- *
- * \return 0 if succesfull, nonzero otherwise. Always returns 0.
- */
-int TimerThreadShutdown(
-	/*! [in] Valid timer thread pointer. */
-	TimerThread *timer);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* TIMER_THREAD_H */
-

+ 0 - 122
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpGlobal.h

@@ -1,122 +0,0 @@
-#ifndef UPNPGLOBAL_H
-#define UPNPGLOBAL_H
-
-/*!
- * \file
- *
- * \brief Defines constants that for some reason are not defined on some systems.
- */
-
-#if defined MYLIB_LARGEFILE_SENSITIVE && _FILE_OFFSET_BITS+0 != 64
-	#if defined __GNUC__
-		#warning libupnp requires largefile mode - use AC_SYS_LARGEFILE
-	#else
-		#error  libupnp requires largefile mode - use AC_SYS_LARGEFILE
-	#endif
-#endif
-
-#ifdef WIN32
-	/*
-	 * EXPORT_SPEC
-	 */
-	#ifdef UPNP_STATIC_LIB
-		#define EXPORT_SPEC
-	#else /* UPNP_STATIC_LIB */
-		#ifdef LIBUPNP_EXPORTS
-			/*! set up declspec for dll export to make functions
-			 * visible to library users */
-			#define EXPORT_SPEC __declspec(dllexport)
-		#else /* LIBUPNP_EXPORTS */
-			#define EXPORT_SPEC __declspec(dllimport)
-		#endif /* LIBUPNP_EXPORTS */
-	#endif /* UPNP_STATIC_LIB */
-
-	/*
-	 * UPNP_INLINE
-	 * PRId64
-	 * PRIzd
-	 * PRIzu
-	 * PRIzx
-	 */
-	#ifdef UPNP_USE_MSVCPP
-		/* define some things the M$ VC++ doesn't know */
-		#define UPNP_INLINE _inline
-		typedef __int64 int64_t;
-		#define PRId64 "I64d"
-		#define PRIzd "ld"
-		#define PRIzu "lu"
-		#define PRIzx "lx"
-	#endif /* UPNP_USE_MSVCPP */
-
-	#ifdef UPNP_USE_BCBPP
-		/* define some things Borland Builder doesn't know */
-		#define UPNP_INLINE inline
-		typedef __int64 int64_t;
-		#warning The Borland C compiler is probably broken on PRId64,
-		#warning please someone provide a proper fix here
-		#define PRId64 "I64d"
-		#define PRIzd "zd"
-		#define PRIzu "zu"
-		#define PRIzx "zx"
-	#endif /* UPNP_USE_BCBPP */
-
-	#ifdef __GNUC__
-		#define UPNP_INLINE inline
-		/* Note with PRIzu that in the case of Mingw32, it's the MS C
-		 * runtime printf which ends up getting called, not the glibc
-		 * printf, so it genuinely doesn't have "zu"
-		 */
-		#define PRIzd "ld"
-		#define PRIzu "lu"
-		#define PRIzx "lx"
-	#endif /* __GNUC__ */
-#else
-	/*! 
-	 * \brief Export functions on WIN32 DLLs.
-	 *
-	 * Every funtion that belongs to the library API must use this
-	 * definition upon declaration or it will not be exported on WIN32
-	 * DLLs.
-	 */
-	#define EXPORT_SPEC
-
-	/*!
-	 * \brief Declares an inline function.
-	 *
-	 * Surprisingly, there are some compilers that do not understand the
-	 * inline keyword. This definition makes the use of this keyword
-	 * portable to these systems.
-	 */
-	#ifdef __STRICT_ANSI__
-		#define UPNP_INLINE __inline__
-	#else
-		#define UPNP_INLINE inline
-	#endif
-
-	/*!
-	 * \brief Supply the PRId64 printf() macro.
-	 *
-	 * MSVC still does not know about this.
-	 */
-	/* #define PRId64 PRId64 */
-
-	/*!
-	 * \brief Supply the PRIz* printf() macros.
-	 *
-	 * These macros were invented so that we can live a little longer with
-	 * MSVC lack of C99. "z" is the correct printf() size specifier for
-	 * the size_t type.
-	 */
-	#define PRIzd "zd"
-	#define PRIzu "zu"
-	#define PRIzx "zx"
-#endif
-
-/*
- * Defining this macro here gives some interesting information about unused
- * functions in the code. Of course, this should never go uncommented on a
- * release.
- */
-/*#define inline*/
-
-#endif /* UPNPGLOBAL_H */

+ 0 - 67
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpInet.h

@@ -1,67 +0,0 @@
-#ifndef UPNPINET_H
-#define UPNPINET_H
-
-/*!
- * \addtogroup Sock
- * 
- * @{
- * 
- * \file
- *
- * \brief Provides a platform independent way to include TCP/IP types and functions.
- */
-
-#include "UpnpUniStd.h" /* for close() */
-
-#ifdef WIN32
-	#include <stdarg.h>
-	#ifndef UPNP_USE_MSVCPP
-		/* Removed: not required (and cause compilation issues) */
-		#include <winbase.h>
-		#include <windef.h>
-	#endif
-	#include <winsock2.h>
-	#include <iphlpapi.h>
-	#include <ws2tcpip.h>
-
-	#define UpnpCloseSocket closesocket
-
-	#if(_WIN32_WINNT < 0x0600)
-		typedef short sa_family_t;
-	#else
-		typedef ADDRESS_FAMILY sa_family_t;
-	#endif
-
-#else /* WIN32 */
-	#include <sys/param.h>
-	#if defined(__sun)
-		#include <fcntl.h>
-		#include <sys/sockio.h>
-	#elif (defined(BSD) && BSD >= 199306) || defined (__FreeBSD_kernel__)
-		#include <ifaddrs.h>
-		/* Do not move or remove the include below for "sys/socket"!
-		 * Will break FreeBSD builds. */
-		#include <sys/socket.h>
-	#endif
-	#include <arpa/inet.h>  /* for inet_pton() */
-	#include <net/if.h>
-	#include <netinet/in.h>
-
-	/*! This typedef makes the code slightly more WIN32 tolerant.
-	 * On WIN32 systems, SOCKET is unsigned and is not a file
-	 * descriptor. */
-	typedef int SOCKET;
-
-	/*! INVALID_SOCKET is unsigned on win32. */
-	#define INVALID_SOCKET (-1)
-
-	/*! select() returns SOCKET_ERROR on win32. */
-	#define SOCKET_ERROR (-1)
-
-	/*! Alias to close() to make code more WIN32 tolerant. */
-	#define UpnpCloseSocket close
-#endif /* WIN32 */
-
-/* @} Sock */
-
-#endif /* UPNPINET_H */

+ 0 - 11
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpIntTypes.h

@@ -1,11 +0,0 @@
-#ifndef UPNPINTTYPES_H
-#define UPNPINTTYPES_H
-
-#if !defined(UPNP_USE_BCBPP)
-
-/* Printf format for integers. */
-#include <inttypes.h>
-
-#endif /* !defined(UPNP_USE_BCBPP) */
-
-#endif /* UPNPINTTYPES_H */

+ 0 - 20
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpStdInt.h

@@ -1,20 +0,0 @@
-#ifndef UPNPSTDINT_H
-#define UPNPSTDINT_H
-
-#if !defined(UPNP_USE_BCBPP)
-
-/* Sized integer types. */
-#include <stdint.h>
-
-#ifdef UPNP_USE_MSVCPP
-	/* no ssize_t defined for VC */
-	#ifdef  _WIN64
-		typedef int64_t ssize_t;
-	#else
-		typedef int32_t ssize_t;
-	#endif
-#endif
-
-#endif /* !defined(UPNP_USE_BCBPP) */
-
-#endif /* UPNPSTDINT_H */

+ 0 - 171
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpString.h

@@ -1,171 +0,0 @@
-
-
-#ifndef STRING_H
-#define STRING_H
-
-
-/*!
- * \defgroup UpnpString The UpnpString Class
- *
- * \brief Implements string operations in the UPnP library.
- *
- * \author Marcelo Roberto Jimenez
- *
- * \version 1.0
- *
- * @{
- *
- * \file
- *
- * \brief UpnpString object declaration.
- */
-
-
-#include "UpnpGlobal.h" /* for EXPORT_SPEC */
-
-
-#include <stdlib.h> /* for size_t */
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
-/*!
- * \brief Type of the string objects inside libupnp.
- */
-typedef struct s_UpnpString UpnpString;
-
-
-/*!
- * \brief Constructor.
- *
- * \return A pointer to a new allocated object.
- */
-EXPORT_SPEC UpnpString *UpnpString_new();
-
-
-/*!
- * \brief Destructor.
- */
-EXPORT_SPEC void UpnpString_delete(
-	/*! [in] The \em \b this pointer. */
-	UpnpString *p);
-
-
-/*!
- * \brief Copy Constructor.
- *
- * \return A pointer to a new allocated copy of the original object.
- */
-EXPORT_SPEC UpnpString *UpnpString_dup(
-	/*! [in] The \em \b this pointer. */
-	const UpnpString *p);
-
-
-/*!
- * \brief Assignment operator.
- */
-EXPORT_SPEC void UpnpString_assign(
-	/*! [in] The \em \b this pointer. */
-	UpnpString *p,
-	/*! [in] The \em \b that pointer. */
-	const UpnpString *q);
-
-
-/*!
- * \brief Returns the length of the string.
- *
- * \return The length of the string.
- * */
-EXPORT_SPEC size_t UpnpString_get_Length(
-	/*! [in] The \em \b this pointer. */
-	const UpnpString *p);
-
-
-/*!
- * \brief Truncates the string to the specified lenght, or does nothing
- * if the current lenght is less than or equal to the requested length.
- * */
-EXPORT_SPEC void UpnpString_set_Length(
-	/*! [in] The \em \b this pointer. */
-	UpnpString *p,
-	/*! [in] The requested length. */
-	size_t n);
-
-
-/*!
- * \brief Returns the pointer to char.
- *
- * \return The pointer to char.
- */
-EXPORT_SPEC const char *UpnpString_get_String(
-	/*! [in] The \em \b this pointer. */
-	const UpnpString *p);
-
-
-/*!
- * \brief Sets the string from a pointer to char.
- */
-EXPORT_SPEC int UpnpString_set_String(
-	/*! [in] The \em \b this pointer. */
-	UpnpString *p,
-	/*! [in] (char *) to copy from. */
-	const char *s);
-
-
-/*!
- * \brief Sets the string from a pointer to char using a maximum of N chars.
- */
-EXPORT_SPEC int UpnpString_set_StringN(
-	/*! [in] The \em \b this pointer. */
-	UpnpString *p,
-	/*! [in] (char *) to copy from. */
-	const char *s,
-	/*! Maximum number of chars to copy.*/
-	size_t n);
-
-
-/*!
- * \brief Clears the string, sets its size to zero.
- */
-EXPORT_SPEC void UpnpString_clear(
-	/*! [in] The \em \b this pointer. */
-	UpnpString *p);
-
-
-/*!
- * \brief Compares two strings for equality. Case matters.
- *
- * \return The result of strcmp().
- */
-EXPORT_SPEC int UpnpString_cmp(
-	/*! [in] The \em \b the first string. */
-	UpnpString *p,
-	/*! [in] The \em \b the second string. */
-	UpnpString *q);
-
-
-/*!
- * \brief Compares two strings for equality. Case does not matter.
- *
- * \return The result of strcasecmp().
- */
-EXPORT_SPEC int UpnpString_casecmp(
-	/*! [in] The \em \b the first string. */
-	UpnpString *p,
-	/*! [in] The \em \b the second string. */
-	UpnpString *q);
-
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-
-/* @} UpnpString The UpnpString API */
-
-
-#endif /* STRING_H */
-

+ 0 - 10
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/UpnpUniStd.h

@@ -1,10 +0,0 @@
-#ifndef UPNPUNISTD_H
-#define UPNPUNISTD_H
-
-#ifdef WIN32
-	/* Do not #include <unistd.h> on WIN32. */
-#else /* WIN32 */
-	#include <unistd.h> /* for close() */
-#endif /* WIN32 */
-
-#endif /* UPNPUNISTD_H */

+ 0 - 69
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/VirtualDir.h

@@ -1,69 +0,0 @@
-
-
-#ifndef VIRTUALDIR_H
-#define VIRTUALDIR_H
-
-
-/** The \b VirtualDirCallbacks structure contains the pointers to
- *  file-related callback functions a device application can register to
- *  virtualize URLs.  
- */
-struct VirtualDirCallbacks
-{
-	/** Called by the web server to query information on a file.  The callback
-	 *  should return 0 on success or -1 on an error. */
-	VDCallback_GetInfo get_info;
-
-	/** Called by the web server to open a file.  The callback should return
-	 *  a valid handle if the file can be opened.  Otherwise, it should return
-	 *  \c NULL to signify an error. */
-	VDCallback_Open open;
-
-	/** Called by the web server to perform a sequential read from an open
-	 *  file.  The callback should copy \b buflen bytes from the file into
-	 *  the buffer.
-	 *  @return An integer representing one of the following:
-	 *      \li <tt>   0</tt>:  The file contains no more data (EOF).
-	 *      \li <tt> > 0</tt>: A successful read of the number of bytes in the
-	 *      	return code.
-	 *      \li <tt> < 0</tt>: An error occurred reading the file.
-	 */
-	VDCallback_Read read;
-
-	/** Called by the web server to perform a sequential write to an open
-	 *  file.  The callback should write \b buflen bytes into the file from
-	 *  the buffer.  It should return the actual number of bytes written, 
-	 *  which might be less than \b buflen in the case of a write error.
-	 */
-	VDCallback_Write write;
-
-	/** Called by the web server to move the file pointer, or offset, into
-	 *  an open file.  The \b origin parameter determines where to start
-	 *  moving the file pointer.  A value of \c SEEK_CUR moves the
-	 *  file pointer relative to where it is.  The \b offset parameter can
-	 *  be either positive (move forward) or negative (move backward).  
-	 *  \c SEEK_END moves relative to the end of the file.  A positive 
-	 *  \b offset extends the file.  A negative \b offset moves backward 
-	 *  in the file.  Finally, \c SEEK_SET moves to an absolute position in 
-	 *  the file. In this case, \b offset must be positive.  The callback 
-	 *  should return 0 on a successful seek or a non-zero value on an error.
-	 */
-	VDCallback_Seek seek;
-
-	/** Called by the web server to close a file opened via the \b open
-	 *  callback.  It should return 0 on success, or a non-zero value on an 
-	 *  error.
-	 */
-	VDCallback_Close close;
-};
-
-
-typedef struct virtual_Dir_List
-{
-	struct virtual_Dir_List *next;
-	char dirName[NAME_SIZE];
-} virtualDirList;
-
-
-#endif /* VIRTUALDIR_H */
-

+ 0 - 216
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/autoconfig.h

@@ -1,216 +0,0 @@
-/* autoconfig.h.  Generated from autoconfig.h.in by configure.  */
-/* autoconfig.h.in.  Generated from configure.ac by autoheader.  */
-
-/* Define if building universal (internal helper macro) */
-/* #undef AC_APPLE_UNIVERSAL_BUILD */
-
-/* Define to 1 to compile debug code */
-/* #undef DEBUG */
-
-/* Define to 1 if you have the <arpa/inet.h> header file. */
-#define HAVE_ARPA_INET_H 1
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#define HAVE_DLFCN_H 1
-
-/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
-/* #undef HAVE_DOPRNT */
-
-/* Define to 1 if you have the <fcntl.h> header file. */
-#define HAVE_FCNTL_H 1
-
-/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
-#define HAVE_FSEEKO 1
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H 1
-
-/* Define to 1 if you have the <limits.h> header file. */
-#define HAVE_LIMITS_H 1
-
-/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define to 1 if you have the <netdb.h> header file. */
-#define HAVE_NETDB_H 1
-
-/* Define to 1 if you have the <netinet/in.h> header file. */
-#define HAVE_NETINET_IN_H 1
-
-/* Define if you have POSIX threads libraries and header files. */
-#define HAVE_PTHREAD 1
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#define HAVE_STDINT_H 1
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#define HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Defines if strndup is available on your system */
-#define HAVE_STRNDUP 1
-
-/* Defines if strnlen is available on your system */
-#define HAVE_STRNLEN 1
-
-/* Define to 1 if you have the <syslog.h> header file. */
-#define HAVE_SYSLOG_H 1
-
-/* Define to 1 if you have the <sys/ioctl.h> header file. */
-#define HAVE_SYS_IOCTL_H 1
-
-/* Define to 1 if you have the <sys/socket.h> header file. */
-#define HAVE_SYS_SOCKET_H 1
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/time.h> header file. */
-#define HAVE_SYS_TIME_H 1
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
-/* Define to 1 if you have the `vprintf' function. */
-#define HAVE_VPRINTF 1
-
-/* Define to 1 if you have the <ws2tcpip.h> header file. */
-/* #undef HAVE_WS2TCPIP_H */
-
-/* see upnpconfig.h */
-#define IXML_HAVE_SCRIPTSUPPORT 1
-
-/* Define to the sub-directory where libtool stores uninstalled libraries. */
-#define LT_OBJDIR ".libs/"
-
-/* Define to 1 to prevent compilation of assert() */
-#define NDEBUG 1
-
-/* Name of package */
-#define PACKAGE "libupnp"
-
-/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "mroberto@users.sourceforge.net"
-
-/* Define to the full name of this package. */
-#define PACKAGE_NAME "libupnp"
-
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "libupnp 1.6.24"
-
-/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME "libupnp"
-
-/* Define to the home page for this package. */
-#define PACKAGE_URL ""
-
-/* Define to the version of this package. */
-#define PACKAGE_VERSION "1.6.24"
-
-/* Define to necessary symbol if this constant uses a non-standard name on
-   your system. */
-/* #undef PTHREAD_CREATE_JOINABLE */
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* see upnpconfig.h */
-#define UPNP_ENABLE_BLOCKING_TCP_CONNECTIONS 1
-
-/* see upnpconfig.h */
-/* #undef UPNP_ENABLE_IPV6 */
-
-/* see upnpconfig.h */
-/* #undef UPNP_ENABLE_POST_WRITE */
-
-/* see upnpconfig.h */
-/* #undef UPNP_ENABLE_UNSPECIFIED_SERVER */
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_CLIENT 1
-
-/* see upnpconfig.h */
-/* #undef UPNP_HAVE_DEBUG */
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_DEVICE 1
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_GENA 1
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_OPTSSDP 1
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_SOAP 1
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_SSDP 1
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_TOOLS 1
-
-/* see upnpconfig.h */
-#define UPNP_HAVE_WEBSERVER 1
-
-/* see upnpconfig.h */
-/* #undef UPNP_MINISERVER_REUSEADDR */
-
-/* Do not use pthread_rwlock_t */
-#define UPNP_USE_RWLOCK 1
-
-/* see upnpconfig.h */
-#define UPNP_VERSION_MAJOR 1
-
-/* see upnpconfig.h */
-#define UPNP_VERSION_MINOR 6
-
-/* see upnpconfig.h */
-#define UPNP_VERSION_PATCH 24
-
-/* see upnpconfig.h */
-#define UPNP_VERSION_STRING "1.6.24"
-
-/* Version number of package */
-#define VERSION "1.6.24"
-
-/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
-   significant byte first (like Motorola and SPARC, unlike Intel). */
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
-#  define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-/* #  undef WORDS_BIGENDIAN */
-# endif
-#endif
-
-/* File Offset size */
-#define _FILE_OFFSET_BITS 64
-
-/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
-#define _LARGEFILE_SOURCE 1
-
-/* Large files support */
-#define _LARGE_FILE_SOURCE /**/
-
-/* Define to empty if `const' does not conform to ANSI C. */
-/* #undef const */
-
-/* Define to `long int' if <sys/types.h> does not define. */
-/* #undef off_t */
-
-/* Define to `unsigned int' if <sys/types.h> does not define. */
-/* #undef size_t */
-
-/* Type for storing the length of struct sockaddr */
-/* #undef socklen_t */

+ 0 - 248
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/client_table.h

@@ -1,248 +0,0 @@
-
-#ifndef CLIENT_TABLE_H
-#define CLIENT_TABLE_H
-
-
-/*!
- * \file
- */
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#include "service_table.h"
-#include "upnp.h"
-#include "UpnpString.h"
-#include "upnp_timeout.h"
-#include "uri.h"
-#include "TimerThread.h"
-
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-
-
-extern TimerThread gTimerThread;
-
-
-#ifdef INCLUDE_CLIENT_APIS
-
-
-typedef struct s_ClientSubscription ClientSubscription;
-
-
-/*!
- * \brief Constructor.
- */
-ClientSubscription *UpnpClientSubscription_new();
-
-
-/*!
- * \brief Destructor.
- */
-void UpnpClientSubscription_delete(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p);
-
-
-/*!
- * \brief Copy Constructor.
- */
-ClientSubscription *UpnpClientSubscription_dup(
-	/*! [in] The \b this pointer. */
-	const ClientSubscription *p);
-
-
-/*!
- * \brief Assignment operator.
- */
-void UpnpClientSubscription_assign(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *q,
-	const ClientSubscription *p);
-
-
-/*!
- * \brief 
- */
-int UpnpClientSubscription_get_RenewEventId(
-	/*! [in] The \b this pointer. */
-	const ClientSubscription *p);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_set_RenewEventId(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	/*! [in] . */
-	int n);
-
-
-/*!
- * \brief 
- */
-const UpnpString *UpnpClientSubscription_get_SID(
-	/*! [in] The \b this pointer. */
-	const ClientSubscription *p);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_set_SID(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	const UpnpString *s);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_strcpy_SID(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	const char *s);
-
-
-/*!
- * \brief 
- */
-const UpnpString *UpnpClientSubscription_get_ActualSID(
-	/*! [in] The \b this pointer. */
-	const ClientSubscription *p);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_set_ActualSID(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	const UpnpString *s);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_strcpy_ActualSID(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	const char *s);
-
-
-/*!
- * \brief 
- */
-const UpnpString *UpnpClientSubscription_get_EventURL(
-	/*! [in] The \b this pointer. */
-	const ClientSubscription *p);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_set_EventURL(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	const UpnpString *s);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_strcpy_EventURL(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	const char *s);
-
-
-/*!
- * \brief 
- */
-ClientSubscription *UpnpClientSubscription_get_Next(
-	/*! [in] The \b this pointer. */
-	const ClientSubscription *p);
-
-
-/*!
- * \brief 
- */
-void UpnpClientSubscription_set_Next(
-	/*! [in] The \b this pointer. */
-	ClientSubscription *p,
-	ClientSubscription *q);
-
-
-
-/*!
- * \brief Free memory allocated for client subscription data.
- *
- * Remove timer thread associated with this subscription event.
- */
-void free_client_subscription(
-	/*! [in] Client subscription to be freed. */
-	ClientSubscription *sub);
-
-
-/*!
- * \brief Free the client subscription table.
- */
-void freeClientSubList(
-	/*! [in] Client subscription list to be freed. */
-	ClientSubscription *list);
-
-
-/*!
- * \brief Remove the client subscription matching the subscritpion id
- * represented by the const Upnp_SID sid parameter from the table and
- * update the table.
- */
-void RemoveClientSubClientSID(
-	/*! [in] Head of the subscription list. */
-	ClientSubscription **head,
-	/*! [in] Subscription ID to be mactched. */
-	const UpnpString *sid);
-
-
-/*!
- * \brief Return the client subscription from the client table that matches
- * const Upnp_SID sid subscrition id value.
- *
- * \return The matching subscription.
- */
-ClientSubscription *GetClientSubClientSID(
-	/*! [in] Head of the subscription list. */
-	ClientSubscription *head,
-	/*! [in] Subscription ID to be mactched. */
-	const UpnpString *sid);
-
-
-/*!
- * \brief Returns the client subscription from the client subscription table
- * that has the matching token *sid buffer value.
- *
- * \return The matching subscription.
- */
-ClientSubscription *GetClientSubActualSID(
-	/*! [in] Head of the subscription list. */
-	ClientSubscription *head,
-	/*! [in] Subscription ID to be mactched. */
-	token *sid);
-
-
-#endif /* INCLUDE_CLIENT_APIS */
-
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-
-#endif /* CLIENT_TABLE_H */
-

+ 0 - 531
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/config.h

@@ -1,531 +0,0 @@
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- * Copyright (c) 2012 France Telecom All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-#ifndef INTERNAL_CONFIG_H
-#define INTERNAL_CONFIG_H 
-
-
-#include "autoconfig.h"
-
-
-/*!
- *  \name Compile time configuration options
- *
- *  The Linux SDK for UPnP Devices contains some compile-time parameters 
- *  that effect the behavior of the SDK.  All configuration options are 
- *  located in {\tt src/inc/config.h}.
- *
- * @{
- */
-
-
-/*!
- *  \name THREAD_IDLE_TIME
- *
- *  The {\tt THREAD_IDLE_TIME} constant determines when a thread will be
- *  removed from the thread pool and returned to the operating system. When 
- *  a thread in the thread pool has been idle for this number of milliseconds
- *  the thread will be released from the thread pool.  The default value is
- *  5000 milliseconds (5 seconds).
- *
- * @{
- */
-#define THREAD_IDLE_TIME 5000
-/* @} */
-
-
-/*!
- * \name JOBS_PER_THREAD
- *
- * The {\tt JOBS_PER_THREAD} constant determines when a new thread will be
- * allocated to the thread pool inside the  SDK. The thread pool will
- * try and maintain this jobs/thread ratio. When the jobs/thread ratio 
- * becomes greater than this, then a new thread (up to the max) will be 
- * allocated to the thread pool.  The default ratio is 10 jobs/thread.
- *
- * @{
- */
-#define JOBS_PER_THREAD 10
-/* @} */
-
-
-/*!
- * \name MIN_THREADS
- *
- * The {\tt MIN_THREADS} constant defines the minimum number of threads the
- * thread pool inside the SDK will create.  The thread pool will
- * always have this number of threads. These threads are used
- * for both callbacks into applications built on top of the SDK and also
- * for making connections to other control points and devices. This number
- * includes persistent threads.  The default value is two threads.
- *
- * @{
- */
-#define MIN_THREADS 2 
-/* @} */
-
-
-/*!
- * \name MAX_THREADS
- *
- * The {\tt MAX_THREADS} constant defines the maximum number of threads the
- * thread pool inside the SDK will create.  These threads are used
- * for both callbacks into applications built on top of the library and also 
- * for making connections to other control points and devices.  It is not 
- * recommended that this value be below 10, since the threads are 
- * necessary for correct operation.  This value can be increased for greater
- * performance in operation at the expense of greater memory overhead.  The 
- * default value is 12.
- *
- * @{
- */
-#define MAX_THREADS 12 
-/* @} */
-
-
-/*!
- * \name THREAD_STACK_SIZE
- *
- * The {\tt THREAD_STACK_SIZE} constant defines the minimum stack size (in
- * bytes) allocated for the stack of each thread the thread pool inside the
- * SDK will create.  These threads are used for both callbacks into
- * applications built on top of the library and also for making connections
- * to other control points and devices.  This value will not be used if it
- * is lower than ITHREAD_STACK_MIN or greater than a system-imposed limit.
- * This value can be used to lower memory overhead in embedded systems.
- * The default value is 0 (so it is not used by default).
- *
- * @{
- */
-#define THREAD_STACK_SIZE (size_t)0
-/* @} */
-
-
-/*! \name MAX_JOBS_TOTAL
- *
- *  The {\tt MAX_JOBS_TOTAL} constant determines the maximum number of jobs
- *  that can be queued. If this limit is reached further jobs will be thrown
- *  to avoid memory exhaustion. The default value 100.
- *  (Added by Axis.)
- *
- * @{
- */
-#define MAX_JOBS_TOTAL 100
-/* @} */
-
-/*! \name MAX_SUBSCRIPTION_QUEUED_EVENTS
- *
- *  The {\tt MAX_SUBSCRIPTION_QUEUED_EVENTS} determines the maximum number of
- *  events which can be queued for a given subscription before events begin
- *  to be discarded. This limits the amount of memory used for a
- *  non-responding subscribed entity.
- *
- * @{
- */
-#define MAX_SUBSCRIPTION_QUEUED_EVENTS 10
-/* @} */
-
-
-/*! \name MAX_SUBSCRIPTION_EVENT_AGE
- *
- *  The {\tt MAX_SUBSCRIPTION__EVENT_AGE} determines the maximum number of 
- *  seconds which an event can spend on a subscription queue (waiting for the 
- *  event at the head of the queue to be communicated). This parameter will 
- *  have no effect in most situations with the default (low) value of 
- *  MAX_SUBSCRIPTION_QUEUED_EVENTS. However, if MAX_SUBSCRIPTION_QUEUED_EVENTS 
- *  is set to a high value, the AGE parameter will allow pruning the queue in 
- *  good conformance with the UPnP Device Architecture standard, at the 
- *  price of higher potential memory use.
- *
- * @{
- */
-#define MAX_SUBSCRIPTION_EVENT_AGE 30
-/* @} */
-
-
-/*!
- * \name DEFAULT_SOAP_CONTENT_LENGTH
- *
- * SOAP messages will read at most {\tt DEFAULT_SOAP_CONTENT_LENGTH} bytes.  
- * This prevents devices that have a misbehaving web server to send 
- * a large amount of data to the control point causing it to crash.  
- * This can be adjusted dynamically with {\tt UpnpSetMaxContentLength}.
- *
- * @{
- */
-#define DEFAULT_SOAP_CONTENT_LENGTH 16000
-/* @} */
-
-
-/*!
- * \name NUM_SSDP_COPY
- *
- * This configuration parameter determines how many copies of each SSDP 
- * advertisement and search packets will be sent. By default it will send two 
- * copies of every packet.  
- *
- * @{
- */
-#define NUM_SSDP_COPY  2
-/* @} */
-
-
-/*!
- * \name SSDP_PAUSE
- *
- * This configuration parameter determines the pause between identical SSDP 
- * advertisement and search packets. The pause is measured in milliseconds
- * and defaults to 100.
- *
- * @{
- */
-#define SSDP_PAUSE  100u
-/* @} */
-
-/*!
- * \name WEB_SERVER_BUF_SIZE
- * 
- * This configuration parameter sets the maximum buffer size for the 
- * webserver. The default value is 1MB.
- *
- * @{
- */
-#define WEB_SERVER_BUF_SIZE  (size_t)(1024*1024)
-/* @} */
-
-/*!
- * \name WEB_SERVER_CONTENT_LANGUAGE
- *
- * This configuration parameter sets the value of the Content-Language
- * header for the webserver. Thanks to this parameter, the use can advertize
- * the language used by the device in the description (friendlyName) and
- * presentation steps of UPnP. The default value is empty string so no
- * Content-Language header is added.
- *
- * @{
- */
-#define WEB_SERVER_CONTENT_LANGUAGE ""
-/* @} */
-
-/*!
- * \name AUTO_RENEW_TIME
- *
- * The {\tt AUTO_RENEW_TIME} is the time, in seconds, before a subscription
- * expires that the SDK automatically resubscribes.  The default 
- * value is 10 seconds.  Setting this value too low can result in the 
- * subscription renewal not making it to the device in time, causing the 
- * subscription to timeout. In order to avoid continually resubscribing
- * the minimum subscription time is five seconds more than the auto renew
- * time.
- *
- * @{
- */
-#define AUTO_RENEW_TIME 10
-/* @} */
-
-/*!
- * \name CP_MINIMUM_SUBSCRIPTION_TIME
- *
- * The {\tt CP_MINIMUM_SUBSCRIPTION_TIME} is the minimum subscription time
- * allowed for a control point using the SDK. Subscribing for less than
- * this time automatically results in a subscription for this amount.  The 
- * default value is 5 seconds more than the {\tt AUTO_RENEW_TIME}, or 15
- * seconds.
- *
- * @{
- */
-#define CP_MINIMUM_SUBSCRIPTION_TIME (AUTO_RENEW_TIME + 5)
-/* @} */
-
-
-/*!
- * \name MAX_SEARCH_TIME
- *
- * The {\tt MAX_SEARCH_TIME} is the maximum time
- * allowed for an SSDP search by a control point. Searching for greater than
- * this time automatically results in a search for this amount.  The default 
- * value is 80 seconds.
- *
- * @{
- */
-#define MAX_SEARCH_TIME 80
-/* @} */
-
-
-/*!
- * \name MIN_SEARCH_TIME
- *
- * The {\tt MIN_SEARCH_TIME} is the minimumm time
- * allowed for an SSDP search by a control point. Searching for less than
- * this time automatically results in a search for this amount.  The default 
- * value is 2 seconds.
- *
- * @{
- */
-#define MIN_SEARCH_TIME 2
-/* @} */
-
-
-/*!
- * \name AUTO_ADVERTISEMENT_TIME
- *
- * The {\tt AUTO_ADVERTISEMENT_TIME} is the time, in seconds, before an
- * device advertisements expires before a renewed advertisement is sent.
- * The default time is 30 seconds.
- *
- * @{
- */
-#define AUTO_ADVERTISEMENT_TIME 30
-/* @} */
-
-
-/*!
- * \name SSDP_PACKET_DISTRIBUTE
- *
- * The {\tt SSDP_PACKET_DISTRIBUTE} enables the SSDP packets to be sent
- * at an interval equal to half of the expiration time of SSDP packets
- * minus the AUTO_ADVERTISEMENT_TIME. This is used to increase
- * the probability of SSDP packets reaching to control points.
- * It is recommended that this flag be turned on for embedded wireless 
- * devices.
- *
- * @{
- */
-#define SSDP_PACKET_DISTRIBUTE 1
-/* @} */
-
-
-/*!
- * \name GENA_NOTIFICATION_SENDING_TIMEOUT
- *
- * The {\tt GENA_NOTIFICATION_SENDING_TIMEOUT} specifies the number of seconds
- * to wait for sending GENA notifications to the Control Point.
- *
- * This timeout will be used to know how many seconds GENA notification threads
- * will wait to write on the socket to send the notification. By putting a
- * lower value than HTTP_DEFAULT_TIMEOUT, the thread will not wait too long and
- * will return quickly if writing is impossible. This is very useful as some
- * Control Points disconnect from the network without unsubscribing as a result
- * if HTTP_DEFAULT_TIMEOUT is used, all the GENA threads will be blocked to send
- * notifications to those disconnected Control Points until the subscription
- * expires.
- *
- * @{
- */
-#define GENA_NOTIFICATION_SENDING_TIMEOUT HTTP_DEFAULT_TIMEOUT
-/* @} */
-
-
-/*!
- * \name GENA_NOTIFICATION_ANSWERING_TIMEOUT
- *
- * The {\tt GENA_NOTIFICATION_ANSWERING_TIMEOUT} specifies the number of seconds
- * to wait for receiving the answer to a GENA notification from the Control
- * Point.
- *
- * This timeout will be used to know how many seconds GENA notification threads
- * will wait on the socket to read for an answer from the CP. By putting a
- * lower value than HTTP_DEFAULT_TIMEOUT, the thread will not wait too long and
- * will return quickly if there is no answer from the CP. This is very useful as
- * some Control Points disconnect from the network without unsubscribing and if
- * HTTP_DEFAULT_TIMEOUT is used, all the GENA threads will be blocked to wait
- * for an answer from those disconnected Control Points until the subscription
- * expires. However, it should be noted that UDA specifies a value of 30s for
- * waiting the CP's answer.
- *
- * @{
- */
-#define GENA_NOTIFICATION_ANSWERING_TIMEOUT HTTP_DEFAULT_TIMEOUT
-/* @} */
-
-
-/*!
- * \name Module Exclusion
- *
- * Depending on the requirements, the user can selectively discard any of 
- * the major modules like SOAP, GENA, SSDP or the Internal web server. By 
- * default everything is included inside the SDK.  By setting any of
- * the values below to 0, that component will not be included in the final
- * SDK.
- * \begin{itemize}
- *   \item {\tt EXCLUDE_SOAP[0,1]}
- *   \item {\tt EXCLUDE_GENA[0,1]}
- *   \item {\tt EXCLUDE_SSDP[0,1]}
- *   \item {\tt EXCLUDE_DOM [0,1]}
- *   \item {\tt EXCLUDE_MINISERVER[0,1]}
- *   \item {\tt EXCLUDE_WEB_SERVER[0,1]}
- *   \item {\tt EXCLUDE_JNI[0,1]}
- * \end{itemize}
- *
- * @{
- */
-#define EXCLUDE_SSDP 0
-#define EXCLUDE_SOAP 0
-#define EXCLUDE_GENA 0
-#define EXCLUDE_DOM  0
-#define EXCLUDE_MINISERVER 0
-#define EXCLUDE_WEB_SERVER 0
-#ifdef USE_JNI
-#	define EXCLUDE_JNI 0
-#else
-#	define EXCLUDE_JNI 1
-#endif
-/* @} */
-
-    
-/*!
- * \name DEBUG_TARGET
- *
- * The user has the option to redirect the library output debug messages 
- * to either the screen or to a log file.  All the output messages with 
- * debug level 0 will go to {\tt upnp.err} and messages with debug level 
- * greater than zero will be redirected to {\tt upnp.out}.
- *
- * @{
- */
-#define DEBUG_TARGET		1   
-/* @} */
-
-
-/*!
- * \name Other debugging features
- *
- * The UPnP SDK contains other features to aid in debugging:
- * see <upnp/inc/upnpdebug.h>
- */
-
-#define DEBUG_ALL		1
-#define DEBUG_SSDP		0
-#define DEBUG_SOAP		0
-#define DEBUG_GENA		0
-#define DEBUG_TPOOL		0
-#define DEBUG_MSERV		0
-#define DEBUG_DOM		0
-#define DEBUG_HTTP		0
-#define DEBUG_API		0
-
-
-/*
- * @} Compile time configuration options
- */
-
-
-/***************************************************************************
- * Do not change, Internal purpose only!!!
- ***************************************************************************/ 
-
-/*!
- * @{
- */
-
-
-/*
- * Set additional defines based on requested configuration 
- */
-
-
-/* configure --enable-client */
-#if UPNP_HAVE_CLIENT
-#	define INCLUDE_CLIENT_APIS	1
-#endif
-
-
-/* configure --enable-device */
-#if UPNP_HAVE_DEVICE
-#	define INCLUDE_DEVICE_APIS	1
-#endif
-
-
-/* configure --enable-webserver */
-#if UPNP_HAVE_WEBSERVER
-#	define INTERNAL_WEB_SERVER	1
-#endif
-
-/* configure --enable-ssdp */
-#undef EXCLUDE_SSDP
-#if UPNP_HAVE_SSDP
-#       define EXCLUDE_SSDP 0
-#else
-#       define EXCLUDE_SSDP 1
-#endif
-
-/* configure --enable-soap */
-#undef EXCLUDE_SOAP
-#if UPNP_HAVE_SOAP
-#	define EXCLUDE_SOAP 0
-#else
-#	define EXCLUDE_SOAP 1
-#endif
-
-/* configure --enable-gena */
-#undef EXCLUDE_GENA
-#if UPNP_HAVE_GENA
-#       define EXCLUDE_GENA 0
-#else
-#       define EXCLUDE_GENA 1
-#endif
-
-#undef  EXCLUDE_WEB_SERVER
-#undef  EXCLUDE_MINISERVER
-#ifdef  INTERNAL_WEB_SERVER
-#	define EXCLUDE_WEB_SERVER 0
-#	define EXCLUDE_MINISERVER 0
-#else
-#	define EXCLUDE_WEB_SERVER 1
-#	define EXCLUDE_MINISERVER 1
-#endif
-
-
-#if EXCLUDE_SSDP == 1 && EXCLUDE_GENA == 1 && EXCLUDE_SOAP == 1 && EXCLUDE_WEB_SERVER == 1
-#	undef  EXCLUDE_MINISERVER
-#	define EXCLUDE_MINISERVER 1
-#	if INTERNAL_WEB_SERVER
-#		error "conflicting settings: use configure --disable-webserver"
-#	endif
-#endif
-
-
-#if EXCLUDE_SSDP == 0 || EXCLUDE_GENA == 0 || EXCLUDE_SOAP == 0 || EXCLUDE_WEB_SERVER == 0
-#	undef  EXCLUDE_MINISERVER
-#	define EXCLUDE_MINISERVER 0
-#	if EXCLUDE_WEB_SERVER == 0 && !defined INTERNAL_WEB_SERVER
-#		error "conflicting settings : use configure --enable-webserver"
-#	endif
-#endif
-
-
-/*
- * @}
- */
-
-#endif /* INTERNAL_CONFIG_H */
-

+ 0 - 385
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gena.h

@@ -1,385 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-
-#ifndef GENA_H
-#define GENA_H
-
-
-/*!
- * \file
- */
-
-
-#include "config.h"
-
-
-#include <string.h>
-#include <time.h>
-
-
-#include "client_table.h"
-#include "httpparser.h"
-#include "miniserver.h"
-#include "service_table.h"
-#include "sock.h"
-#include "ThreadPool.h"
-#include "upnp.h"
-#include "UpnpString.h"
-#include "uri.h"
-
-
-#ifdef __cplusplus
-	#define EXTERN_C extern "C"
-#else /* __cplusplus */
-	#ifndef EXTERN_C
-		#define EXTERN_C 
-	#endif /* EXTERN_C */
-#endif /* __cplusplus */
-
-
-/*!
- * \brief XML version comment. Not used because it is not interopeable with
- * other UPnP vendors.
- */
-#define XML_VERSION "<?xml version='1.0' encoding='ISO-8859-1' ?>\n"
-#define XML_PROPERTYSET_HEADER \
-	"<e:propertyset xmlns:e=\"urn:schemas-upnp-org:event-1-0\">\n"
-
-
-#define UNABLE_MEMORY "HTTP/1.1 500 Internal Server Error\r\n\r\n"
-#define UNABLE_SERVICE_UNKNOWN "HTTP/1.1 404 Not Found\r\n\r\n"
-#define UNABLE_SERVICE_NOT_ACCEPT "HTTP/1.1 503 Service Not Available\r\n\r\n"
-
-
-#define NOT_IMPLEMENTED "HTTP/1.1 501 Not Implemented\r\n\r\n"
-#define BAD_REQUEST "HTTP/1.1 400 Bad Request\r\n\r\n"
-#define INVALID_NT BAD_CALLBACK
-#define BAD_CALLBACK "HTTP/1.1 412 Precondition Failed\r\n\r\n" 
-#define HTTP_OK_CRLF "HTTP/1.1 200 OK\r\n\r\n"
-#define HTTP_OK_STR "HTTP/1.1 200 OK\r\n"
-#define INVALID_SID BAD_CALLBACK
-#define MISSING_SID BAD_CALLBACK
-#define MAX_CONTENT_LENGTH 20
-#define MAX_SECONDS 10
-#define MAX_EVENTS 20
-#define MAX_PORT_SIZE 10
-
-
-#define GENA_E_BAD_RESPONSE UPNP_E_BAD_RESPONSE
-#define GENA_E_BAD_SERVICE UPNP_E_INVALID_SERVICE
-#define GENA_E_SUBSCRIPTION_UNACCEPTED UPNP_E_SUBSCRIBE_UNACCEPTED
-#define GENA_E_BAD_SID UPNP_E_INVALID_SID
-#define GENA_E_UNSUBSCRIBE_UNACCEPTED UPNP_E_UNSUBSCRIBE_UNACCEPTED
-#define GENA_E_NOTIFY_UNACCEPTED UPNP_E_NOTIFY_UNACCEPTED
-#define GENA_E_NOTIFY_UNACCEPTED_REMOVE_SUB -9
-#define GENA_E_BAD_HANDLE UPNP_E_INVALID_HANDLE
-
-
-#define XML_ERROR -5
-#define XML_SUCCESS UPNP_E_SUCCESS
-#define GENA_SUCCESS UPNP_E_SUCCESS
-
-
-#define CALLBACK_SUCCESS 0
-#define DEFAULT_TIMEOUT 1801
-
-
-extern ithread_mutex_t GlobalClientSubscribeMutex;
-
-
-/*!
- * \brief Locks the subscription.
- */
-#define SubscribeLock() \
-	UpnpPrintf(UPNP_INFO, GENA, __FILE__, __LINE__, \
-		"Trying Subscribe Lock");  \
-	ithread_mutex_lock(&GlobalClientSubscribeMutex); \
-	UpnpPrintf(UPNP_INFO, GENA, __FILE__, __LINE__, \
-		"Subscribe Lock");
-
-
-/*!
- * \brief Unlocks the subscription.
- */
-#define SubscribeUnlock() \
-	UpnpPrintf(UPNP_INFO, GENA, __FILE__, __LINE__, \
-		"Trying Subscribe UnLock"); \
-	ithread_mutex_unlock(&GlobalClientSubscribeMutex); \
-	UpnpPrintf(UPNP_INFO, GENA, __FILE__, __LINE__, \
-		"Subscribe UnLock");
-
-
-/*!
- * Structure to send NOTIFY message to all subscribed control points
- */
-typedef struct NOTIFY_THREAD_STRUCT {
-	char *headers;
-	DOMString propertySet;
-	char *servId;
-	char *UDN;
-	Upnp_SID sid;
-	time_t ctime;
-	int *reference_count;
-	UpnpDevice_Handle device_handle;
-} notify_thread_struct;
-
-
-/*!
- * \brief This is the callback function called by the miniserver to handle
- *	incoming GENA requests.
- *
- * \return UPNP_E_SUCCESS if successful, otherwise appropriate error code.
- */
-EXTERN_C void genaCallback(
-	/*! [in] represents the parse state of the request */
-	http_parser_t *parser, 
-	/*! [in] HTTP message containing GENA request */
-	http_message_t* request,
-	/*! [in,out] Structure containing information about the socket */
-	SOCKINFO *info);
-
- 
-/*!
- * \brief This function subscribes to a PublisherURL (also mentioned as EventURL
- * in some places).
- *
- * It sends SUBSCRIBE http request to service processes request. Finally adds a
- * Subscription to the clients subscription list, if service responds with OK.
- *
- * \return UPNP_E_SUCCESS if service response is OK, otherwise returns the 
- *	appropriate error code
- */
-#ifdef INCLUDE_CLIENT_APIS
-EXTERN_C int genaSubscribe(
-	/*! [in] The client handle. */
-	UpnpClient_Handle client_handle,
-	/*! [in] Of the form: "http://134.134.156.80:4000/RedBulb/Event */
-	const UpnpString *PublisherURL,
-	/*! [in,out] requested Duration:
-	 * \li if -1, then "infinite".
-	 * \li in the OUT case: actual Duration granted by Service,
-	 * 	-1 for infinite. */
-	int *TimeOut,
-	/*! [out] sid of subscription, memory passed in by caller. */
-	UpnpString *out_sid);
-#endif /* INCLUDE_CLIENT_APIS */
-
-
-/*!
- * \brief Unsubscribes a SID.
- *
- * It first validates the SID and client_handle,copies the subscription, sends
- * UNSUBSCRIBE http request to service processes request and finally removes
- * the subscription.
- *
- * \return UPNP_E_SUCCESS if service response is OK, otherwise returns the
- * 	appropriate error code.
- */
-#ifdef INCLUDE_CLIENT_APIS
-EXTERN_C int genaUnSubscribe(
-	/*! [in] UPnP client handle. */
-	UpnpClient_Handle client_handle,
-	/*! [in] The subscription ID. */
-	const UpnpString *in_sid);
-#endif /* INCLUDE_CLIENT_APIS */
-
-
-/*!
- * \brief Unsubcribes all the outstanding subscriptions and cleans the
- * 	subscription list.
- *
- * This function is called when control point unregisters.
- *
- * \returns UPNP_E_SUCCESS if successful, otherwise returns the appropriate
- * 	error code.
- */
-#ifdef INCLUDE_CLIENT_APIS
-EXTERN_C int genaUnregisterClient(
-	/*! [in] Handle containing all the control point related information. */
-	UpnpClient_Handle client_handle);
-#endif /* INCLUDE_CLIENT_APIS */
-
-
-/*
- * DEVICE
- */
-
-
-/*!
- * \brief Cleans the service table of the device.
- *
- * \return UPNP_E_SUCCESS if successful, otherwise returns GENA_E_BAD_HANDLE
- */
-#ifdef INCLUDE_DEVICE_APIS
-EXTERN_C int genaUnregisterDevice(
- 	/*! [in] Handle of the root device */
-	UpnpDevice_Handle device_handle);
-#endif /* INCLUDE_CLIENT_APIS */
-
-
-/*!
- * \brief Renews a SID.
- *
- * It first validates the SID and client_handle and copies the subscription.
- * It sends RENEW (modified SUBSCRIBE) http request to service and processes
- * the response.
- *
- * \return UPNP_E_SUCCESS if service response is OK, otherwise the
- * 	appropriate error code.
- */
-#ifdef INCLUDE_CLIENT_APIS
-EXTERN_C int genaRenewSubscription(
-	/*! [in] Client handle. */
-	UpnpClient_Handle client_handle,
-	/*! [in] Subscription ID. */
-	const UpnpString *in_sid,
-	/*! [in,out] requested Duration, if -1, then "infinite". In the OUT case:
-	 * actual Duration granted by Service, -1 for infinite. */
-	int *TimeOut);
-#endif /* INCLUDE_CLIENT_APIS */
-
-
-/*!
- * \brief Sends a notification to all the subscribed control points.
- *
- * \return int
- *
- * \note This function is similar to the genaNotifyAllExt. The only difference
- *	is it takes event variable array instead of xml document.
- */
-#ifdef INCLUDE_DEVICE_APIS
-EXTERN_C int genaNotifyAll(
-	/*! [in] Device handle. */
-	UpnpDevice_Handle device_handle,
-	/*! [in] Device udn. */
-	char *UDN,
-	/*! [in] Service ID. */
-	char *servId,
-	/*! [in] Array of varible names. */
-	char **VarNames,
-	/*! [in] Array of variable values. */
-	char **VarValues,
-	/*! [in] Number of variables. */
-	int var_count);
-#endif /* INCLUDE_DEVICE_APIS */
-
-
-/*!
- * \brief Sends a notification to all the subscribed control points.
- *
- * \return int
- *
- * \note This function is similar to the genaNotifyAll. the only difference
- *	is it takes the document instead of event variable array.
- */
-#ifdef INCLUDE_DEVICE_APIS
-EXTERN_C int genaNotifyAllExt(
-	/*! [in] Device handle. */
-	UpnpDevice_Handle device_handle, 
-	/*! [in] Device udn. */
-	char *UDN,
-	/*! [in] Service ID. */
-	char *servId,
-	/*! [in] XML document Event varible property set. */
-	IXML_Document *PropSet);
-#endif /* INCLUDE_DEVICE_APIS */
-
-
-/*!
- * \brief Sends the intial state table dump to newly subscribed control point.
- *
- * \return GENA_E_SUCCESS if successful, otherwise the appropriate error code.
- * 
- * \note  No other event will be sent to this control point before the 
- *	intial state table dump.
- */
-#ifdef INCLUDE_DEVICE_APIS
-EXTERN_C int genaInitNotify(
-	/*! [in] Device handle. */
-	UpnpDevice_Handle device_handle,
-	/*! [in] Device udn. */
-	char *UDN,
-	/*! [in] Service ID. */
-	char *servId,
-	/*! [in] Array of variable names. */
-	char **VarNames,
-	/*! [in] Array of variable values. */
-	char **VarValues,
-	/*! [in] Array size. */
-	int var_count,
-	/*! [in] Subscription ID. */
-	const Upnp_SID sid);
-#endif /* INCLUDE_DEVICE_APIS */
-
-
-/*!
- * \brief Similar to the genaInitNofity. The only difference is that it
- * takes the xml document for the state table and sends the intial state
- * table dump to newly subscribed control point.
- *
- * \return GENA_E_SUCCESS if successful, otherwise the appropriate error code.
- * 
- * \note No other event will be sent to this control point before the 
- * 	intial state table dump.
- */
-#ifdef INCLUDE_DEVICE_APIS
-EXTERN_C  int genaInitNotifyExt(
-	/*! [in] Device handle. */
-	UpnpDevice_Handle device_handle, 
-	/*! [in] Device udn. */
-	char *UDN, 
-	/*! [in] Service ID. */
-	char *servId,
-	/*! [in] Document of the state table. */
-	IXML_Document *PropSet, 
-	/*! [in] subscription ID. */
-	const Upnp_SID sid);
-#endif /* INCLUDE_DEVICE_APIS */
-
-
-/*!
- * \brief Sends an error message to the control point in the case of incorrect
- * 	GENA requests.
- *
- * \return UPNP_E_SUCCESS if successful, otherwise appropriate error code.
- */
-void error_respond(
-	/*! [in] Structure containing information about the socket. */
-	SOCKINFO *info,
-	/*! [in] error code that will be in the GENA response. */
-	int error_code,
-	/*! [in] GENA request Packet. */
-	http_message_t* hmsg);
-
-
-#endif /* GENA_H */
-

+ 0 - 64
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gena_ctrlpt.h

@@ -1,64 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-
-#ifndef GENA_CTRLPT_H
-#define GENA_CTRLPT_H
-
-
-/*!
- * \file
- */
-
-
-#include "sock.h"
-
-
-/*!
- * \brief This function processes NOTIFY events that are sent by devices.
- * 
- * Parameters:
- *	IN SOCKINFO *info: Socket structure containing the device socket 
- *			information
- *	IN http_message_t *event: The http message contains the GENA 
- *			notification
- *
- * \note called by genacallback()
- */
-void gena_process_notification_event(
-	/*! [in] Socket info of the device. */
-	SOCKINFO *info,
-	/*! [in] The http message contains the GENA notification. */
-	http_message_t *event);
-
-
-#endif /* GENA_CTRLPT_H */
-

+ 0 - 79
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gena_device.h

@@ -1,79 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-
-#ifndef GENA_DEVICE_H
-#define GENA_DEVICE_H
-
-
-/*!
- * \file
- */
-
-
-#include "sock.h"
-
-
-/*!
- * \brief Handles a subscription request from a ctrl point. The socket is not
- * closed on return.
- */
-void gena_process_subscription_request(
-	/*! [in] Socket info of the device. */
-	SOCKINFO *info,
-	/*! [in] Subscription request from the control point. */
-	http_message_t *request);
-
-
-/*!
- * \brief Handles a subscription renewal request from a ctrl point.
- * The connection is not destroyed on return.
- */
-void gena_process_subscription_renewal_request(
-	/*! [in] Socket info of the device. */
-	SOCKINFO *info,
-	/*! [in] Subscription renewal request from the control point. */
-	http_message_t *request);
-
-
-/*!
- * \brief Handles a subscription cancellation request from a ctrl point.
- * The connection is not destroyed on return.
- */
-void gena_process_unsubscribe_request(
-	/*! [in] Socket info of the device. */
-	SOCKINFO *info,
-	/*! [in] UNSUBSCRIBE request from the control point. */
-	http_message_t *request);
-
-
-#endif /* GENA_DEVICE_H */
-

+ 0 - 69
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/global.h

@@ -1,69 +0,0 @@
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-#ifndef GLOBAL_H
-#define GLOBAL_H
-
-/* GLOBAL.H - RSAREF types and constants */
-/* PROTOTYPES should be set to one if and only if the compiler supports
-  function argument prototyping.
-
-  The following makes PROTOTYPES default to 1 if it has not already
-  been defined with C compiler flags.
-*/
-
-#ifndef PROTOTYPES
-	#define PROTOTYPES 1
-#endif
-
-/* POINTER defines a generic pointer type */
-typedef unsigned char *POINTER;
-
-/* UINT2 defines a two byte word */
-typedef unsigned short int UINT2;
-
-/* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
-
-/*
- * PROTO_LIST is defined depending on how PROTOTYPES is defined above.
- * If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
- * returns an empty list.
- */
-#if PROTOTYPES
-	#define PROTO_LIST(list) list
-#else
-	#define PROTO_LIST(list) ()
-#endif
-
-
-#endif /* GLOBAL_H */
-

+ 0 - 97
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/gmtdate.h

@@ -1,97 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-//
-// Copyright (c) 2000-2003 Intel Corporation 
-// All rights reserved. 
-//
-// Redistribution and use in source and binary forms, with or without 
-// modification, are permitted provided that the following conditions are met: 
-//
-// * Redistributions of source code must retain the above copyright notice, 
-// this list of conditions and the following disclaimer. 
-// * Redistributions in binary form must reproduce the above copyright notice, 
-// this list of conditions and the following disclaimer in the documentation 
-// and/or other materials provided with the distribution. 
-// * Neither name of Intel Corporation nor the names of its contributors 
-// may be used to endorse or promote products derived from this software 
-// without specific prior written permission.
-// 
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
-// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef GENLIB_UTIL_GMTDATE_H
-#define GENLIB_UTIL_GMTDATE_H
-
-#include <time.h>
-#include <genlib/util/util.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// input: monthStr:  3-letter or full month
-// returns month=0..11 or -1 on failure
-// output:
-//   charsRead - num chars that match the month
-//   fullNameMatch - full name match(1) or 3-letter match(0)
-//
-int ParseMonth( IN const char* monthStr,
-    OUT int* charsRead, OUT int* fullNameMatch );
-
-// input: dayOfWeek:  3-letter or full day of week ("mon" etc)
-// returns dayOfWeek=0..6 or -1 on failure
-// output:
-//   charsRead - num chars that match the month
-//   fullNameMatch - full name match(1) or 3-letter match(0)
-//
-int ParseDayOfWeek( IN const char* dayOfWeek,
-    OUT int* charsRead, OUT int* fullNameMatch );
-
-// converts date to string format: RFC 1123 format:
-// Sun, 06 Nov 1994 08:49:37 GMT
-// String returned must be freed using free() function
-// returns NULL if date is NULL
-//
-// throws OutOfMemoryException
-char* DateToString( const struct tm* date );
-
-// parses time in fmt hh:mm:ss, military fmt
-// returns 0 on success; -1 on error
-int ParseTime( const char* s, int* hour, int* minute, int* second );
-
-
-
-// tries to parse date according to RFCs 1123, 850, or asctime()
-//  format
-// params:
-//   str - contains date/time in string format
-//   dateTime - date and time obtained from 'str'
-// returns: 0 on success, -1 on error
-int ParseRFC850DateTime( IN const char* str,
-    OUT struct tm* dateTime, OUT int* numCharsParsed );
-
-int ParseRFC1123DateTime( IN const char* str,
-    OUT struct tm* dateTime, OUT int* numCharsParsed );
-
-int ParseAsctimeFmt( IN const char* str,
-    OUT struct tm* dateTime, OUT int* numCharsParsed );
-
-// parses any of these formats: 1123, 850 or asctime()  
-int ParseDateTime( IN const char* str,
-    OUT struct tm* dateTime, OUT int* numCharsParsed );
-
-#ifdef __cplusplus
-}   /* extern C */
-#endif
-
-#endif /* GENLIB_UTIL_GMTDATE_H */

+ 0 - 499
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/httpparser.h

@@ -1,499 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_NET_HTTP_HTTPPARSER_H
-#define GENLIB_NET_HTTP_HTTPPARSER_H
-
-/*!
- * \file
- */
-
-#include "LinkedList.h"
-#include "membuffer.h"
-#include "uri.h"
-#include "upnputil.h"
-
-/* private types */
-
-/* scanner */
-
-/* Used to represent different types of tokens in input. */
-typedef enum
-{
-	TT_IDENTIFIER, 
-	TT_WHITESPACE, 
-	TT_CRLF, 
-	TT_CTRL,
-	TT_SEPARATOR,
-	TT_QUOTEDSTRING,
-} token_type_t;
-
-typedef struct
-{
-	/*! raw http msg. */
-	membuffer* msg;
-	/*! current position in buffer. */
-	size_t cursor;
-	/*! set this to TRUE if the entire msg is loaded in 'msg';
-	 * else FALSE if only partial msg in 'msg' (default is FALSE). */
-	int entire_msg_loaded;
-} scanner_t;
-
-typedef enum
-{
-	POS_REQUEST_LINE,
-	POS_RESPONSE_LINE,
-	POS_HEADERS,
-	POS_ENTITY,
-	POS_COMPLETE,
-} parser_pos_t;
-
-#define ENTREAD_DETERMINE_READ_METHOD	1
-#define ENTREAD_USING_CLEN		2
-#define ENTREAD_USING_CHUNKED		3
-#define ENTREAD_UNTIL_CLOSE		4
-#define ENTREAD_CHUNKY_BODY		5
-#define ENTREAD_CHUNKY_HEADERS		6
-
-/* end of private section. */
-
-/* method in a HTTP request. */
-typedef enum
-{
-	HTTPMETHOD_POST, 
-	HTTPMETHOD_MPOST, 
-	HTTPMETHOD_SUBSCRIBE, 
-	HTTPMETHOD_UNSUBSCRIBE, 
-	HTTPMETHOD_NOTIFY, 
-	HTTPMETHOD_GET,
-	HTTPMETHOD_HEAD, 
-	HTTPMETHOD_MSEARCH, 
-	HTTPMETHOD_UNKNOWN,
-	SOAPMETHOD_POST,
-	HTTPMETHOD_SIMPLEGET
-} http_method_t;
-
-/* different types of HTTP headers */
-#define HDR_UNKNOWN			-1
-#define HDR_CACHE_CONTROL		1
-#define HDR_CALLBACK			2
-#define HDR_CONTENT_LENGTH		3
-#define HDR_CONTENT_TYPE		4
-#define HDR_DATE			5
-#define HDR_EXT				6
-#define HDR_HOST			7
-/*define HDR_IF_MODIFIED_SINCE		8 */
-/*define HDR_IF_UNMODIFIED_SINCE	9 */
-/*define HDR_LAST_MODIFIED		10 */
-#define HDR_LOCATION			11
-#define HDR_MAN				12
-#define HDR_MX				13
-#define HDR_NT				14
-#define HDR_NTS				15
-#define HDR_SERVER			16
-#define HDR_SEQ				17
-#define HDR_SID				18
-#define HDR_SOAPACTION			19
-#define HDR_ST				20
-#define HDR_TIMEOUT			21
-#define HDR_TRANSFER_ENCODING		22
-#define HDR_USN				23
-#define HDR_USER_AGENT			24
-
-/* Adding new header difinition */
-#define HDR_ACCEPT			25
-#define HDR_ACCEPT_ENCODING		26
-#define HDR_ACCEPT_CHARSET		27
-#define HDR_ACCEPT_LANGUAGE		28
-#define HDR_ACCEPT_RANGE		29
-#define HDR_CONTENT_ENCODING		30
-#define HDR_CONTENT_LANGUAGE		31
-#define HDR_CONTENT_LOCATION		32
-#define HDR_CONTENT_RANGE		33
-#define HDR_IF_RANGE			34
-#define HDR_RANGE			35
-#define HDR_TE				36
-
-/*! status of parsing */
-typedef enum {
-	/*! msg was parsed successfully. */
-	PARSE_SUCCESS = 0,
-	/*! need more data to continue. */
-	PARSE_INCOMPLETE,
-	/*! for responses that don't have length specified. */
-	PARSE_INCOMPLETE_ENTITY,
-	/*! parse failed; check status code for details. */
-	PARSE_FAILURE,
-	/*! done partial. */
-	PARSE_OK,
-	/*! token not matched. */
-	PARSE_NO_MATCH,
-	/*! private. */
-	PARSE_CONTINUE_1
-} parse_status_t;
-
-typedef struct {
-	/*! header name as a string. */
-	memptr name;
-	/*! header name id (for a selective group of headers only). */
-	int name_id;
-	/*! raw-value; could be multi-lined; min-length = 0. */
-	membuffer value;
-	/* private. */
-	membuffer name_buf;
-} http_header_t;
-
-typedef struct {
-	int initialized;
-	/*! request only. */
-	http_method_t method;
-	/*! request only. */
-	uri_type uri;
-	/*! response only. */
-	http_method_t request_method;
-	/*! response only. */
-	int status_code;
-	/*! response only. */
-	membuffer status_msg;
-       /*! response only. the amount of data that's been read by the user, that's no
-        *  longer in the raw message buffer.
-        */
-       size_t amount_discarded;
-	/* fields used in both request or response messages. */
-	/*! if TRUE, msg is a request, else response. */
-	int is_request;
-	/* http major version. */
-	int major_version;
-	/* http minor version. */
-	int minor_version;
-	/*! . */
-	LinkedList headers;
-	/*! message body(entity). */
-	memptr entity;
-	/* private fields. */
-	/*! entire raw message. */
-	membuffer msg;
-        /*! storage for url string. */
-        char *urlbuf;
-} http_message_t;
-
-typedef struct {
-	http_message_t msg;
-	/*! read-only; in case of parse error, this
-	 * contains the HTTP error code (4XX or 5XX). */
-	int http_error_code;
-	/*! read-only; this is set to true if a NOTIFY request has no
-	 * content-length. used to read valid sspd notify msg. */
-	int valid_ssdp_notify_hack;
-	/* private data -- don't touch. */
-	parser_pos_t position;
-	int ent_position;
-	unsigned int content_length;
-	size_t chunk_size;
-       /*! offset in the the raw message buffer, which contains the message body.
-        *  preceding this are the headers of the messsage. */
-	size_t entity_start_position;
-	scanner_t scanner;
-} http_parser_t;
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-/************************************************************************
-*	Function :	httpmsg_init
-*
-*	Parameters :
-*		INOUT http_message_t* msg ;	HTTP Message Object
-*
-*	Description :	Initialize and allocate memory for http message
-*
-*	Return : void ;
-*
-*	Note :
-************************************************************************/
-void httpmsg_init( INOUT http_message_t* msg );
-
-/************************************************************************
-*	Function :	httpmsg_destroy
-*
-*	Parameters :
-*		INOUT http_message_t* msg ;	HTTP Message Object
-*
-*	Description :	Free memory allocated for the http message
-*
-*	Return : void ;
-*
-*	Note :
-************************************************************************/
-void httpmsg_destroy( INOUT http_message_t* msg );
-
-/************************************************************************
-*	Function :	httpmsg_find_hdr_str
-*
-*	Parameters :
-*		IN http_message_t* msg ;	HTTP Message Object
-*		IN const char* header_name ; Header name to be compared with	
-*
-*	Description :	Compares the header name with the header names stored 
-*		in	the linked list of messages
-*
-*	Return : http_header_t* - Pointer to a header on success;
-*			 NULL on failure
-*	Note :
-************************************************************************/
-http_header_t* httpmsg_find_hdr_str( IN http_message_t* msg,
-			IN const char* header_name );
-
-/************************************************************************
-*	Function :	httpmsg_find_hdr
-*
-*	Parameters :
-*		IN http_message_t* msg ; HTTP Message Object
-*		IN int header_name_id ;	 Header Name ID to be compared with
-*		OUT memptr* value ;		 Buffer to get the ouput to.
-*
-*	Description :	Finds header from a list, with the given 'name_id'.
-*
-*	Return : http_header_t*  - Pointer to a header on success;
-*		 NULL on failure
-*
-*	Note :
-************************************************************************/
-http_header_t* httpmsg_find_hdr( IN http_message_t* msg, 
-			IN int header_name_id, OUT memptr* value );
-
-/************************************************************************
-* Function: parser_request_init											
-*																		
-* Parameters:															
-*	OUT http_parser_t* parser ; HTTP Parser object									
-*																
-* Description: Initializes parser object for a request					
-*																		
-* Returns:																
-*	 void																
-************************************************************************/
-void parser_request_init( OUT http_parser_t* parser );
-
-/************************************************************************
-* Function: parser_response_init										
-*																		
-* Parameters:															
-*	OUT http_parser_t* parser	;	  HTTP Parser object
-*	IN http_method_t request_method	; Request method 					
-*																		
-* Description: Initializes parser object for a response					
-*																		
-* Returns:																
-*	 void																
-************************************************************************/
-void parser_response_init( OUT http_parser_t* parser, 
-			   IN http_method_t request_method );
-
-/************************************************************************
-* Function: parser_parse												
-*																		
-* Parameters:															
-*	INOUT http_parser_t* parser ; HTTP Parser object					
-*																		
-* Description: The parser function. Depending on the position of the 	
-*	parser object the actual parsing function is invoked				
-*																		
-* Returns:																
-*	 void																
-************************************************************************/
-parse_status_t parser_parse(INOUT http_parser_t * parser);
-
-/************************************************************************
-* Function: parser_parse_responseline									
-*																		
-* Parameters:															
-*	INOUT http_parser_t* parser	; HTTP Parser object					
-*																		
-* Description: Get HTTP Method, URL location and version information.	
-*																		
-* Returns:																
-*	PARSE_OK															
-*	PARSE_SUCCESS														
-*	PARSE_FAILURE														
-************************************************************************/
-parse_status_t parser_parse_responseline(INOUT http_parser_t *parser);
-
-/************************************************************************
-* Function: parser_parse_headers									
-*																		
-* Parameters:															
-*	INOUT http_parser_t* parser	; HTTP Parser object										
-*													
-* Description: Get HTTP Method, URL location and version information.	
-*																		
-* Returns:																
-*	PARSE_OK															
-*	PARSE_SUCCESS														
-*	PARSE_FAILURE														
-************************************************************************/
-parse_status_t parser_parse_headers(INOUT http_parser_t *parser);
-
-/************************************************************************
-* Function: parser_parse_entity											
-*																		
-* Parameters:															
-*	INOUT http_parser_t* parser	; HTTP Parser object					
-*																		
-* Description: Determines method to read entity							
-*																		
-* Returns:																
-*	 PARSE_OK															
-* 	 PARSE_FAILURE														
-*	 PARSE_COMPLETE	-- no more reading to do							
-************************************************************************/
-parse_status_t parser_parse_entity(INOUT http_parser_t *parser);
-
-/************************************************************************
-* Function: parser_get_entity_read_method								
-*																		
-* Parameters:															
-*	INOUT http_parser_t* parser	; HTTP Parser object					
-*																		
-* Description: Determines method to read entity							
-*																		
-* Returns:																
-*	 PARSE_OK															
-* 	 PARSE_FAILURE														
-*	 PARSE_COMPLETE	-- no more reading to do							
-************************************************************************/
-parse_status_t parser_get_entity_read_method( INOUT http_parser_t* parser );
-
-/************************************************************************
-* Function: parser_append												
-*																		
-* Parameters:															
-*	INOUT http_parser_t* parser ;	HTTP Parser Object					
-*	IN const char* buf	;	buffer to be appended to the parser
-*					buffer
-*	IN size_t buf_length ;		Size of the buffer
-*																		
-* Description: The parser function. Depending on the position of the 	
-*	parser object the actual parsing function is invoked				
-*																		
-* Returns:																
-*	 void																
-************************************************************************/
-parse_status_t parser_append( INOUT http_parser_t* parser, 
-				 IN const char* buf,
-				 IN size_t buf_length );
-
-/************************************************************************
-* Function: matchstr													
-*																		
-* Parameters:															
-*	IN char *str ;		 String to be matched
-*	IN size_t slen ;     Length of the string
-*	IN const char* fmt ; Pattern format												
-*	...																	
-*																		
-* Description: Matches a variable parameter list with a string			
-*	and takes actions based on the data type specified.					
-*																		
-* Returns:																
-*   PARSE_OK															
-*   PARSE_NO_MATCH -- failure to match pattern 'fmt'					
-*   PARSE_FAILURE	-- 'str' is bad input							
-************************************************************************/
-parse_status_t matchstr( IN char *str, IN size_t slen, IN const char* fmt, ... );
-
-/************************************************************************
-* Function: raw_to_int													
-*																		
-* Parameters:															
-*	IN memptr* raw_value ;	Buffer to be converted 					
-*	IN int base ;			Base  to use for conversion
-*																		
-* Description: Converts raw character data to long-integer value					
-*																		
-* Returns:																
-*	 int																
-************************************************************************/
-int raw_to_int( IN memptr* raw_value, int base );
-
-/************************************************************************
-* Function: raw_find_str
-*
-* Parameters:
-*	IN memptr* raw_value ; Buffer containg the string
-*	IN const char* str ;	Substring to be found
-*
-* Description: Find a substring from raw character string buffer
-*
-* Side effects: raw_value is transformed to lowercase.
-*
-* Returns:
-*	 int - index at which the substring is found.						
-************************************************************************/
-int raw_find_str( IN memptr* raw_value, IN const char* str );
-
-/************************************************************************
-* Function: method_to_str												
-*																		
-* Parameters:															
-* IN http_method_t method ; HTTP method						
-*																		
-* Description: A wrapper function that maps a method id to a method		
-*	nameConverts a http_method id stored in the HTTP Method				
-*																		
-* Returns:																
-*	 const char* ptr - Ptr to the HTTP Method
-************************************************************************/
-const char* method_to_str( IN http_method_t method );
-
-/*!
- * \brief Print the HTTP headers.
- */
-#ifdef DEBUG
-void print_http_headers(
-	/*! [in] HTTP Message object. */
-	http_message_t *hmsg);
-#else
-static UPNP_INLINE void print_http_headers(http_message_t *hmsg)
-{
-	return;
-	hmsg = hmsg;
-}
-#endif
-
-#ifdef __cplusplus
-}		/* extern "C" */
-#endif	/* __cplusplus */
-
-#endif /* GENLIB_NET_HTTP_HTTPPARSER_H */
-

+ 0 - 584
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/httpreadwrite.h

@@ -1,584 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- * Copyright (c) 2012 France Telecom All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_NET_HTTP_HTTPREADWRITE_H
-#define GENLIB_NET_HTTP_HTTPREADWRITE_H
-
-/*
- * \file
- */
-
-#include "config.h"
-#include "upnputil.h"
-#include "sock.h"
-#include "httpparser.h"
-
-/*! timeout in secs. */
-#define HTTP_DEFAULT_TIMEOUT	30
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef WIN32
-struct tm *http_gmtime_r(const time_t *clock, struct tm *result);
-#else
-#define http_gmtime_r gmtime_r
-#endif
-
-int http_CancelHttpGet(IN void *Handle);
-
-/*!
- * \brief Validates URL.
- *
- * \return
- * 	\li \c UPNP_E_INVALID_URL
- * 	\li \c UPNP_E_SUCCESS
- */
-int http_FixUrl(
-	/*! [in] URL to be validated and fixed. */
-	uri_type *url,
-	/*! [out] URL after being fixed. */
-	uri_type *fixed_url);
-
-/*!
- * \brief Parses URL and then validates URL.
- *
- * \return
- * 	\li \c UPNP_E_INVALID_URL
- * 	\li \c UPNP_E_SUCCESS
- */
-int http_FixStrUrl(
-	/*! [in] Character string as a URL. */
-	const char *urlstr,
-	/*! [in] Length of the character string. */
-	size_t urlstrlen,
-	/*! [out] Fixed and corrected URL. */
-	uri_type *fixed_url);
-
-/*!
- * \brief Gets destination address from URL and then connects to the
- * remote end.
- *
- * \return Socket descriptor on success, or on error:
- * 	\li \c UPNP_E_OUTOF_SOCKET
- * 	\li \c UPNP_E_SOCKET_CONNECT
- */
-SOCKET http_Connect(
-	/*! [in] URL containing destination information. */
-	uri_type *destination_url,
-	/*! [out] Fixed and corrected URL. */
-	uri_type *url);
-
-
-/************************************************************************
- * Function: http_RecvMessage
- *
- * Parameters:
- *	IN SOCKINFO *info;			Socket information object
- *	OUT http_parser_t* parser;		HTTP parser object
- *	IN http_method_t request_method;	HTTP request method
- *	IN OUT int* timeout_secs;		time out
- *	OUT int* http_error_code;		HTTP error code returned
- *
- * Description:
- *	Get the data on the socket and take actions based on the read data
- *	to modify the parser objects buffer. If an error is reported while
- *	parsing the data, the error code is passed in the http_errr_code
- *	parameter
- *
- * Returns:
- *	 UPNP_E_BAD_HTTPMSG
- * 	 UPNP_E_SUCCESS
- ************************************************************************/
-int http_RecvMessage( IN SOCKINFO *info, OUT http_parser_t* parser,
-		IN http_method_t request_method, 
-		IN OUT int* timeout_secs,
-		OUT int* http_error_code );
-
-
-/*!
- * \brief Sends a message to the destination based on the format parameter.
- *
- * fmt types:
- * \li \c 'f': arg = "const char *" file name
- * \li \c 'b': arg1 = "const char *" mem_buffer; arg2 = "size_t" buffer length.
- * \li \c 'I': arg = "struct SendInstruction *"
- *
- * E.g.:
- \verbatim
- 	char *buf = "POST /xyz.cgi http/1.1\r\n\r\n";
- 	char *filename = "foo.dat";
- 	int status = http_SendMessage(tcpsock, "bf",
- 		buf, strlen(buf),	// args for memory buffer
- 		filename);		// arg for file
- \endverbatim
- *
- * \return
- * \li \c UPNP_E_OUTOF_MEMORY
- * \li \c UPNP_E_FILE_READ_ERROR
- * \li \c UPNP_E_SUCCESS
- */
-int http_SendMessage(
-	/* [in] Socket information object. */
-	SOCKINFO *info,
-	/* [in,out] Time out value. */
-	int* timeout_secs, 
-	/* [in] Pattern format to take actions upon. */
-	const char* fmt,
-	/* [in] Variable parameter list. */
-	...);
-
-/************************************************************************
- * Function: http_RequestAndResponse
- *
- * Parameters:
- *	IN uri_type* destination;	Destination URI object which contains
- *					remote IP address among other elements
- *	IN const char* request;		Request to be sent
- *	IN size_t request_length;	Length of the request
- *	IN http_method_t req_method;	HTTP Request method
- *	IN int timeout_secs;		time out value
- *	OUT http_parser_t* response;	Parser object to receive the repsonse
- *
- * Description:
- *	Initiates socket, connects to the destination, sends a
- *	request and waits for the response from the remote end
- *
- * Returns:
- *	UPNP_E_SOCKET_ERROR
- * 	UPNP_E_SOCKET_CONNECT
- *	Error Codes returned by http_SendMessage
- *	Error Codes returned by http_RecvMessage
- ************************************************************************/
-int http_RequestAndResponse(
-	IN uri_type* destination,
-	IN const char* request,
-	IN size_t request_length,
-	IN http_method_t req_method,
-	IN int timeout_secs, 
-	OUT http_parser_t* response );
-
-
-/************************************************************************
- * return codes:
- *	0 -- success
- *	UPNP_E_OUTOF_MEMORY
- *	UPNP_E_TIMEDOUT
- *	UPNP_E_BAD_REQUEST
- *	UPNP_E_BAD_RESPONSE
- *	UPNP_E_INVALID_URL
- *	UPNP_E_SOCKET_READ
- *	UPNP_E_SOCKET_WRITE
- ************************************************************************/
-
-
-/************************************************************************
- * Function: http_Download
- *
- * Parameters:
- *	IN const char* url_str;	String as a URL
- *	IN int timeout_secs;	time out value
- *	OUT char** document;	buffer to store the document extracted
- *				from the donloaded message.
- *	OUT size_t* doc_length;	length of the extracted document
- *	OUT char* content_type;	Type of content
- *
- * Description:
- *	Download the document message and extract the document 
- *	from the message.
- *
- * Return: int
- *	UPNP_E_SUCCESS
- *	UPNP_E_INVALID_URL
- ************************************************************************/
-int http_Download(
-	IN const char* url, 
-	IN int timeout_secs,
-	OUT char** document,
-	OUT size_t *doc_length,
-	OUT char* content_type );
-
-
-/************************************************************************
- * Function: http_WriteHttpPost
- *
- * Parameters:
- *	IN void *Handle:	Handle to the http post object
- *	IN char *buf:		Buffer to send to peer, if format used
- *				is not UPNP_USING_CHUNKED, 
- *	IN size_t *size:	Size of the data to be sent.
- *	IN int timeout:		time out value
- *
- * Description:
- *	Formats data if format used is UPNP_USING_CHUNKED.
- *	Writes data on the socket connected to the peer.
- *
- * Return: int
- *	UPNP_E_SUCCESS - On Success
- *	UPNP_E_INVALID_PARAM - Invalid Parameter
- *	-1 - On Socket Error.
- ************************************************************************/
-int http_WriteHttpPost(IN void *Handle,
-		       IN char *buf,
-		       IN size_t *size,
-		       IN int timeout);
-
-
-/************************************************************************
- * Function: http_CloseHttpPost
- *
- * Parameters:
- *	IN void *Handle;	Handle to the http post object
- *	IN OUT int *httpStatus;	HTTP status returned on receiving a
- *				response message
- *	IN int timeout;		time out value
- *
- * Description:
- *	Sends remaining data if using  UPNP_USING_CHUNKED 
- *	format. Receives any more messages. Destroys socket and any socket
- *	associated memory. Frees handle associated with the HTTP POST msg.
- *
- * Return: int
- *	UPNP_E_SUCCESS		- On success
- *	UPNP_E_INVALID_PARAM	- Invalid Parameter
- ************************************************************************/
-int http_CloseHttpPost(IN void *Handle, 
-		       IN OUT int *httpStatus,
-		       IN int timeout);
-
-
-/************************************************************************
- * Function: http_OpenHttpPost
- *
- * Parameters:
- *	IN const char *url_str;		String as a URL	
- *	IN OUT void **Handle;		Pointer to buffer to store HTTP
- *					post handle
- *	IN const char *contentType;	Type of content
- *	IN int contentLength;		length of content
- *	IN int timeout;			time out value
- *
- * Description:
- *	Makes the HTTP POST message, connects to the peer, 
- *	sends the HTTP POST request. Adds the post handle to buffer of 
- *	such handles
- *
- * Return : int;
- *	UPNP_E_SUCCESS		- On success
- *	UPNP_E_INVALID_PARAM	- Invalid Parameter
- *	UPNP_E_OUTOF_MEMORY
- *	UPNP_E_SOCKET_ERROR
- *	UPNP_E_SOCKET_CONNECT
- ************************************************************************/
-int http_OpenHttpPost(IN const char *url_str,
-		      IN OUT void **Handle,
-		      IN const char *contentType,
-		      IN int contentLength,
-		      IN int timeout);
-
-
-/************************************************************************
- * Function: http_ReadHttpGet
- *
- * Parameters:
- *	IN void *Handle;	Handle to the HTTP get object
- *	IN OUT char *buf;	Buffer to get the read and parsed data
- *	IN OUT size_t *size;	Size of the buffer passed
- *	IN int timeout;		time out value
- *
- * Description:
- *	Parses already existing data, then gets new data.
- *	Parses and extracts information from the new data.
- *
- * Return: int
- *	UPNP_E_SUCCESS		- On success
- *	UPNP_E_INVALID_PARAM	- Invalid Parameter
- *	UPNP_E_BAD_RESPONSE
- *	UPNP_E_BAD_HTTPMSG
- *	UPNP_E_CANCELED
- ************************************************************************/
-int http_ReadHttpGet(
-	IN void *Handle,
-	IN OUT char *buf,
-	IN OUT size_t *size,
-	IN int timeout);
-
-
-/************************************************************************
- * Function: http_HttpGetProgress
- *
- * Parameters:
- *	IN void *Handle;	Handle to the HTTP get object
- *	OUT size_t *length;	Buffer to get the read and parsed data
- *	OUT size_t *total;	Size of tge buffer passed
- *
- * Description:
- *	Extracts information from the Handle to the HTTP get object.
- *
- * Return: int
- *	UPNP_E_SUCCESS		- On Sucess
- *	UPNP_E_INVALID_PARAM	- Invalid Parameter
- ************************************************************************/
-int http_HttpGetProgress(
-	IN void *Handle,
-	OUT size_t *length,
-	OUT size_t *total);
-
-/************************************************************************
- * Function: http_CloseHttpGet
- *
- * Parameters:
- *	IN void *Handle;	Handle to HTTP get object
- *
- * Description:
- *	Clears the handle allocated for the HTTP GET operation
- *	Clears socket states and memory allocated for socket operations. 
- *
- * Return: int
- *	UPNP_E_SUCCESS		- On Success
- *	UPNP_E_INVALID_PARAM	- Invalid Parameter
- ************************************************************************/
-int http_CloseHttpGet(IN void *Handle);
-
-/*!
- * \brief Makes the HTTP GET message, connects to the peer,
- * sends the HTTP GET request, gets the response and parses the response.
- *
- * If a proxy URL is defined then the connection is made there.
- *
- * \return integer
- * \li \c UPNP_E_SUCCESS - On Success
- * \li \c UPNP_E_INVALID_PARAM - Invalid Paramters
- * \li \c UPNP_E_OUTOF_MEMORY
- * \li \c UPNP_E_SOCKET_ERROR
- * \li \c UPNP_E_BAD_RESPONSE
- */
-int http_OpenHttpGet(
-	/* [in] String as a URL. */
-	const char *url_str,
-	/* [in,out] Pointer to buffer to store HTTP post handle. */
-	void **Handle,
-	/* [in,out] Type of content. */
-	char **contentType,
-	/* [out] length of content. */
-	int *contentLength,
-	/* [out] HTTP status returned on receiving a response message. */
-	int *httpStatus,
-	/* [in] time out value. */
-	int timeout);
-
-/*!
- * \brief Makes the HTTP GET message, connects to the peer,
- * sends the HTTP GET request, gets the response and parses the response.
- *
- * If a proxy URL is defined then the connection is made there.
- *
- * \return integer
- * \li \c UPNP_E_SUCCESS - On Success
- * \li \c UPNP_E_INVALID_PARAM - Invalid Paramters
- * \li \c UPNP_E_OUTOF_MEMORY
- * \li \c UPNP_E_SOCKET_ERROR
- * \li \c UPNP_E_BAD_RESPONSE
- */
-int http_OpenHttpGetProxy(
-	/* [in] String as a URL. */
-	const char *url_str,
-	/* [in] String as a URL. */
-	const char *proxy_str,
-	/* [in,out] Pointer to buffer to store HTTP post handle. */
-	void **Handle,
-	/* [in,out] Type of content. */
-	char **contentType,
-	/* [out] length of content. */
-	int *contentLength,
-	/* [out] HTTP status returned on receiving a response message. */
-	int *httpStatus,
-	/* [in] time out value. */
-	int timeout);
-
-
-/************************************************************************
- * Function: http_SendStatusResponse
- *
- * Parameters:
- *	IN SOCKINFO *info;		Socket information object
- *	IN int http_status_code;	error code returned while making 
- *					or sending the response message
- *	IN int request_major_version;	request major version
- *	IN int request_minor_version;	request minor version
- *
- * Description:
- *	Generate a response message for the status query and send the
- *	status response.
- *
- * Return: int
- *	0 -- success
- *	UPNP_E_OUTOF_MEMORY
- *	UPNP_E_SOCKET_WRITE
- *	UPNP_E_TIMEDOUT
- ************************************************************************/
-int http_SendStatusResponse(
-	IN SOCKINFO *info,
-	IN int http_status_code,
-	IN int request_major_version,
-	IN int request_minor_version );
-
-/*!
- * \brief Generate an HTTP message based on the format that is specified in
- * the input parameters.
- *
-\verbatim
-Format types:
-	'B':	arg = int status_code		-- appends content-length, content-type and HTML body for given code.
-	'b':	arg1 = const char *buf;
-		arg2 = size_t buf_length memory ptr
-	'C':	(no args)			-- appends a HTTP CONNECTION: close header depending on major, minor version.
-	'c':	(no args)			-- appends CRLF "\r\n"
-	'D':	(no args)			-- appends HTTP DATE: header
-	'd':	arg = int number		-- appends decimal number
-	'G':	arg = range information		-- add range header
-	'h':	arg = off_t number		-- appends off_t number
-	'K':	(no args)			-- add chunky header
-	'L':	arg = language information	-- add Content-Language header if Accept-Language header is not empty and if
-						   WEB_SERVER_CONTENT_LANGUAGE is not empty
-	'N':	arg1 = off_t content_length	-- content-length header
-	'q':	arg1 = http_method_t		-- request start line and HOST header
-		arg2 = (uri_type *)
-	'Q':	arg1 = http_method_t;		-- start line of request
-		arg2 = char* url;
-		arg3 = size_t url_length 
-	'R':	arg = int status_code		-- adds a response start line
-	'S':	(no args)			-- appends HTTP SERVER: header
-	's':	arg = const char *		-- C_string
-	'T':	arg = char * content_type;	-- format e.g: "text/html"; content-type header
-	't':	arg = time_t * gmt_time		-- appends time in RFC 1123 fmt
-	'U':	(no args)			-- appends HTTP USER-AGENT: header
-	'X':	arg = const char *		-- useragent; "redsonic" HTTP X-User-Agent: useragent
-\endverbatim
- *
- * \return
- * 	\li \c 0 - On Success
- * 	\li \c UPNP_E_OUTOF_MEMORY
- * 	\li \c UPNP_E_INVALID_URL
- */
-int http_MakeMessage(
-	/* [in,out] Buffer with the contents of the message. */
-	INOUT membuffer* buf, 
-	/* [in] HTTP major version. */
-	IN int http_major_version,
-	/* [in] HTTP minor version. */
-	IN int http_minor_version,
-	/* [in] Pattern format. */
-	IN const char* fmt,
-	/* [in] Format arguments. */
-	... );
-
-
-/************************************************************************
- * Function: http_CalcResponseVersion
- *
- * Parameters:
- *	IN int request_major_vers;	Request major version
- *	IN int request_minor_vers;	Request minor version
- *	OUT int* response_major_vers;	Response mojor version
- *	OUT int* response_minor_vers;	Response minor version
- *
- * Description:
- *	Calculate HTTP response versions based on the request versions.
- *
- * Return: void
- ************************************************************************/
-void http_CalcResponseVersion( 
-	IN int request_major_vers,
-	IN int request_minor_vers,
-	OUT int* response_major_vers,
-	OUT int* response_minor_vers );
-
-
-/************************************************************************
- * Function: http_OpenHttpGetEx
- *
- * Parameters:
- *	IN const char *url_str;		String as a URL
- *	IN OUT void **Handle;		Pointer to buffer to store HTTP
- *					post handle
- *	IN OUT char **contentType;	Type of content
- *	OUT int *contentLength;		length of content
- *	OUT int *httpStatus;		HTTP status returned on receiving a
- *					response message
- *	IN int timeout;			time out value
- *
- * Description:
- *	Makes the HTTP GET message, connects to the peer, 
- *	sends the HTTP GET request, gets the response and parses the 
- *	response.
- *
- * Return: int
- *	UPNP_E_SUCCESS		- On Success
- *	UPNP_E_INVALID_PARAM	- Invalid Paramters
- *	UPNP_E_OUTOF_MEMORY
- *	UPNP_E_SOCKET_ERROR
- *	UPNP_E_BAD_RESPONSE
- ************************************************************************/
-int http_OpenHttpGetEx(IN const char *url_str,
-		     IN OUT void **Handle,
-		     IN OUT char **contentType,
-		     OUT int *contentLength,
-		     OUT int *httpStatus,
-			 IN int lowRange,
-			 IN int highRange,
-		     IN int timeout);
-
-
-/************************************************************************
- * Function: get_sdk_info
- *
- * Parameters:
- *	OUT char *info;	buffer to store the operating system information
- *	IN size_t infoSize; size of buffer
- *
- * Description:
- *	Returns the server information for the operating system
- *
- * Return:
- *	UPNP_INLINE void
- ************************************************************************/
-void get_sdk_info( OUT char *info, IN size_t infoSize );
-
-#ifdef __cplusplus
-}	/* #extern "C" */
-#endif
-
-
-#endif /* GENLIB_NET_HTTP_HTTPREADWRITE_H */
-

+ 0 - 50
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/inet_pton.h

@@ -1,50 +0,0 @@
-#ifndef INET_PTON
-#define INET_PTON
-
-#ifdef WIN32
-
-#ifdef IPV6_
-#define INET_IPV6
-#endif
-
-#include "unixutil.h"
-
-#include <errno.h>
-#include <stdio.h>
-#include <string.h>
-
-/*!
- * \file
- *
- * \author: Paul Vixie, 1996.
- *
- * \brief Network support routines missing in WIN32.
- *
- * \warning Don't even consider trying to compile this on a system where
- * sizeof(int) < 4.  sizeof(int) 4 is fine; all the world's not a VAX.
- *
- */
-
-/*!
- * \brief convert a network format address to presentation format.
- *
- * \return
- *	pointer to presentation format address (`dst'), or NULL (see errno).
- */
-extern const char *inet_ntop(int af, const void *src, char *dst,
-			     socklen_t size);
-
-/*!
- * \brief convert from presentation format (which usually means ASCII printable)
- * to network format (which is usually some kind of binary format).
- *
- * \return
- *	\li 1 if the address was valid for the specified address family
- *	\li 0 if the address wasn't valid (`dst' is untouched in this case)
- *	\li -1 if some other error occurred (`dst' is untouched in this case, too)
- */
-extern int inet_pton(int af, const char *src, void *dst);
-
-#endif /* WIN32 */
-
-#endif /* INET_PTON */

+ 0 - 948
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ithread.h

@@ -1,948 +0,0 @@
-#ifndef ITHREAD_H
-#define ITHREAD_H
-
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-/*!
- * \file
- */
-
-#if !defined(WIN32)
-	#include <sys/param.h>
-#endif
-
-#include "UpnpGlobal.h" /* For UPNP_INLINE, EXPORT_SPEC */
-#include "UpnpUniStd.h" /* for close() */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <pthread.h>
-
-#if defined(BSD) && !defined(__GNU__)
-	#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
-#endif
-
-
-#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__)
-	/* This system has SuS2-compliant mutex attributes.
-	 * E.g. on Cygwin, where we don't have the old nonportable (NP) symbols
-	 */
-	#define ITHREAD_MUTEX_FAST_NP       PTHREAD_MUTEX_NORMAL
-	#define ITHREAD_MUTEX_RECURSIVE_NP  PTHREAD_MUTEX_RECURSIVE
-	#define ITHREAD_MUTEX_ERRORCHECK_NP PTHREAD_MUTEX_ERRORCHECK
-#else /* PTHREAD_MUTEX_RECURSIVE */
-	#define ITHREAD_MUTEX_FAST_NP       PTHREAD_MUTEX_FAST_NP
-	#define ITHREAD_MUTEX_RECURSIVE_NP  PTHREAD_MUTEX_RECURSIVE_NP
-	#define ITHREAD_MUTEX_ERRORCHECK_NP PTHREAD_MUTEX_ERRORCHECK_NP
-#endif /* PTHREAD_MUTEX_RECURSIVE */
-
-
-#define ITHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE
-#define ITHREAD_PROCESS_SHARED  PTHREAD_PROCESS_SHARED
-
-
-#define ITHREAD_CANCELED PTHREAD_CANCELED
-
-
-#define ITHREAD_STACK_MIN PTHREAD_STACK_MIN
-#define ITHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED
-#define ITHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE
-
-/***************************************************************************
- * Name: ithread_t
- *
- *  Description:
- *      Thread handle.
- *      typedef to pthread_t.
- *      Internal Use Only.
- ***************************************************************************/
-typedef pthread_t ithread_t;
-
-  
-/****************************************************************************
- * Name: ithread_attr_t
- *
- *  Description:
- *      Thread attribute.
- *      typedef to pthread_attr_t
- *      Internal Use Only
- ***************************************************************************/
-typedef pthread_attr_t ithread_attr_t;	
-
-
-/****************************************************************************
- * Name: start_routine
- *
- *  Description:
- *      Thread start routine 
- *      Internal Use Only.
- ***************************************************************************/
-typedef void *(*start_routine)(void *arg);
-
-  
-/****************************************************************************
- * Name: ithread_cond_t
- *
- *  Description:
- *      condition variable.
- *      typedef to pthread_cond_t
- *      Internal Use Only.
- ***************************************************************************/
-typedef pthread_cond_t ithread_cond_t;
-
-
-/****************************************************************************
- * Name: ithread_mutexattr_t
- *
- *  Description:
- *      Mutex attribute.
- *      typedef to pthread_mutexattr_t
- *      Internal Use Only
- ***************************************************************************/
-typedef pthread_mutexattr_t ithread_mutexattr_t;	
-
-
-/****************************************************************************
- * Name: ithread_mutex_t
- *
- *  Description:
- *      Mutex.
- *      typedef to pthread_mutex_t
- *      Internal Use Only.
- ***************************************************************************/
-typedef pthread_mutex_t ithread_mutex_t;
-
-
-/****************************************************************************
- * Name: ithread_condattr_t
- *
- *  Description:
- *      Condition attribute.
- *      typedef to pthread_condattr_t
- *      NOT USED
- *      Internal Use Only
- ***************************************************************************/
-typedef pthread_condattr_t ithread_condattr_t;	
-
-
-/****************************************************************************
- * Name: ithread_rwlockattr_t
- *
- *  Description:
- *      Mutex attribute.
- *      typedef to pthread_rwlockattr_t
- *      Internal Use Only
- ***************************************************************************/
-#if UPNP_USE_RWLOCK
-typedef pthread_rwlockattr_t ithread_rwlockattr_t;	
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Name: ithread_rwlock_t
- *
- *  Description:
- *      Condition attribute.
- *      typedef to pthread_rwlock_t
- *      Internal Use Only
- ***************************************************************************/
-#if UPNP_USE_RWLOCK
-	typedef pthread_rwlock_t ithread_rwlock_t;
-#else
-	/* Read-write locks aren't available: use mutex instead. */
-	typedef ithread_mutex_t ithread_rwlock_t;
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Function: ithread_initialize_library
- *
- *  Description:
- *      Initializes the library. Does nothing in all implementations, except
- *      when statically linked for WIN32.
- *  Parameters:
- *      none.
- *  Returns:
- *      0 on success, Nonzero on failure.
- ***************************************************************************/
-static UPNP_INLINE int ithread_initialize_library(void) {
-	int ret = 0;
-
-	return ret;
-}
-
-
-/****************************************************************************
- * Function: ithread_cleanup_library
- *
- *  Description:
- *      Clean up library resources. Does nothing in all implementations, except
- *      when statically linked for WIN32.
- *  Parameters:
- *      none.
- *  Returns:
- *      0 on success, Nonzero on failure.
- ***************************************************************************/
-static UPNP_INLINE int ithread_cleanup_library(void) {
-	int ret = 0;
-
-	return ret;
-}
-
-
-/****************************************************************************
- * Function: ithread_initialize_thread
- *
- *  Description:
- *      Initializes the thread. Does nothing in all implementations, except
- *      when statically linked for WIN32.
- *  Parameters:
- *      none.
- *  Returns:
- *      0 on success, Nonzero on failure.
- ***************************************************************************/
-static UPNP_INLINE int ithread_initialize_thread(void) {
-	int ret = 0;
-
-#if defined(WIN32) && defined(PTW32_STATIC_LIB)
-	ret = !pthread_win32_thread_attach_np();
-#endif
-
-	return ret;
-}
-
-
-/****************************************************************************
- * Function: ithread_cleanup_thread
- *
- *  Description:
- *      Clean up thread resources. Does nothing in all implementations, except
- *      when statically linked for WIN32.
- *  Parameters:
- *      none.
- *  Returns:
- *      0 on success, Nonzero on failure.
- ***************************************************************************/
-static UPNP_INLINE int ithread_cleanup_thread(void) {
-	int ret = 0;
-
-#if defined(WIN32) && defined(PTW32_STATIC_LIB)
-	ret = !pthread_win32_thread_detach_np();
-#endif
-
-	return ret;
-}
-
-
-/****************************************************************************
- * Function: ithread_mutexattr_init
- *
- *  Description:
- *      Initializes a mutex attribute variable.
- *      Used to set the type of the mutex.
- *  Parameters:
- *      ithread_mutexattr_init * attr (must be valid non NULL pointer to 
- *                                     pthread_mutexattr_t)
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutexattr_init
- ***************************************************************************/
-#define ithread_mutexattr_init pthread_mutexattr_init
-
-
-/****************************************************************************
- * Function: ithread_mutexattr_destroy
- *
- *  Description:
- *      Releases any resources held by the mutex attribute.
- *      Currently there are no resources associated with the attribute
- *  Parameters:
- *      ithread_mutexattr_t * attr (must be valid non NULL pointer to 
- *                                  pthread_mutexattr_t)
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutexattr_destroy
- ***************************************************************************/
-#define ithread_mutexattr_destroy pthread_mutexattr_destroy
-  
-  
-/****************************************************************************
- * Function: ithread_mutexattr_setkind_np
- *
- *  Description:
- *      Sets the mutex type in the attribute.
- *      Valid types are: ITHREAD_MUTEX_FAST_NP 
- *                       ITHREAD_MUTEX_RECURSIVE_NP 
- *                       ITHREAD_MUTEX_ERRORCHECK_NP
- *
- *  Parameters:
- *      ithread_mutexattr_t * attr (must be valid non NULL pointer to 
- *                                   ithread_mutexattr_t)
- *      int kind (one of ITHREAD_MUTEX_FAST_NP or ITHREAD_MUTEX_RECURSIVE_NP
- *                or ITHREAD_MUTEX_ERRORCHECK_NP)
- *  Returns:
- *      0 on success. Nonzero on failure.
- *      Returns EINVAL if the kind is not supported.
- *      See man page for pthread_mutexattr_setkind_np
- *****************************************************************************/
-#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__)
-	#define ithread_mutexattr_setkind_np pthread_mutexattr_settype
-#else
-	#define ithread_mutexattr_setkind_np pthread_mutexattr_setkind_np
-#endif /* UPNP_USE_RWLOCK */
-
-/****************************************************************************
- * Function: ithread_mutexattr_getkind_np
- *
- *  Description:
- *      Gets the mutex type in the attribute.
- *      Valid types are: ITHREAD_MUTEX_FAST_NP 
- *                       ITHREAD_MUTEX_RECURSIVE_NP 
- *                       ITHREAD_MUTEX_ERRORCHECK_NP
- *
- *  Parameters:
- *      ithread_mutexattr_t * attr (must be valid non NULL pointer to 
- *                                   pthread_mutexattr_t)
- *      int *kind (one of ITHREAD_MUTEX_FAST_NP or ITHREAD_MUTEX_RECURSIVE_NP
- *                or ITHREAD_MUTEX_ERRORCHECK_NP)
- *  Returns:
- *      0 on success. Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutexattr_getkind_np
- *****************************************************************************/
-#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__)
-	#define ithread_mutexattr_getkind_np pthread_mutexattr_gettype
-#else
-	#define ithread_mutexattr_getkind_np pthread_mutexattr_getkind_np
-#endif /* UPNP_USE_RWLOCK */
-
-  
-/****************************************************************************
- * Function: ithread_mutex_init
- *
- *  Description:
- *      Initializes mutex.
- *      Must be called before use.
- *      
- *  Parameters:
- *      ithread_mutex_t * mutex (must be valid non NULL pointer to pthread_mutex_t)
- *      const ithread_mutexattr_t * mutex_attr 
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutex_init
- *****************************************************************************/
-#define ithread_mutex_init pthread_mutex_init
-
-
-/****************************************************************************
- * Function: ithread_mutex_lock
- *
- *  Description:
- *      Locks mutex.
- *  Parameters:
- *      ithread_mutex_t * mutex (must be valid non NULL pointer to pthread_mutex_t)
- *      mutex must be initialized.
- *      
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutex_lock
- *****************************************************************************/
-#define ithread_mutex_lock pthread_mutex_lock
-  
-
-/****************************************************************************
- * Function: ithread_mutex_unlock
- *
- *  Description:
- *      Unlocks mutex.
- *
- *  Parameters:
- *      ithread_mutex_t * mutex (must be valid non NULL pointer to pthread_mutex_t)
- *      mutex must be initialized.
- *      
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutex_unlock
- *****************************************************************************/
-#define ithread_mutex_unlock pthread_mutex_unlock
-
-
-/****************************************************************************
- * Function: ithread_mutex_destroy
- *
- *  Description:
- *      Releases any resources held by the mutex. 
- *		Mutex can no longer be used after this call.
- *		Mutex is only destroyed when there are no longer any threads waiting on it. 
- *		Mutex cannot be destroyed if it is locked.
- *  Parameters:
- *      ithread_mutex_t * mutex (must be valid non NULL pointer to pthread_mutex_t)
- *      mutex must be initialized.
- *  Returns:
- *      0 on success. Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_mutex_destroy
- *****************************************************************************/
-#define ithread_mutex_destroy pthread_mutex_destroy
-
-
-/****************************************************************************
- * Function: ithread_rwlockattr_init
- *
- *  Description:
- *      Initializes a rwlock attribute variable to default values.
- *  Parameters:
- *      const ithread_rwlockattr_init *attr (must be valid non NULL pointer to 
- *                                           pthread_rwlockattr_t)
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlockattr_init
- ***************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlockattr_init pthread_rwlockattr_init
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Function: ithread_rwlockattr_destroy
- *
- *  Description:
- *      Releases any resources held by the rwlock attribute.
- *  Parameters:
- *      ithread_rwlockattr_t *attr (must be valid non NULL pointer to 
- *                                  pthread_rwlockattr_t)
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlockattr_destroy
- ***************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlockattr_destroy pthread_rwlockattr_destroy
-#endif /* UPNP_USE_RWLOCK */
-  
-  
-/****************************************************************************
- * Function: ithread_rwlockatttr_setpshared
- *
- *  Description:
- *      Sets the rwlock type in the attribute.
- *      Valid types are: ITHREAD_PROCESS_PRIVATE 
- *                       ITHREAD_PROCESS_SHARED
- *
- *  Parameters:
- *      ithread_rwlockattr_t * attr (must be valid non NULL pointer to 
- *                                   ithread_rwlockattr_t)
- *      int kind (one of ITHREAD_PROCESS_PRIVATE or ITHREAD_PROCESS_SHARED)
- *
- *  Returns:
- *      0 on success. Nonzero on failure.
- *      Returns EINVAL if the kind is not supported.
- *      See man page for pthread_rwlockattr_setkind_np
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlockatttr_setpshared pthread_rwlockatttr_setpshared
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Function: ithread_rwlockatttr_getpshared
- *
- *  Description:
- *      Gets the rwlock type in the attribute.
- *      Valid types are: ITHREAD_PROCESS_PRIVATE 
- *                       ITHREAD_PROCESS_SHARED 
- *
- *  Parameters:
- *      ithread_rwlockattr_t * attr (must be valid non NULL pointer to 
- *                                   pthread_rwlockattr_t)
- *      int *kind (one of ITHREAD_PROCESS_PRIVATE or ITHREAD_PROCESS_SHARED)
- *
- *  Returns:
- *      0 on success. Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlockatttr_getpshared
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlockatttr_getpshared pthread_rwlockatttr_getpshared
-#endif /* UPNP_USE_RWLOCK */
-
-  
-/****************************************************************************
- * Function: ithread_rwlock_init
- *
- *  Description:
- *      Initializes rwlock.
- *      Must be called before use.
- *      
- *  Parameters:
- *      ithread_rwlock_t *rwlock (must be valid non NULL pointer to pthread_rwlock_t)
- *      const ithread_rwlockattr_t *rwlock_attr 
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlock_init
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlock_init pthread_rwlock_init
-#else
-	/* Read-write locks aren't available: use mutex instead. */
-	#define ithread_rwlock_init ithread_mutex_init
-#endif
-
-/****************************************************************************
- * Function: ithread_rwlock_rdlock
- *
- *  Description:
- *      Locks rwlock for reading.
- *  Parameters:
- *      ithread_rwlock_t *rwlock (must be valid non NULL pointer to pthread_rwlock_t)
- *      rwlock must be initialized.
- *      
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlock_rdlock
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlock_rdlock pthread_rwlock_rdlock
-#else
-	/* Read-write locks aren't available: use mutex instead. */
-	#define ithread_rwlock_rdlock ithread_mutex_lock
-#endif /* UPNP_USE_RWLOCK */
-
-/****************************************************************************
- * Function: ithread_rwlock_wrlock
- *
- *  Description:
- *      Locks rwlock for writting.
- *  Parameters:
- *      ithread_rwlock_t *rwlock (must be valid non NULL pointer to pthread_rwlock_t)
- *      rwlock must be initialized.
- *      
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlock_wrlock
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlock_wrlock pthread_rwlock_wrlock
-#else
-	/* Read-write locks aren't available: use mutex instead. */
-	#define ithread_rwlock_wrlock ithread_mutex_lock
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Function: ithread_rwlock_unlock
- *
- *  Description:
- *      Unlocks rwlock.
- *
- *  Parameters:
- *      ithread_rwlock_t *rwlock (must be valid non NULL pointer to pthread_rwlock_t)
- *      rwlock must be initialized.
- *      
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlock_unlock
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlock_unlock pthread_rwlock_unlock
-#else
-	/* Read-write locks aren't available: use mutex instead. */
-	#define ithread_rwlock_unlock ithread_mutex_unlock
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Function: ithread_rwlock_destroy
- *
- *  Description:
- *      Releases any resources held by the rwlock. 
- *		rwlock can no longer be used after this call.
- *		rwlock is only destroyed when there are no longer any threads waiting on it. 
- *		rwlock cannot be destroyed if it is locked.
- *  Parameters:
- *      ithread_rwlock_t *rwlock (must be valid non NULL pointer to pthread_rwlock_t)
- *      rwlock must be initialized.
- *  Returns:
- *      0 on success. Nonzero on failure.
- *      Always returns 0.
- *      See man page for pthread_rwlock_destroy
- *****************************************************************************/
-#if UPNP_USE_RWLOCK
-	#define ithread_rwlock_destroy pthread_rwlock_destroy
-#else
-	/* Read-write locks aren't available: use mutex instead. */
-	#define ithread_rwlock_destroy ithread_mutex_destroy
-#endif /* UPNP_USE_RWLOCK */
-
-
-/****************************************************************************
- * Function: ithread_cond_init
- *
- *  Description:
- *      Initializes condition variable.
- *      Must be called before use.
- *  Parameters:
- *      ithread_cond_t *cond (must be valid non NULL pointer to pthread_cond_t)
- *      const ithread_condattr_t *cond_attr (ignored)
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      See man page for pthread_cond_init
- *****************************************************************************/
-#define ithread_cond_init pthread_cond_init
-
-
-/****************************************************************************
- * Function: ithread_cond_signal
- *
- *  Description:
- *      Wakes up exactly one thread waiting on condition.
- *      Associated mutex MUST be locked by thread before entering this call.
- *  Parameters:
- *      ithread_cond_t *cond (must be valid non NULL pointer to 
- *      ithread_cond_t)
- *      cond must be initialized
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      See man page for pthread_cond_signal
- *****************************************************************************/
-#define ithread_cond_signal pthread_cond_signal
-
-
-/****************************************************************************
- * Function: ithread_cond_broadcast
- *
- *  Description:
- *      Wakes up all threads waiting on condition.
- *      Associated mutex MUST be locked by thread before entering this call.
- *  Parameters:
- *      ithread_cond_t *cond (must be valid non NULL pointer to 
- *      ithread_cond_t)
- *      cond must be initialized
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      See man page for pthread_cond_broadcast
- *****************************************************************************/
-#define ithread_cond_broadcast pthread_cond_broadcast
-  
-
-/****************************************************************************
- * Function: ithread_cond_wait
- *
- *  Description:
- *      Atomically releases mutex and waits on condition.
- *      Associated mutex MUST be locked by thread before entering this call.
- *      Mutex is reacquired when call returns.
- *  Parameters:
- *      ithread_cond_t *cond (must be valid non NULL pointer to 
- *      ithread_cond_t)
- *      cond must be initialized
- *      ithread_mutex_t *mutex (must be valid non NULL pointer to 
- *      ithread_mutex_t)
- *      Mutex must be locked.
- *  Returns:
- *      0 on success, Nonzero on failure.
- *      See man page for pthread_cond_wait
- *****************************************************************************/
-#define ithread_cond_wait pthread_cond_wait
-  
-
-  /****************************************************************************
-   * Function: pthread_cond_timedwait
-   *
-   *	Description:      
-   *		Atomically releases the associated mutex and waits on the
-   *	condition.
-   *		If the condition is not signaled in the specified time than the
-   *	call times out and returns.
-   *		Associated mutex MUST be locked by thread before entering this call.
-   *		Mutex is reacquired when call returns.
-   *  Parameters:
-   *      ithread_cond_t *cond (must be valid non NULL pointer to ithread_cond_t)
-   *      	cond must be initialized
-   *      ithread_mutex_t *mutex (must be valid non NULL pointer to ithread_mutex_t)
-   *      	Mutex must be locked.
-   *      const struct timespec *abstime (absolute time, measured from Jan 1, 1970)
-   *  Returns:
-   *      0 on success. ETIMEDOUT on timeout. Nonzero on failure.
-   *      See man page for pthread_cond_timedwait
-   ***************************************************************************/
- 
-#define ithread_cond_timedwait pthread_cond_timedwait
-  
-
-  /****************************************************************************
-   * Function: ithread_cond_destroy
-   *
-   *  Description:
-   *      Releases any resources held by the condition variable. 
-   *		Condition variable can no longer be used after this call.	
-   *  Parameters:
-   *      ithread_cond_t *cond (must be valid non NULL pointer to 
-   *      ithread_cond_t)
-   *      cond must be initialized.
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *      See man page for pthread_cond_destroy
-   ***************************************************************************/
-#define ithread_cond_destroy pthread_cond_destroy
-
-  /****************************************************************************
-   * Function: ithread_attr_init
-   *
-   *  Description:
-   *      Initialises thread attribute object.
-   *  Parameters:
-   *      ithread_attr_t *attr (must be valid non NULL pointer to
-   *      ithread_attr_t)
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *      See man page for pthread_attr_init
-   ***************************************************************************/
-#define ithread_attr_init pthread_attr_init
-
-  /****************************************************************************
-   * Function: ithread_attr_destroy
-   *
-   *  Description:
-   *      Destroys thread attribute object.
-   *  Parameters:
-   *      ithread_attr_t *attr (must be valid non NULL pointer to
-   *      ithread_attr_t)
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *      See man page for pthread_attr_destroy
-   ***************************************************************************/
-#define ithread_attr_destroy pthread_attr_destroy
-
-  /****************************************************************************
-   * Function: ithread_attr_setstacksize
-   *
-   *  Description:
-   *      Sets stack size of a thread attribute object.
-   *  Parameters:
-   *      ithread_attr_t *attr (must be valid non NULL pointer to
-   *      ithread_attr_t)
-   *      size_t stacksize (value of stacksize must be greater than
-   *      ITHREAD_STACK_MIN and lower than system-imposed limits
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *      See man page for pthread_attr_setstacksize
-   ***************************************************************************/
-#define ithread_attr_setstacksize pthread_attr_setstacksize
-
-  /****************************************************************************
-   * Function: ithread_attr_setdetachstate
-   *
-   *  Description:
-   *      Sets detach state of a thread attribute object.
-   *  Parameters:
-   *      ithread_attr_t *attr (must be valid non NULL pointer to
-   *      ithread_attr_t)
-   *      int detachstate (value of detachstate must be ITHREAD_CREATE_DETACHED
-   *      or ITHREAD_CREATE_JOINABLE)
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *      See man page for pthread_attr_setdetachstate
-   ***************************************************************************/
-#define ithread_attr_setdetachstate pthread_attr_setdetachstate
-
-  /****************************************************************************
-   * Function: ithread_create
-   *
-   *  Description:
-   *		Creates a thread with the given start routine
-   *      and argument.
-   *  Parameters:
-   *      ithread_t * thread (must be valid non NULL pointer to pthread_t)
-   *      ithread_attr_t *attr
-   *      void * (start_routine) (void *arg) (start routine)
-   *      void * arg - argument.
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *	    Returns EAGAIN if a new thread can not be created.
-   *      Returns EINVAL if there is a problem with the arguments.
-   *      See man page fore pthread_create
-   ***************************************************************************/
-#define ithread_create pthread_create
-
-
-  /****************************************************************************
-   * Function: ithread_cancel
-   *
-   *  Description:
-   *		Cancels a thread.
-   *  Parameters:
-   *      ithread_t * thread (must be valid non NULL pointer to ithread_t)
-   *  Returns:
-   *      0 on success. Nonzero on failure.
-   *      See man page for pthread_cancel
-   ***************************************************************************/
-#define ithread_cancel pthread_cancel
-  
-
-  /****************************************************************************
-   * Function: ithread_exit
-   *
-   *  Description:
-   *		Returns a return code from a thread.
-   *      Implicitly called when the start routine returns.
-   *  Parameters:
-   *      void  * return_code return code to return
-   *      See man page for pthread_exit
-   ***************************************************************************/
-#define ithread_exit pthread_exit
-
-
-/****************************************************************************
-   * Function: ithread_get_current_thread_id
-   *
-   *  Description:
-   *		Returns the handle of the currently running thread.
-   *  Returns:
-   *		The handle of the currently running thread.
-   *              See man page for pthread_self
-   ***************************************************************************/
-#define ithread_get_current_thread_id pthread_self
-
-
-  /****************************************************************************
-   * Function: ithread_self
-   *
-   *  Description:
-   *		Returns the handle of the currently running thread.
-   *  Returns:
-   *		The handle of the currently running thread.
-   *              See man page for pthread_self
-   ***************************************************************************/
-#define ithread_self pthread_self
-
-
-  /****************************************************************************
-   * Function: ithread_detach
-   *
-   *  Description:
-   *		Makes a thread's resources reclaimed immediately 
-   *            after it finishes
-   *            execution.  
-   *  Returns:
-   *		0 on success, Nonzero on failure.
-   *      See man page for pthread_detach
-   ***************************************************************************/
-#define ithread_detach pthread_detach  
-
-
-  /****************************************************************************
-   * Function: ithread_join
-   *
-   *  Description:
-   *		Suspends the currently running thread until the 
-   * specified thread
-   *      has finished. 
-   *      Returns the return code of the thread, or ITHREAD_CANCELED 
-   *      if the thread has been canceled.
-   *  Parameters:
-   *      ithread_t *thread (valid non null thread identifier)
-   *      void ** return (space for return code) 
-   *  Returns:
-   *		0 on success, Nonzero on failure.
-   *     See man page for pthread_join
-   ***************************************************************************/
-#define ithread_join pthread_join
-  
-
-/****************************************************************************
- * Function: isleep
- *
- *  Description:
- *		Suspends the currently running thread for the specified number 
- *      of seconds
- *      Always returns 0.
- *  Parameters:
- *      unsigned int seconds - number of seconds to sleep.
- *  Returns:
- *		0 on success, Nonzero on failure.
- *              See man page for sleep (man 3 sleep)
- *****************************************************************************/
-#ifdef WIN32
-	#define isleep(x) Sleep((x)*1000)
-#else
-	#define isleep sleep
-#endif
-
-
-/****************************************************************************
- * Function: isleep
- *
- *  Description:
- *		Suspends the currently running thread for the specified number 
- *      of milliseconds
- *      Always returns 0.
- *  Parameters:
- *      unsigned int milliseconds - number of milliseconds to sleep.
- *  Returns:
- *		0 on success, Nonzero on failure.
- *              See man page for sleep (man 3 sleep)
- *****************************************************************************/
-#ifdef WIN32
-	#define imillisleep Sleep
-#else
-	#define imillisleep(x) usleep(1000*x)
-#endif
-
-
-#if !defined(PTHREAD_MUTEX_RECURSIVE) && !defined(__DragonFly__) && !defined(UPNP_USE_MSVCPP)
-/* !defined(UPNP_USE_MSVCPP) should probably also have pthreads version check - but it's not clear if that is possible */
-/* NK: Added for satisfying the gcc compiler */
-EXPORT_SPEC int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* ITHREAD_H */
-

File diff suppressed because it is too large
+ 0 - 1835
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixml.h


+ 0 - 72
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixmldebug.h

@@ -1,72 +0,0 @@
-
-
-#ifndef IXMLDEBUG_H
-#define IXMLDEBUG_H
-
-
-#include "UpnpGlobal.h"
-#include "ixml.h"
-
-
-/*!
- * \file
- *
- * \brief Auxiliar routines to aid debugging.
- */
-
-
-/*!
- * \brief Prints the debug statement either on the standard output or log file
- * along with the information from where this debug statement is coming.
- */ 
-#ifdef DEBUG
-void IxmlPrintf(
-	/*! [in] The file name, usually __FILE__. */
-	const char *DbgFileName,
-	/*! [in] The line number, usually __LINE__ or a variable that got the
-	 * __LINE__ at the appropriate place. */
-	int DbgLineNo,
-	/*! [in] The function name. */
-	const char *FunctionName,
-	/*! [in] Printf like format specification. */
-	const char* FmtStr,
-	/*! [in] Printf like Variable number of arguments that will go in the debug
-	 * statement. */
-	...)
-#if (__GNUC__ >= 3)
-	/* This enables printf like format checking by the compiler */
-	__attribute__((format (__printf__, 4, 5)))
-#endif
-;
-#else /* DEBUG */
-static UPNP_INLINE void IxmlPrintf(
-	const char *FmtStr,
-	...)
-{
-	FmtStr = FmtStr;
-}
-#endif /* DEBUG */
-
-
-/*!
- * \brief Print the node names and values of a XML tree.
- */
-#ifdef DEBUG
-void printNodes(
-	/*! [in] The root of the tree to print. */
-	IXML_Node *tmpRoot,
-	/*! [in] The depth to print. */
-	int depth);
-#else
-static UPNP_INLINE void printNodes(
-	IXML_Node *tmpRoot,
-	int depth)
-{
-	tmpRoot = tmpRoot;
-	depth = depth;
-}
-#endif
-
-
-#endif /* IXMLDEBUG_H */
-

+ 0 - 174
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixmlmembuf.h

@@ -1,174 +0,0 @@
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-
-#ifndef IXML_MEMBUF_H
-#define IXML_MEMBUF_H
-
-
-/*!
- * \file
- */
-
-
-#include "ixml.h"
-
-
-#include <stdlib.h> /* for size_t */
-
-
-#define MINVAL(a, b) ( (a) < (b) ? (a) : (b) )
-#define MAXVAL(a, b) ( (a) > (b) ? (a) : (b) )
-
-
-#define MEMBUF_DEF_SIZE_INC 20u
-
-
-/*!
- * \brief The ixml_membuf type.
- */
-typedef struct
-{
-	char *buf;	
-	size_t length;
-	size_t capacity;
-	size_t size_inc;
-} ixml_membuf;
-
-
-/*!
- * \brief ixml_membuf initialization routine.
- */
-void ixml_membuf_init(
-	/*! [in,out] The memory buffer to initializa. */
-	ixml_membuf *m);
-
-
-/*!
- * \brief ixml_membuf clearing routine.
- *
- * The internal buffer is deleted and ixml_membuf_init() is called in the end
- * to reinitialize the buffer.
- */
-void ixml_membuf_destroy(
-	/*! [in,out] The memory buffer to clear. */
-	ixml_membuf *m);
-
-
-/*!
- * \brief Copies the contents o a buffer to the designated ixml_membuf.
- *
- * The previous contents of the ixml_membuf are destroyed.
- *
- * \return IXML_SUCCESS if successfull, or the error code returned
- * by ixml_membuf_set_size().
- *
- * \sa ixml_membuf_assign_str().
- */
-int ixml_membuf_assign(
-	/*! [in,out] The memory buffer on which to operate. */
-	ixml_membuf *m,
-	/*! [in] The input buffer to copy from. */
-	const void *buf, 
-	/*! [in] The number of bytes to copy from the input buffer. */
-	size_t buf_len);
-
-/*!
- * \brief Copies a \b NULL terminated string to the ixml_buffer.
- *
- * This is a convenience function that internally uses ixml_membuf_assign().
- *
- * \return The return value of ixml_membuf_assign().
- *
- * \sa ixml_membuf_assign().
- */
-int ixml_membuf_assign_str(
-	/*! [in,out] The memory buffer on which to operate. */
-	ixml_membuf *m,
-	/*! [in] The input string to copy from. */
-	const char *c_str);
-
-/*!
- * \brief Appends one byte to the designated ixml_membuffer.
- *
- * This is a convenience function that internally uses ixml_membuf_insert().
- *
- * \return The return value of ixml_membuf_insert().
- *
- * \sa ixml_membuf_insert()
- */
-int ixml_membuf_append(
-	/*! [in,out] The memory buffer on which to operate. */
-	ixml_membuf *m,
-	/*! [in] The pointer to the byte to append. */
-	const void *buf);
-
-/*!
- * \brief Appends the contents of a \b NULL terminated string to the designated
- * ixml_membuf.
- *
- * This is a convenience function that internally uses ixml_membuf_insert().
- *
- * \return The return value of ixml_membuf_insert().
- *
- * \sa ixml_membuf_insert().
- */
-int ixml_membuf_append_str(
-	/*! [in,out] The memory buffer on which to operate. */
-	ixml_membuf *m,
-	/*! [in] The input string to copy from. */
-	const char *c_str);
-
-/*!
- * \brief 
- *
- * \return
- * 	\li 0 if successfull.
- * 	\li IXML_INDEX_SIZE_ERR if the index parameter is out of range.
- * 	\li Or the return code of ixml_membuf_set_size()
- *
- * \sa ixml_membuf_set_size()
- */
-int ixml_membuf_insert(
-	/*! [in,out] The memory buffer on which to operate. */
-	ixml_membuf *m,
-	/*! [in] The pointer to the input buffer. */
-	const void *buf, 
-	/*! [in] The buffer length. */
-	size_t buf_len,
-	/*! [in] The point of insertion relative to the beggining of the
-	 * ixml_membuf internal buffer. */
-	size_t index);
-
-
-#endif /* IXML_MEMBUF_H */
-

+ 0 - 269
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ixmlparser.h

@@ -1,269 +0,0 @@
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-
-#ifndef IXMLPARSER_H
-#define IXMLPARSER_H
-
-
-/*!
- * \file
- */
-
-
-#include "ixml.h"
-#include "ixmlmembuf.h"
-
-
-/* Parser definitions */
-#define QUOT        "&quot;"
-#define LT          "&lt;"
-#define GT          "&gt;"
-#define APOS        "&apos;"
-#define AMP         "&amp;"
-#define ESC_HEX     "&#x"
-#define ESC_DEC     "&#"
-
-
-typedef struct _IXML_NamespaceURI 
-{
-	char *nsURI;
-	char *prefix;
-	struct _IXML_NamespaceURI *nextNsURI;
-} IXML_NamespaceURI;
-
-
-typedef struct _IXML_ElementStack
-{
-	char *element;
-	char *prefix;
-	char *namespaceUri;
-	IXML_NamespaceURI *pNsURI;
-	struct _IXML_ElementStack *nextElement;
-} IXML_ElementStack;
-
-
-typedef enum
-{
-	eELEMENT,
-	eATTRIBUTE,
-	eCONTENT,
-} PARSER_STATE;
-
-
-typedef struct _Parser
-{
-	/*! Data buffer. */
-	char *dataBuffer;
-	/*! Pointer to the token parsed. */
-	char *curPtr;
-	/*! Saves for backup. */
-	char *savePtr;
-	ixml_membuf lastElem;
-	ixml_membuf tokenBuf;    
-	IXML_Node *pNeedPrefixNode;
-	IXML_ElementStack *pCurElement;
-	IXML_Node *currentNodePtr;
-	PARSER_STATE state;
-	BOOL bHasTopLevel;
-} Parser;
-
-
-/*!
- * \brief Check to see whether name is a valid xml name.
- */
-BOOL Parser_isValidXmlName(
-	/*! [in] The string to be checked. */
-	const DOMString name);
-
-
-/*!
- * \brief Sets the error character.
- *
- * If 'c' is 0 (default), the parser is strict about XML encoding:
- * invalid UTF-8 sequences or "&" entities are rejected, and the parsing 
- * aborts.
- *
- * If 'c' is not 0, the parser is relaxed: invalid UTF-8 characters
- * are replaced by this character, and invalid "&" entities are left
- * untranslated. The parsing is then allowed to continue.
- */
-void Parser_setErrorChar(
-	/*! [in] The character to become the error character. */
-	char c);
-
-
-/*!
- * \brief Fees a node contents.
- */
-void Parser_freeNodeContent(
-	/*! [in] The Node to process. */
-	IXML_Node *IXML_Nodeptr);
-
-int Parser_LoadDocument(IXML_Document **retDoc, const char * xmlFile, BOOL file);
-
-int Parser_setNodePrefixAndLocalName(IXML_Node *newIXML_NodeIXML_Attr);
-
-
-void ixmlAttr_init(IXML_Attr *attrNode);
-
-/*!
- * \brief Set the given element's tagName.
- *
- * \return One of the following:
- * 	\li \b IXML_SUCCESS, if successfull.
- * 	\li \b IXML_FAILED, if element of tagname is \b NULL.
- * 	\li \b IXML_INSUFFICIENT_MEMORY, if there is no memory to allocate the
- * 		buffer for the element's tagname.
- */
-int ixmlElement_setTagName(
-	/*! [in] The element to change the tagname. */
-	IXML_Element *element,
-	/*! [in] The new tagName for the element. */
-	const char *tagName);
-
-
-/*!
- * \brief Initializes a NamedNodeMap object.
- */
-void ixmlNamedNodeMap_init(
-	/*! [in] The named node map to process. */
-	IXML_NamedNodeMap *nnMap);
-
-
-/*!
- * \brief Add a node to a NamedNodeMap.
- *
- * \return IXML_SUCCESS or failure.
- */
-int ixmlNamedNodeMap_addToNamedNodeMap(
-	/* [in] The named node map. */
-	IXML_NamedNodeMap **nnMap,
-	/* [in] The node to add. */
-	IXML_Node *add);
-
-/*!
- * \brief Add a node to nodelist.
- */
-int ixmlNodeList_addToNodeList(
-	/*! [in] The pointer to the nodelist. */
-	IXML_NodeList **nList,
-	/*! [in] The node to add. */
-	IXML_Node *add);
-
-
-/*!
- * \brief Intializes a node.
- */
-void ixmlNode_init(
-	/*! [in] The \b Node to iniatialize. */
-	IN IXML_Node *nodeptr);
-
-
-/*!
- * \brief Compare two nodes to see whether they are the same node.
- * Parent, sibling and children node are ignored.
- *
- * \return
- * 	\li TRUE, the two nodes are the same.
- * 	\li FALSE, the two nodes are not the same.
- */
-BOOL ixmlNode_compare(
-	/*! [in] The first \b Node. */
-	IXML_Node *srcNode,
-	/*! [in] The second \b Node. */
- 	IXML_Node *destNode);
-
-
-/*!
- * \brief Returns a nodeList of all descendant Elements with a given tagName,
- * in the order in which they are encountered in a traversal of this element
- * tree.
- */
-void ixmlNode_getElementsByTagName(
-	/*! [in] The \b Node tree. */
-	IXML_Node *n,
-	/*! [in] The tag name to match. */
-	const char *tagname,
-	/*! [out] The output \b NodeList. */
-	IXML_NodeList **list);
-
-
-/*!
- * \brief Returns a nodeList of all the descendant Elements with a given local
- * name and namespace URI in the order in which they are encountered in a
- * preorder traversal of this Elememt tree.		
- */
-void ixmlNode_getElementsByTagNameNS(
-	/*! [in] The \b Element tree. */
-	IXML_Node *n,
-	/*! [in] The name space to match. */
-	const char *namespaceURI,
-	/*! [in] The local name to match. */
-	const char *localName,
-	/*! [out] The output \b NodeList. */
-	IXML_NodeList **list);
-
-
-/*!
- * \brief 
- *
- * \return 
- */
-int ixmlNode_setNodeName(
-	/*! [in] The \b Node. */
-	IXML_Node *node,
-	/*! [in] . */
-	const DOMString qualifiedName);
-
-
-/*!
- * \brief 
- *
- * \return 
- */
-int ixmlNode_setNodeProperties(
-	/*! [in] . */
-	IXML_Node *destNode,
-	/*! [in] . */
-	IXML_Node *src);
-
-
-/*!
- * \brief Initializes a nodelist 
- */
-void ixmlNodeList_init(
-	/*! [in,out] The \b NodeList to initialize. */
-	IXML_NodeList *nList);
-
-
-#endif  /* IXMLPARSER_H */
-

+ 0 - 35
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/md5.h

@@ -1,35 +0,0 @@
-/*	$OpenBSD: md5.h,v 1.3 2014/11/16 17:39:09 tedu Exp $	*/
-
-/*
- * This code implements the MD5 message-digest algorithm.
- * The algorithm is due to Ron Rivest.  This code was
- * written by Colin Plumb in 1993, no copyright is claimed.
- * This code is in the public domain; do with it what you wish.
- *
- * Equivalent code is available from RSA Data Security, Inc.
- * This code has been tested against that, and is equivalent,
- * except that you don't need to include two pages of legalese
- * with every copy.
- */
-
-#ifndef _MD5_H_
-#define _MD5_H_
-
-#include <stddef.h>
-#include "UpnpStdInt.h"
-
-#define	MD5_BLOCK_LENGTH		64
-#define	MD5_DIGEST_LENGTH		16
-
-typedef struct MD5Context {
-	uint32_t state[4];			/* state */
-	uint64_t count;				/* number of bits, mod 2^64 */
-	uint8_t buffer[MD5_BLOCK_LENGTH];	/* input buffer */
-} MD5_CTX;
-
-void	 MD5Init(MD5_CTX *);
-void	 MD5Update(MD5_CTX *, const void *, size_t);
-void	 MD5Final(uint8_t [MD5_DIGEST_LENGTH], MD5_CTX *);
-void	 MD5Transform(uint32_t [4], const uint8_t [MD5_BLOCK_LENGTH]);
-
-#endif /* _MD5_H_ */

+ 0 - 265
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/membuffer.h

@@ -1,265 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_UTIL_MEMBUFFER_H
-#define GENLIB_UTIL_MEMBUFFER_H
-
-/*!
- * \file
- */
-
-#include <stdlib.h>
-#include "upnputil.h"
-
-#define MINVAL( a, b ) ( (a) < (b) ? (a) : (b) )
-#define MAXVAL( a, b ) ( (a) > (b) ? (a) : (b) )
-
-/*! pointer to a chunk of memory. */
-typedef struct {
-	/*! start of memory (read/write). */
-	char *buf;
-	/*! length of memory (read-only). */
-	size_t length;
-} memptr;
-
-/*! Maintains a block of dynamically allocated memory
- * note: Total length/capacity should not exceed MAX_INT */
-typedef struct {
-	/*! mem buffer; must not write beyond buf[length-1] (read/write). */
-	char *buf;
-	/*! length of buffer (read-only). */
-	size_t length;
-	/*! total allocated memory (read-only). */
-	size_t capacity;
-	/*! used to increase size; MUST be > 0; (read/write). */
-	size_t size_inc;
-	/*! default value of size_inc. */
-#define MEMBUF_DEF_SIZE_INC (size_t)5
-} membuffer;
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-/*!
- * \brief Allocate memory and copy information from the input string to the
- * newly allocated memory.
- *
- * \return Pointer to the newly allocated memory. 
- * NULL if memory cannot be allocated.
- */
-char *str_alloc(
-	/*! [in] Input string object. */
-	const char *str,
-	/*! [in] Input string length. */
-	size_t str_len);
-
-/*!
- * \brief Compares characters of strings passed for number of bytes.
- * If equal for the number of bytes, the length of the bytes determines
- * which buffer is shorter.
- *
- * \return
- * \li <  0 string1 substring less than string2 substring
- * \li == 0 string1 substring identical to string2 substring
- * \li >  0 string1 substring greater than string2 substring 
- */
-int memptr_cmp(
-	/*! [in] Input memory object. */
-	memptr *m,
-	/*! [in] Constatnt string for the memory object to be compared with. */
-	const char *s);
-
-/*!
- * \brief Compares characters of 2 strings irrespective of the case for a
- * specific count of bytes.
- *
- * If the character comparison is the same the length of the 2 srings
- * determines the shorter of the 2 strings.
- *
- * \return
- * \li <  0 string1 substring less than string2 substring
- * \li == 0 string1 substring identical to string2 substring
- * \li >  0 string1 substring greater than string2 substring 
- */
-int memptr_cmp_nocase(
-	/*! [in] Input memory object. */
-	memptr *m,
-	/*! [in] Constatnt string for the memory object to be compared with. */
-	const char *s);
-
-/*!
- * \brief Increases or decreases buffer cap so that at least 'new_length'
- * bytes can be stored.
- *
- * \return
- * \li UPNP_E_SUCCESS - On Success
- * \li UPNP_E_OUTOF_MEMORY - On failure to allocate memory.
- */
-int membuffer_set_size(
-	/*! [in,out] buffer whose size is to be modified. */
-	membuffer *m,
-	/*! [in] new size to which the buffer will be modified. */
-	size_t new_length);
-
-/*!
- * \brief Wrapper to membuffer_initialize().
- *
- * Set the size of the buffer to MEMBUF_DEF_SIZE_INC and Initializes
- * m->buf to NULL, length = 0.
- */
-void membuffer_init(
-	/*! [in,out] Buffer to be initialized. */
-	membuffer *m);
-
-/*!
- * \brief Free's memory allocated for membuffer* m.
- */
-void membuffer_destroy(
-	/*! [in,out] Buffer to be destroyed. */
-	membuffer *m);
-
-/*!
- * \brief Allocate memory to membuffer *m and copy the contents of the in
- * parameter const void *buf.
- *
- * \return
- * \li UPNP_E_SUCCESS
- * \li UPNP_E_OUTOF_MEMORY
- */
-int membuffer_assign(
-	/*! [in,out] Buffer whose memory is to be allocated and assigned. */
-	membuffer *m,
-	/*! [in] Source buffer whose contents will be copied. */
-	const void *buf,
-	/*! [in] Length of the source buffer. */
-	size_t buf_len);
-
-/*!
- * \brief Wrapper function for membuffer_assign().
- *
- * \return
- * \li UPNP_E_SUCCESS
- * \li UPNP_E_OUTOF_MEMORY
- */
-int membuffer_assign_str(
-	/*! [in,out] Buffer to be allocated and assigned. */
-	membuffer *m,
-	/*! [in] Source buffer whose contents will be copied. */
-	const char *c_str);
-
-/*!
- * \brief Invokes function to appends data from a constant buffer to the buffer.
- *
- * \return int.
- */
-int membuffer_append(
-	/*! [in,out] Buffer whose memory is to be appended. */
-	membuffer *m,
-	/*! [in] Source buffer whose contents will be copied. */
-	const void *buf,
-	/*! [in] Length of the source buffer. */
-	size_t buf_len);
-
-/*!
- * \brief Invokes function to appends data from a constant string to the buffer.
- *
- * \return int.
- */
-int membuffer_append_str(
-	/*! [in,out] Buffer whose memory is to be appended. */
-	membuffer *m,
-	/*! [in] Source buffer whose contents will be copied. */
-	const char *c_str);
-
-/*!
- * \brief Allocates memory for the new data to be inserted. Does
- * memory management by moving the data from the existing memory to
- * the newly allocated memory and then appending the new data.
- *
- * \return 0 if successful, error code if error.
- */
-int membuffer_insert(
-	/*! [in,out] Buffer whose memory size is to be increased and appended. */
-	membuffer * m,
-	/*! [in] source buffer whose contents will be copied. */
-	const void *buf,
-	/*! [in] size of the source buffer. */
-	size_t buf_len,
-	/*! [in] index to determine the bounds while movinf the data. */
-	size_t index);
-
-/*!
- * \brief Shrink the size of the buffer depending on the current size of the
- * bufer and te input parameters. Move contents from the old buffer to the
- * new sized buffer.
- */
-void membuffer_delete(
-	/*! [in,out] Buffer whose memory size is to be decreased and copied
-	 * to the modified location. */
-	membuffer * m,
-	/*! [in] Index to determine bounds while moving data. */
-	size_t index,
-	/*! [in] Number of bytes that the data needs to shrink by. */
-	size_t num_bytes);
-
-/*
- * \brief Detaches current buffer and returns it. The caller must free the
- * returned buffer using free(). After this call, length becomes 0.
- *
- * \return A pointer to the current buffer.
- */
-char *membuffer_detach(
-	/*! [in,out] Buffer to be returned and updated. */
-	membuffer *m);
-
-/*
- * \brief Free existing memory in membuffer and assign the new buffer in its
- * place.
- *
- * \note 'new_buf' must be allocted using malloc or realloc so that it can be
- * freed using free().
- */
-void membuffer_attach(
-	/*! [in,out] Buffer to be updated. */
-	membuffer *m,
-	/*! [in] Source buffer which will be assigned to the buffer to be
-	 * updated. */
-	char *new_buf,
-	/*! [in] Length of the source buffer. */
-	size_t buf_len);
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif /* __cplusplus */
-
-#endif /* GENLIB_UTIL_MEMBUFFER_H */

+ 0 - 145
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/miniserver.h

@@ -1,145 +0,0 @@
-#ifndef MINISERVER_H
-#define MINISERVER_H
-
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-/*!
- * \file
- */
-
-#include "sock.h"
-#include "httpparser.h"
-#include "UpnpStdInt.h"
-
-extern SOCKET gMiniServerStopSock;
-
-typedef struct MServerSockArray {
-	/*! IPv4 socket for listening for miniserver requests. */
-	SOCKET miniServerSock4;
-	/*! IPv6 Socket for listening for miniserver requests. */
-	SOCKET miniServerSock6;
-	/*! Socket for stopping miniserver */
-	SOCKET miniServerStopSock;
-	/*! IPv4 SSDP Socket for incoming advertisments and search requests. */
-	SOCKET ssdpSock4;
-	/*! IPv6 SSDP Socket for incoming advertisments and search requests. */
-	SOCKET ssdpSock6;
-	/*! IPv6 SSDP Socket for incoming advertisments and search requests. */
-	SOCKET ssdpSock6UlaGua;
-	/* ! . */
-	uint16_t stopPort;
-	/* ! . */
-	uint16_t miniServerPort4;
-	/* ! . */
-	uint16_t miniServerPort6;
-#ifdef INCLUDE_CLIENT_APIS
-	/*! IPv4 SSDP socket for sending search requests and receiving search
-	 * replies */
-	SOCKET ssdpReqSock4;
-	/*! IPv6 SSDP socket for sending search requests and receiving search
-	 * replies */
-	SOCKET ssdpReqSock6;
-#endif /* INCLUDE_CLIENT_APIS */
-} MiniServerSockArray;
-
-/*! . */
-typedef void (*MiniServerCallback) (
-	/* ! . */
-	IN http_parser_t * parser,
-	/* ! . */
-	IN http_message_t * request,
-	/* ! . */
-	IN SOCKINFO * info);
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*!
- * \brief Set HTTP Get Callback.
- */
-void SetHTTPGetCallback(
-	/*! [in] HTTP Callback to be invoked . */
-	MiniServerCallback callback);
-
-/*!
- * \brief Set SOAP Callback.
- */
-#ifdef INCLUDE_DEVICE_APIS
-void SetSoapCallback(
-	/*! [in] SOAP Callback to be invoked . */
-	MiniServerCallback callback);
-#else /* INCLUDE_DEVICE_APIS */
-	static UPNP_INLINE void SetSoapCallback(MiniServerCallback callback) {}
-#endif /* INCLUDE_DEVICE_APIS */
-/*!
- * \brief Set GENA Callback.
- */
-void SetGenaCallback(
-	/*! [in] GENA Callback to be invoked. */
-	MiniServerCallback callback);
-
-/*!
- * \brief Initialize the sockets functionality for the Miniserver.
- *
- * Initialize a thread pool job to run the MiniServer and the job to the
- * thread pool.
- *
- * If listen port is 0, port is dynamically picked.
- *
- * Use timer mechanism to start the MiniServer, failure to meet the 
- * allowed delay aborts the attempt to launch the MiniServer.
- *
- * \return
- *	\li On success: UPNP_E_SUCCESS.
- *	\li On error: UPNP_E_XXX.
- */
-int StartMiniServer(
-	/*! [in,out] Port on which the server listens for incoming IPv4
-	 * connections. */
-	uint16_t *listen_port4,
-	/*! [in,out] Port on which the server listens for incoming IPv6
-	 * connections. */
-	uint16_t *listen_port6);
-
-/*!
- * \brief Stop and Shutdown the MiniServer and free socket resources.
- *
- * \return Always returns 0.
- */
-int StopMiniServer();
-
-#ifdef __cplusplus
-} /* extern C */
-#endif
-
-#endif /* MINISERVER_H */

+ 0 - 33
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/netall.h

@@ -1,33 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-//
-// Copyright (c) 2000-2003 Intel Corporation 
-// All rights reserved. 
-//
-// Redistribution and use in source and binary forms, with or without 
-// modification, are permitted provided that the following conditions are met: 
-//
-// * Redistributions of source code must retain the above copyright notice, 
-// this list of conditions and the following disclaimer. 
-// * Redistributions in binary form must reproduce the above copyright notice, 
-// this list of conditions and the following disclaimer in the documentation 
-// and/or other materials provided with the distribution. 
-// * Neither name of Intel Corporation nor the names of its contributors 
-// may be used to endorse or promote products derived from this software 
-// without specific prior written permission.
-// 
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
-// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-///////////////////////////////////////////////////////////////////////////
-
-#include <genlib/net/netexception.h>
-#include <genlib/net/netreader.h>

+ 0 - 61
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/parsetools.h

@@ -1,61 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_NET_HTTP_PARSETOOLS_H
-#define GENLIB_NET_HTTP_PARSETOOLS_H
-
-/*!
- * \file
- */
-
-#include "upnputil.h"
-#include "httpparser.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*!
- * \brief Find the header from the HTTP message and match the header for
- * xml data.
- *
- * \return boolean.
- */
-int has_xml_content_type(
-	/*! HTTP Message object. */
-	IN http_message_t *hmsg);
-
-#ifdef __cplusplus
-} /* extern C */
-#endif
-
-#endif /* GENLIB_NET_HTTP_PARSETOOLS_H */
-

+ 0 - 69
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/server.h

@@ -1,69 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-//
-// Copyright (c) 2000-2003 Intel Corporation 
-// All rights reserved. 
-//
-// Redistribution and use in source and binary forms, with or without 
-// modification, are permitted provided that the following conditions are met: 
-//
-// * Redistributions of source code must retain the above copyright notice, 
-// this list of conditions and the following disclaimer. 
-// * Redistributions in binary form must reproduce the above copyright notice, 
-// this list of conditions and the following disclaimer in the documentation 
-// and/or other materials provided with the distribution. 
-// * Neither name of Intel Corporation nor the names of its contributors 
-// may be used to endorse or promote products derived from this software 
-// without specific prior written permission.
-// 
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
-// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef GENLIB_NET_HTTP_SERVER_H
-#define GENLIB_NET_HTTP_SERVER_H
-
-#ifdef __cplusplus
-
-#include <genlib/net/http/parseutil.h>
-
-int http_ServerCallback( IN HttpMessage& request, IN int sockfd );
-
-// adds 'entity' to the alias list; the entity is referred using
-//
-// aliasRelURL: relative url for given entity
-// entity: entity to be served
-// actualAlias: [possibly] modified version of aliasResURL to resolve conflicts
-// returns:
-//   0 : success
-//   HTTP_E_OUT_OF_MEMORY
-int http_AddAlias( IN const char* aliasRelURL, IN HttpEntity* entity,
-    OUT xstring& actualAlias );
-
-extern "C" {
-#endif /* __cplusplus */
-
-void http_OldServerCallback( IN const char* msg, int sockfd );
-
-void http_SetRootDir( const char* httpRootDir );
-
-// removes a previously added entity
-// returns:
-//  0: success -- alias removed
-// -1: alias not found
-int http_RemoveAlias( IN const char* alias );
-
-#ifdef __cplusplus
-}   /* extern C */
-#endif
-
-#endif /* GENLIB_NET_HTTP_SERVER_H */

+ 0 - 377
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/service_table.h

@@ -1,377 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef SERVICE_TABLE_H
-#define SERVICE_TABLE_H
-
-/*!
- * \file
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "config.h"
-#include "uri.h"
-#include "ixml.h"
-#include "upnp.h"
-#include "upnpdebug.h"
-
-#include <stdio.h>
-#include <time.h>
-
-#define SID_SIZE  (size_t)41
-
-#ifdef INCLUDE_DEVICE_APIS
-
-typedef struct SUBSCRIPTION {
-	Upnp_SID sid;
-	int ToSendEventKey;
-	time_t expireTime;
-	int active;
-	URL_list DeliveryURLs;
-	/* List of queued events for this subscription. Only one event job
-	   at a time goes into the thread pool. The first element in the
-	   list is a copy of the active job. Others are activated on job
-	   completion. */
-	LinkedList outgoing;
-	struct SUBSCRIPTION *next;
-} subscription;
-
-extern void freeSubscriptionQueuedEvents(subscription *sub);
-
-typedef struct SERVICE_INFO {
-	DOMString	serviceType;
-	DOMString	serviceId;
-	char		*SCPDURL ;
-	char		*controlURL;
-	char		*eventURL;
-	DOMString	UDN;
-	int		active;
-	int		TotalSubscriptions;
-	subscription	*subscriptionList;
-	struct SERVICE_INFO	 *next;
-} service_info;
-
-typedef struct SERVICE_TABLE {
-	DOMString URLBase;
-	service_info *serviceList;
-	service_info *endServiceList;
-} service_table;
-
-/* Functions for Subscriptions */
-
-/*!
- * \brief Makes a copy of the subscription.
- *
- * \return HTTP_SUCCESS on success.
- */
-int copy_subscription(
-	/*! [in] Source subscription. */
-	subscription *in,
-	/*! [in] Destination subscription. */
-	subscription *out);
-
-/*
- * \brief Remove the subscription represented by the const Upnp_SID sid parameter
- * from the service table and update the service table.
- */
-void RemoveSubscriptionSID(
-	/*! [in] Subscription ID. */
-	Upnp_SID sid,
-	/*! [in] Service object providing the list of subscriptions. */
-	service_info *service);
-
-/*!
- * \brief Return the subscription from the service table that matches
- * const Upnp_SID sid value.
- *
- * \return Pointer to the matching subscription node.
- */
-subscription *GetSubscriptionSID(
-	/*! [in] Subscription ID. */
-	const Upnp_SID sid,
-	/*! [in] Service object providing the list of subscriptions. */
-	service_info *service); 
-
-/*!
- * \brief Gets pointer to the first subscription node in the service table.
- *
- * \return Pointer to the first subscription node.
- */
-subscription *GetFirstSubscription(
-	/*! [in] Service object providing the list of subscriptions. */
-	service_info *service);
-
-/*!
- * \brief Get current and valid subscription from the service table.
- *
- * \return Pointer to the next subscription node.
- */
-subscription *GetNextSubscription(
-	/*! [in] Service object providing the list of subscriptions. */
-	service_info *service,
-	/*! [in] Current subscription object. */
-	subscription *current);
-
-/*!
- * \brief Free's the memory allocated for storing the URL of the subscription.
- */
-void freeSubscription(
-	/*! [in] Subscription object to be freed. */
-	subscription *sub);
-
-/*!
- * \brief Free's memory allocated for all the subscriptions in the service table.
- */
-void freeSubscriptionList(
-	/*! [in] Head of the subscription list. */
-	subscription * head);
-
-/*!
- * \brief Traverses through the service table and returns a pointer to the
- * service node that matches a known service id and a known UDN.
- *
- * \return Pointer to the matching service_info node.
- */
-service_info *FindServiceId(
-	/*! [in] Service table. */
-	service_table *table, 
-	/*! [in] String representing the service id to be found among those
-	 * in the table. */
-	const char *serviceId,
-	/*! [in] String representing the UDN to be found among those in the
-	 * table. */
-	const char *UDN);
-
-/*!
- * \brief Traverses the service table and finds the node whose event URL Path
- * matches a know value.
- *
- * \return Pointer to the service list node from the service table whose event
- * URL matches a known event URL.
- */
-service_info *FindServiceEventURLPath(
-	/*! [in] Service table. */
-	service_table *table,
-	/*! [in] Event URL path used to find a service from the table. */
-	char *eventURLPath);
-
-/*!
- * \brief Traverses the service table and finds the node whose control URL Path
- * matches a know value.
- *
- * \return Pointer to the service list node from the service table whose control
- * URL Path matches a known value.
- */
-service_info * FindServiceControlURLPath(
-	/*! [in] Service table. */
-	service_table *table,
-	/*! [in] Control URL path used to find a service from the table. */
-	const char *controlURLPath);
-
-/*!
- * \brief For debugging purposes prints information from the service passed
- * into the function.
- */
-#ifdef DEBUG
-void printService(
-	/*! [in] Service whose information is to be printed. */
-	service_info *service,
-	/*! [in] Debug level specified to the print function. */
-	Upnp_LogLevel level,
-	/*! [in] Debug module specified to the print function. */
-	Dbg_Module module);
-#else
-static UPNP_INLINE void printService(
-	service_info *service,
-	Upnp_LogLevel level,
-	Dbg_Module module)
-{
-	return;
-	service = service;
-	level = level;
-	module = module;
-}
-#endif
-
-/*!
- * \brief For debugging purposes prints information of each service from the
- * service table passed into the function.
- */
-#ifdef DEBUG
-void printServiceList(
-	/*! [in] Service whose information is to be printed. */
-	service_info *service,
-	/*! [in] Debug level specified to the print function. */
-	Upnp_LogLevel level,
-	/*! [in] Debug module specified to the print function. */
-	Dbg_Module module);
-#else
-static UPNP_INLINE void printServiceList(
-	service_info *service,
-	Upnp_LogLevel level,
-	Dbg_Module module)
-{
-	return;
-	service = service;
-	level = level;
-	module = module;
-}
-#endif
-
-/*!
- * \brief For debugging purposes prints the URL base of the table and information
- * of each service from the service table passed into the function.
- */
-#ifdef DEBUG
-void printServiceTable(
-	/*! [in] Service table to be printed. */
-	service_table *table,
-	/*! [in] Debug level specified to the print function. */
-	Upnp_LogLevel level,
-	/*! [in] Debug module specified to the print function. */
-	Dbg_Module module);
-#else
-static UPNP_INLINE void printServiceTable(
-	service_table *table,
-	Upnp_LogLevel level,
-	Dbg_Module module)
-{
-	return;
-	table = table;
-	level = level;
-	module = module;
-}
-#endif
-
-/*!
- * \brief Free's memory allocated for the various components of the service
- * entry in the service table.
- */
-void freeService(
-	/*! [in] Service information that is to be freed. */
-	service_info *in);
-
-/*!
- * \brief Free's memory allocated for the various components of each service
- * entry in the service table.
- */
-void freeServiceList(
-	/*! [in] Head of the service list to be freed. */
-	service_info *head);
-
-/*!
- * \brief Free's dynamic memory in table (does not free table, only memory
- * within the structure).
- */
-void freeServiceTable(
-	/*! [in] Service table whose internal memory needs to be freed. */
-	service_table *table);
-
-/*!
- * \brief This function assumes that services for a particular root device are
- * placed linearly in the service table, and in the order in which they are
- * found in the description document all services for this root device are
- * removed from the list.
- *
- * \return An integer.
- */
-int removeServiceTable(
-	/*! [in] XML node information. */
-	IXML_Node *node,
-	/*! [in] Service table from which services will be removed. */
-	service_table *in);
-
-/*!
- * \brief Add Service to the table.
- */
-int addServiceTable(
-	/*! [in] XML node information. */
-	IXML_Node *node,
-	/*! [in] Service table that will be initialized with services. */
-	service_table *in,
-	/*! [in] Default base URL on which the URL will be returned to the
-	 * service list. */
-	const char *DefaultURLBase);
-
-/*!
- * \brief Retrieve service from the table.
- *
- * \return An integer
- */
-int getServiceTable(
-	/*! [in] XML node information. */
-	IXML_Node *node,
-	/*! [in] Output parameter which will contain the service list and URL. */
-	service_table *out,
-	/*! [in] Default base URL on which the URL will be returned. */
-	const char *DefaultURLBase);
-
-/*	Misc helper functions	*/
-
-/*!
- * \brief Returns the clone of the element value.
- *
- * \note Value must be freed with DOMString_free.
- *
- * \return DOMString
- */
-DOMString getElementValue(
-	/*! [in] Input node which provides the list of child nodes. */
-	IXML_Node *node);
-
-/*!
- * \brief Traverses through a list of XML nodes to find the node with the
- * known element name.
- *
- * \return
- * 	\li 1 - On Success
- * 	\li 0 - On Failure
- */
-int getSubElement(
-	/*! [in] Sub element name to be searched for. */
-	const char *element_name,
-	/*! [in] Input node which provides the list of child nodes. */
-	IXML_Node *node, 
-	/*! [out] Ouput node to which the matched child node is returned. */
-	IXML_Node **out);
-
-#endif /* INCLUDE_DEVICE_APIS */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* SERVICE_TABLE */
-

+ 0 - 129
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/soaplib.h

@@ -1,129 +0,0 @@
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-#ifndef SOAPLIB_H
-#define SOAPLIB_H 
-
-/*!
- * \file
- */
-
-/* SOAP module API to be called in Upnp-Dk API */
-
-
-/*!
- * \brief This is a callback called by minisever after receiving the request
- * from the control point. This function will start processing the request.
- * It calls handle_invoke_action to handle the SOAP action.
- */
-void soap_device_callback(
-	/*! [in] Parsed request received by the device. */
-	http_parser_t *parser,
-	/*! [in] HTTP request. */
-	http_message_t *request,
-	/*! [in,out] Socket info. */
-	SOCKINFO *info);
-
-
-/****************************************************************************
- * Function: SoapSendAction
- *
- * Parameters:
- *	IN char* action_url: device contrl URL
- *	IN char *service_type: device service type
- *	IN IXML_Document *action_node: SOAP action node
- *	OUT IXML_Document **response_node: SOAP response node
- *
- * Description: This function is called by UPnP API to send the SOAP
- *	action request and waits till it gets the response from the device
- *	pass the response to the API layer
- *
- * Return: int
- *	returns UPNP_E_SUCCESS if successful else returns appropriate error
- * Note:
- ****************************************************************************/
-int SoapSendAction(
-	IN char* action_url,
-	IN char *service_type,
-	IN IXML_Document *action_node,
-	OUT IXML_Document **response_node);
-
-/****************************************************************************
- * Function: SoapSendActionEx
- *
- * Parameters:
- *	IN char* action_url: device contrl URL
- *	IN char *service_type: device service type
- *	IN IXML_Document *Header: Soap header
- *	IN IXML_Document *action_node: SOAP action node (SOAP body)
- *	OUT IXML_Document **response_node: SOAP response node
- *
- * Description: This function is called by UPnP API to send the SOAP
- *	action request and waits till it gets the response from the device
- *	pass the response to the API layer. This action is similar to the
- *	the SoapSendAction with only difference that it allows users to
- *	pass the SOAP header along the SOAP body ( soap action request)
- *
- * Return: int
- *	returns UPNP_E_SUCCESS if successful else returns appropriate error
- * Note:
- ****************************************************************************/
-int SoapSendActionEx(
-	IN char * ActionURL,
-	IN char *ServiceType,
-	IN IXML_Document *Header,
-	IN IXML_Document *ActNode,
-	OUT IXML_Document **RespNode);
-
-/****************************************************************************
- * Function: SoapGetServiceVarStatus
- *
- * Parameters:
- *	IN  char * action_url: Address to send this variable query message.
- *	IN  char *var_name: Name of the variable.
- *	OUT char **var_value: Output value.
- *
- * Description: This function creates a status variable query message
- *	send it to the specified URL. It also collect the response.
- *
- * Return: int
- *
- * Note:
- ****************************************************************************/
-int SoapGetServiceVarStatus(
-	IN char * ActionURL,
-	IN DOMString VarName,
-	OUT DOMString *StVar);
-
-extern const char* ContentTypeHeader;
-
-#endif /* SOAPLIB_H */
-

+ 0 - 193
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/sock.h

@@ -1,193 +0,0 @@
-#ifndef GENLIB_NET_SOCK_H
-#define GENLIB_NET_SOCK_H
-
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (c) 2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-/*!
- * \defgroup Sock Network Socket Library
- *
- * @{
- *
- * \file
- */
-
-#include "UpnpInet.h"		/* for SOCKET, netinet/in */
-#include "UpnpGlobal.h"		/* for UPNP_INLINE */
-
-/* The following are not defined under winsock.h */
-#ifndef SD_RECEIVE
-	#define SD_RECEIVE      0x00
-	#define SD_SEND         0x01
-	#define SD_BOTH         0x02
-#endif
-
-/*! */
-typedef struct 
-{
-	/*! Handle/descriptor to a socket. */
-	SOCKET socket;
-	/*! The following two fields are filled only in incoming requests. */
-	struct sockaddr_storage foreign_sockaddr;
-} SOCKINFO;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*!
- * \brief Closes the socket if it is different from -1.
- *
- * \return -1 if an error occurred or if the socket is -1.
- */
-static UPNP_INLINE int sock_close(
-	/*! Socket descriptor. */
-	SOCKET sock)
-{
-	int ret = -1;
-
-	if (sock != INVALID_SOCKET)
-		ret = UpnpCloseSocket(sock);
-
-	return ret;
-}
-
-/*!
- * \brief Assign the passed in socket descriptor to socket descriptor in the
- * SOCKINFO structure.
- *
- * \return Integer:
- * \li \c UPNP_E_SUCCESS	
- * \li \c UPNP_E_OUTOF_MEMORY
- * \li \c UPNP_E_SOCKET_ERROR
- */
-int sock_init(
-	/*! [out] Socket Information Object. */
-	SOCKINFO *info,
-	/*! [in] Socket Descriptor. */
-	SOCKET sockfd);
-
-/*!
- * \brief Calls the sock_init function and assigns the passed in IP address
- * and port to the IP address and port in the SOCKINFO structure.
- *
- * \return Integer:
- * \li \c UPNP_E_SUCCESS	
- * \li \c UPNP_E_OUTOF_MEMORY
- * \li \c UPNP_E_SOCKET_ERROR
- */
-int sock_init_with_ip(
-	/*! [out] Socket Information Object. */
-	SOCKINFO* info,
-	/*! [in] Socket Descriptor. */
-	SOCKET sockfd, 
-	/*! [in] Remote socket address. */
-        struct sockaddr *foreign_sockaddr);
-
-/*!
- * \brief Shutsdown the socket using the ShutdownMethod to indicate whether
- * sends and receives on the socket will be dis-allowed.
- *
- * After shutting down the socket, closesocket is called to release system
- * resources used by the socket calls.
- *
- * \return Integer:
- * \li \c UPNP_E_SOCKET_ERROR on failure.
- * \li \c UPNP_E_SUCCESS on success.
- */
-int sock_destroy(
-	/*! [in,out] Socket Information Object. */
-	SOCKINFO* info,
-	/*! [in] How to shutdown the socket. Used by sockets's shutdown(). */
-	int ShutdownMethod);
-
-/*!
- * \brief Reads data on socket in sockinfo.
- *
- * \return Integer:
- * \li \c numBytes - On Success, no of bytes received.
- * \li \c UPNP_E_TIMEDOUT - Timeout.
- * \li \c UPNP_E_SOCKET_ERROR - Error on socket calls.
- */
-int sock_read(
-	/*! [in] Socket Information Object. */
-	SOCKINFO *info,
-	/*! [out] Buffer to get data to. */
-	char* buffer,
-	/*! [in] Size of the buffer. */
-	size_t bufsize,
-	/*! [in,out] timeout value. */
-	int *timeoutSecs);
-
-/*!
- * \brief Writes data on the socket in sockinfo.
- *
- * \return Integer:
- * \li \c numBytes - On Success, no of bytes received.
- * \li \c UPNP_E_TIMEDOUT - Timeout.
- * \li \c UPNP_E_SOCKET_ERROR - Error on socket calls.
- */
-int sock_write(
-	/*! [in] Socket Information Object. */
-	SOCKINFO *info,
-	/*! [in] Buffer to send data from. */
-	const char *buffer,
-	/*! [in] Size of the buffer. */
-	size_t bufsize,
-	/*! [in,out] timeout value. */
-	int *timeoutSecs);
-
-/*!
- * \brief Make socket blocking.
- * 
- * \return 0 if successful, -1 otherwise.
- */
-int sock_make_blocking(
-	/* [in] socket. */
-	SOCKET sock);
-
-/*!
- * \brief Make socket non-blocking.
- * 
- * \return 0 if successful, -1 otherwise.
- */
-int sock_make_no_blocking(
-	/* [in] socket. */
-	SOCKET sock);
-
-#ifdef __cplusplus
-}	/* #extern "C" */
-#endif
-
-/* @} Sock Network Socket Library */
-
-#endif /* GENLIB_NET_SOCK_H */

+ 0 - 26
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ssdp_ResultData.h

@@ -1,26 +0,0 @@
-#ifndef SSDP_RESULTDATA_H
-#define SSDP_RESULTDATA_H
-
-/*!
- * \addtogroup SSDPlib
- *
- * @{
- * 
- * \file
- *
- * \brief SSDPResultData object declararion.
- *
- * \author Marcelo Roberto Jimenez
- */
-
-/*! Structure to contain Discovery response. */
-typedef struct resultData
-{
-	struct Upnp_Discovery param;
-	void *cookie;
-	Upnp_FunPtr ctrlpt_callback;
-} ResultData;
-
-/* @} SSDPlib */
-
-#endif /* SSDP_RESULTDATA_H */

+ 0 - 521
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/ssdplib.h

@@ -1,521 +0,0 @@
-#ifndef SSDPLIB_H
-#define SSDPLIB_H 
-
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (C) 2011-2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-/*!
- * \defgroup SSDPlib SSDP Library
- *
- * @{
- *
- * \file
- */
-
-#include "httpparser.h"
-#include "httpreadwrite.h"
-#include "miniserver.h"
-#include "UpnpInet.h"
-
-#include <sys/types.h>
-#include <signal.h>
-#include <setjmp.h>
-#include <errno.h>
-
-#ifdef WIN32
-#else /* WIN32 */
-	#include <syslog.h>
-	#ifndef __APPLE__
-		#include <netinet/in_systm.h>
-		#include <netinet/ip.h>
-		#include <netinet/ip_icmp.h>
-	#endif /* __APPLE__ */
-	#include <sys/time.h>
-#endif /* WIN32 */
-
-/*! Enumeration to define all different types of ssdp searches */
-typedef enum SsdpSearchType {
-	/*! Unknown search command. */
-	SSDP_SERROR = -1,
-	SSDP_ALL,
-	SSDP_ROOTDEVICE,
-	SSDP_DEVICEUDN,
-	SSDP_DEVICETYPE,
-	SSDP_SERVICE
-} SType;
-
-#define BUFSIZE   (size_t)2500
-#define SSDP_IP   "239.255.255.250"
-#define SSDP_IPV6_LINKLOCAL "FF02::C"
-#define SSDP_IPV6_SITELOCAL "FF05::C"
-#define SSDP_PORT 1900
-#define NUM_TRY 3
-#define THREAD_LIMIT 50
-#define COMMAND_LEN  300
-
-/*! can be overwritten by configure CFLAGS argument. */
-#ifndef X_USER_AGENT
-	/*! @name X_USER_AGENT
-	 *  The {\tt X_USER_AGENT} constant specifies the value of the X-User-Agent:
-	 *  HTTP header. The value "redsonic" is needed for the DSM-320. See
-	 *  https://sourceforge.net/forum/message.php?msg_id=3166856 for more
-	 * information
-	 */
-	#define X_USER_AGENT "redsonic"
-#endif
-
-/*! Error codes. */
-#define NO_ERROR_FOUND    0
-#define E_REQUEST_INVALID  	-3
-#define E_RES_EXPIRED		-4
-#define E_MEM_ALLOC		-5
-#define E_HTTP_SYNTEX		-6
-#define E_SOCKET 		-7
-
-#define RQST_TIMEOUT    20
-
-/*! Structure to store the SSDP information */
-typedef struct SsdpEventStruct {
-	enum SsdpSearchType RequestType;
-	int  ErrCode;
-	int  MaxAge;
-	int  Mx;
-	char UDN[LINE_SIZE];
-	char DeviceType[LINE_SIZE];
-	/* NT or ST */
-	char ServiceType[LINE_SIZE];
-	char Location[LINE_SIZE];
-	char HostAddr[LINE_SIZE];
-	char Os[LINE_SIZE];
-	char Ext[LINE_SIZE];
-	char Date[LINE_SIZE];
-	struct sockaddr *DestAddr;
-	void * Cookie;
-} SsdpEvent;
-
-typedef void (* SsdpFunPtr)(SsdpEvent *);
-
-typedef struct TData
-{
-	int Mx;
-	void * Cookie;
-	char * Data;
-	struct sockaddr_storage DestAddr;
-} ThreadData;
-
-typedef struct ssdpsearchreply
-{
-	int MaxAge;
-	UpnpDevice_Handle handle;
-	struct sockaddr_storage dest_addr;
-	SsdpEvent event;
-} SsdpSearchReply;
-
-typedef struct ssdpsearcharg
-{
-	int timeoutEventId;
-	char * searchTarget;
-	void *cookie;
-	enum SsdpSearchType requestType;
-} SsdpSearchArg;
-
-
-typedef struct 
-{
-	http_parser_t parser;
-	struct sockaddr_storage dest_addr;
-} ssdp_thread_data;
-
-/* globals */
-
-#ifdef INCLUDE_CLIENT_APIS
-	extern SOCKET gSsdpReqSocket4;
-	#ifdef UPNP_ENABLE_IPV6
-		extern SOCKET gSsdpReqSocket6;
-	#endif /* UPNP_ENABLE_IPV6 */
-#endif /* INCLUDE_CLIENT_APIS */
-typedef int (*ParserFun)(char *, SsdpEvent *);
-
-/*!
- * \name SSDP Server Functions
- *
- * @{
- */
-
-/*!
- * \brief Sends SSDP advertisements, replies and shutdown messages.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int AdvertiseAndReply(
-	/* [in] -1 = Send shutdown, 0 = send reply, 1 = Send Advertisement. */
-	int AdFlag, 
-	/* [in] Device handle. */
-	UpnpDevice_Handle Hnd, 
-	/* [in] Search type for sending replies. */
-	enum SsdpSearchType SearchType, 
-	/* [in] Destination address. */
-	struct sockaddr *DestAddr,
-	/* [in] Device type. */
-	char *DeviceType, 
-	/* [in] Device UDN. */
-	char *DeviceUDN, 
-	/* [in] Service type. */
-	char *ServiceType,
-	/* [in] Advertisement age. */
-	int Exp);
-
-/*!
- * \brief Fills the fields of the event structure like DeviceType, Device UDN
- * and Service Type.
- *
- * \return  0 if successful else -1.
- */
-int unique_service_name(
-	/* [in] Service Name string. */
-	char *cmd,
-	/* [out] The SSDP event structure partially filled by all the
-	 * function. */
-	SsdpEvent *Evt);
-
-/*!
- * \brief This function figures out the type of the SSDP search in the in the
- * request.
- *
- * \return enum SsdpSearchType. Returns appropriate search type,
- * else returns SSDP_ERROR
- */
-enum SsdpSearchType ssdp_request_type1(
-	/* [in] command came in the ssdp request. */
-	char *cmd);
-
-/*!
- * \brief Starts filling the SSDP event structure based upon the
- * request received.
- *
- * \return 0 on success; -1 on error.
- */
-int ssdp_request_type(
-	/* [in] command came in the ssdp request. */
-	char *cmd,
-	/* [out] The event structure partially filled by this function. */
-	SsdpEvent *Evt);
-
-/*!
- * \brief This function reads the data from the ssdp socket.
- */
-void readFromSSDPSocket(
-	/* [in] SSDP socket. */
-	SOCKET socket);
-
-/*!
- * \brief Creates the IPv4 and IPv6 ssdp sockets required by the
- *  control point and device operation.
- *
- * \return UPNP_E_SUCCESS if successful else returns appropriate error.
- */
-int get_ssdp_sockets(
-	/* [out] Array of SSDP sockets. */
-	MiniServerSockArray *out);
-
-/* @} SSDP Server Functions */
-
-/*!
- * \name SSDP Control Point Functions
- *
- * @{
- */
-
-/*!
- * \brief This function handles the ssdp messages from the devices. These
- * messages includes the search replies, advertisement of device coming alive
- * and bye byes.
- */
-void ssdp_handle_ctrlpt_msg(
-	/* [in] SSDP message from the device. */
-	http_message_t *hmsg, 
-	/* [in] Address of the device. */
-	struct sockaddr_storage *dest_addr,
-	/* [in] timeout kept by the control point while sending search message.
-	 * Only in search reply. */
-	int timeout,
-	/* [in] Cookie stored by the control point application. This cookie will
-	 * be returned to the control point in the callback.
-	 * Only in search reply. */
-	void *cookie);
-
-/*!
- * \brief Creates and send the search request for a specific URL.
- *
- * This function implements the search request of the discovery phase.
- * A M-SEARCH request is sent on the SSDP channel for both IPv4 and
- * IPv6 addresses. The search target(ST) is required and must be one of
- * the following:
- *     \li "ssdp:all" : Search for all devices and services.
- *     \li "ssdp:rootdevice" : Search for root devices only.
- *     \li "uuid:<device-uuid>" : Search for a particular device.
- *     \li "urn:schemas-upnp-org:device:<deviceType:v>"
- *     \li "urn:schemas-upnp-org:service:<serviceType:v>"
- *     \li "urn:<domain-name>:device:<deviceType:v>"
- *     \li "urn:<domain-name>:service:<serviceType:v>"
- *
- * \return 1 if successful else appropriate error.
- */
-int SearchByTarget(
-	/* [in] Number of seconds to wait, to collect all the responses. */
-	int Mx,
-	/* [in] Search target. */
-	char *St,
-	/* [in] Cookie provided by control point application. This cokie will
-	 * be returned to application in the callback. */
-	void *Cookie);
-
-/* @} SSDP Control Point Functions */
-
-/*!
- * \name SSDP Device Functions
- *
- * @{
- */
-
-/*!
- * \brief Wrapper function to reply the search request coming from the
- * control point.
- *
- * \return always return NULL
- */
-void *advertiseAndReplyThread(
-	/* [in] Structure containing the search request. */
-	void *data);
-
-/*!
- * \brief Handles the search request. It does the sanity checks of the
- * request and then schedules a thread to send a random time reply
- * (random within maximum time given by the control point to reply).
- */
-#ifdef INCLUDE_DEVICE_APIS
-void ssdp_handle_device_request(
-	/* [in] . */
-	http_message_t *hmsg, 
-	/* [in] . */
-	struct sockaddr_storage *dest_addr);
-#else /* INCLUDE_DEVICE_APIS */
-static UPNP_INLINE void ssdp_handle_device_request(
-	/* [in] . */
-	http_message_t *hmsg, 
-	/* [in] . */
-	struct sockaddr_storage *dest_addr) {}
-#endif /* INCLUDE_DEVICE_APIS */
-
-/*!
- * \brief Creates the device advertisement request based on the input
- * parameter, and send it to the multicast channel.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int DeviceAdvertisement(
-	/* [in] type of the device. */
-	char *DevType,
-	/* [in] flag to indicate if the device is root device. */
-	int RootDev,
-	/* [in] UDN. */
-	char *Udn, 
-	/* [in] Location URL. */
-	char *Location,
-	/* [in] Service duration in sec. */
-	int Duration,
-	/* [in] Device address family. */
-	int AddressFamily,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/*!
- * \brief Creates the reply packet based on the input parameter, and send it
- * to the client addesss given in its input parameter DestAddr.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int SendReply(
-	/* [in] destination IP address. */
-	struct sockaddr *DestAddr, 
-	/* [in] Device type. */
-	char *DevType, 
-	/* [in] 1 means root device 0 means embedded device. */
-	int RootDev, 
-	/* [in] Device UDN. */
-	char *Udn, 
-	/* [in] Location of Device description document. */
-	char *Location, 
-	/* [in] Life time of this device. */
-	int Duration, 
-	/* [in] . */
-	int ByType,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/*!
- * \brief Creates the reply packet based on the input parameter, and send it
- * to the client address given in its input parameter DestAddr.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int DeviceReply(
-	/* [in] destination IP address. */
-	struct sockaddr *DestAddr, 
-	/* [in] Device type. */
-	char *DevType, 
-	/* [in] 1 means root device 0 means embedded device. */
-	int RootDev, 
-	/* [in] Device UDN. */
-	char *Udn, 
-	/* [in] Location of Device description document. */
-	char *Location, 
-	/* [in] Life time of this device. */
-	int Duration,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/*!
- * \brief Creates the advertisement packet based on the input parameter,
- * and send it to the multicast channel.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int ServiceAdvertisement(
-	/* [in] Device UDN. */
-	char *Udn, 
-	/* [in] Service Type. */
-	char *ServType,
-	/* [in] Location of Device description document. */
-	char *Location,
-	/* [in] Life time of this device. */
-	int Duration,
-	/* [in] Device address family. */
-	int AddressFamily,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/*!
- * \brief Creates the advertisement packet based on the input parameter,
- * and send it to the multicast channel.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int ServiceReply(
-	/* [in] . */
-	struct sockaddr *DestAddr,  
-	/* [in] Service Type. */
-	char *ServType, 
-	/* [in] Device UDN. */
-	char *Udn, 
-	/* [in] Location of Device description document. */
-	char *Location,
-	/* [in] Life time of this device. */
-	int Duration,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/*!
- * \brief Creates a HTTP service shutdown request packet and sends it to the
- * multicast channel through RequestHandler.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int ServiceShutdown(
-	/* [in] Device UDN. */
-	char *Udn,
-	/* [in] Service Type. */
-	char *ServType,
-	/* [in] Location of Device description document. */
-	char *Location,
-	/* [in] Service duration in sec. */
-	int Duration,
-	/* [in] Device address family. */
-	int AddressFamily,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/*!
- * \brief Creates a HTTP device shutdown request packet and send it to the
- * multicast channel through RequestHandler.
- *
- * \return UPNP_E_SUCCESS if successful else appropriate error.
- */
-int DeviceShutdown(
-	/* [in] Device Type. */
-	char *DevType, 
-	/* [in] 1 means root device. */
-	int RootDev,
-	/* [in] Device UDN. */
-	char *Udn, 
-	/* [in] Location URL. */
-	char *Location, 
-	/* [in] Device duration in sec. */
-	int Duration,
-	/* [in] Device address family. */
-	int AddressFamily,
-	/* [in] PowerState as defined by UPnP Low Power. */
-	int PowerState,
-	/* [in] SleepPeriod as defined by UPnP Low Power. */
-	int SleepPeriod,
-	/* [in] RegistrationState as defined by UPnP Low Power. */
-	int RegistrationState);
-
-/* @} SSDP Device Functions */
-
-/* @} SSDPlib SSDP Library */
-
-#endif /* SSDPLIB_H */

+ 0 - 118
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/statcodes.h

@@ -1,118 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_NET_HTTP_STATCODES_H
-#define GENLIB_NET_HTTP_STATCODES_H
-
-/* HTTP response status codes */
-
-#define HTTP_CONTINUE                       100
-#define HTTP_SWITCHING_PROCOTOLS            101
-
-#define HTTP_OK                             200
-#define HTTP_CREATED                        201
-#define HTTP_ACCEPTED                       202
-#define HTTP_NON_AUTHORATATIVE              203
-#define HTTP_NO_CONTENT                     204
-#define HTTP_RESET_CONTENT                  205
-#define HTTP_PARTIAL_CONTENT                206
-
-#define HTTP_MULTIPLE_CHOICES               300
-#define HTTP_MOVED_PERMANENTLY              301
-#define HTTP_FOUND                          302
-#define HTTP_SEE_OTHER                      303
-#define HTTP_NOT_MODIFIED                   304
-#define HTTP_USE_PROXY                      305
-#define HTTP_UNUSED_3XX                     306
-#define HTTP_TEMPORARY_REDIRECT             307
-
-#define HTTP_BAD_REQUEST                    400
-#define HTTP_UNAUTHORIZED                   401
-#define HTTP_PAYMENT_REQD                   402
-#define HTTP_FORBIDDEN                      403
-#define HTTP_NOT_FOUND                      404
-#define HTTP_METHOD_NOT_ALLOWED             405
-#define HTTP_NOT_ACCEPTABLE                 406
-#define HTTP_PROXY_AUTH_REQD                407
-#define HTTP_REQUEST_TIMEOUT                408
-#define HTTP_CONFLICT                       409
-#define HTTP_GONE                           410
-#define HTTP_LENGTH_REQUIRED                411
-#define HTTP_PRECONDITION_FAILED            412
-#define HTTP_REQ_ENTITY_TOO_LARGE           413
-#define HTTP_REQ_URI_TOO_LONG               414
-#define HTTP_UNSUPPORTED_MEDIA_TYPE         415
-#define HTTP_REQUEST_RANGE_NOT_SATISFIABLE  416
-#define HTTP_EXPECTATION_FAILED             417
-
-#define HTTP_INTERNAL_SERVER_ERROR          500
-#define HTTP_NOT_IMPLEMENTED                501
-#define HTTP_BAD_GATEWAY                    502
-#define HTTP_SERVICE_UNAVAILABLE            503
-#define HTTP_GATEWAY_TIMEOUT                504
-#define HTTP_HTTP_VERSION_NOT_SUPPORTED     505
-#define HTTP_VARIANT_ALSO_NEGOTIATES        506
-#define HTTP_INSUFFICIENT_STORAGE           507
-#define HTTP_LOOP_DETECTED                  508
-#define HTTP_NOT_EXTENDED                   510
-
-/* HTTP lib error codes */
-
-#define HTTP_E_OUT_OF_MEMORY    -2
-#define HTTP_E_BAD_MSG_FORMAT   -3
-#define HTTP_E_TIMEDOUT         -4
-#define HTTP_E_FILE_READ        -5
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/************************************************************************
-* Function: http_get_code_text											
-*																		
-* Parameters:															
-*	int statusCode ; Status code based on which the status table and 
-*					status message is returned 							
-*																		
-* Description: Return the right status message based on the passed in	
-*	int statusCode input parameter										
-*																		
-* Returns:																
-*	 const char* ptr - pointer to the status message string				
-************************************************************************/
-const char* http_get_code_text( int statusCode );
-
-#ifdef __cplusplus
-} /* extern C */
-#endif
-
-#endif /* GENLIB_NET_HTTP_STATCODES_H */
-

+ 0 - 102
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/statuscodes.h

@@ -1,102 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-//
-// Copyright (c) 2000-2003 Intel Corporation 
-// All rights reserved. 
-//
-// Redistribution and use in source and binary forms, with or without 
-// modification, are permitted provided that the following conditions are met: 
-//
-// * Redistributions of source code must retain the above copyright notice, 
-// this list of conditions and the following disclaimer. 
-// * Redistributions in binary form must reproduce the above copyright notice, 
-// this list of conditions and the following disclaimer in the documentation 
-// and/or other materials provided with the distribution. 
-// * Neither name of Intel Corporation nor the names of its contributors 
-// may be used to endorse or promote products derived from this software 
-// without specific prior written permission.
-// 
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
-// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef GENLIB_NET_HTTP_STATUSCODES_H
-#define GENLIB_NET_HTTP_STATUSCODES_H
-
-// HTTP response status codes
-
-#define HTTP_CONTINUE                       100
-#define HTTP_SWITCHING_PROCOTOLS            101
-
-#define HTTP_OK                             200
-#define HTTP_CREATED                        201
-#define HTTP_ACCEPTED                       202
-#define HTTP_NON_AUTHORATATIVE              203
-#define HTTP_NO_CONTENT                     204
-#define HTTP_RESET_CONTENT                  205
-#define HTTP_PARTIAL_CONTENT                206
-
-#define HTTP_MULTIPLE_CHOICES               300
-#define HTTP_MOVED_PERMANENTLY              301
-#define HTTP_FOUND                          302
-#define HTTP_SEE_OTHER                      303
-#define HTTP_NOT_MODIFIED                   304
-#define HTTP_USE_PROXY                      305
-#define HTTP_UNUSED_3XX                     306
-#define HTTP_TEMPORARY_REDIRECT             307
-
-#define HTTP_BAD_REQUEST                    400
-#define HTTP_UNAUTHORIZED                   401
-#define HTTP_PAYMENT_REQD                   402
-#define HTTP_FORBIDDEN                      403
-#define HTTP_NOT_FOUND                      404
-#define HTTP_METHOD_NOT_ALLOWED             405
-#define HTTP_NOT_ACCEPTABLE                 406
-#define HTTP_PROXY_AUTH_REQD                407
-#define HTTP_REQUEST_TIMEOUT                408
-#define HTTP_CONFLICT                       409
-#define HTTP_GONE                           410
-#define HTTP_LENGTH_REQUIRED                411
-#define HTTP_PRECONDITION_FAILED            412
-#define HTTP_REQ_ENTITY_TOO_LARGE           413
-#define HTTP_REQ_URI_TOO_LONG               414
-#define HTTP_UNSUPPORTED_MEDIA_TYPE         415
-#define HTTP_REQUEST_RANGE_NOT_SATISFIABLE  416
-#define HTTP_EXPECTATION_FAILED             417
-
-#define HTTP_INTERNAL_SERVER_ERROR          500
-#define HTTP_NOT_IMPLEMENTED                501
-#define HTTP_BAD_GATEWAY                    502
-#define HTTP_SERVICE_UNAVAILABLE            503
-#define HTTP_GATEWAY_TIMEOUT                504
-#define HTTP_HTTP_VERSION_NOT_SUPPORTED     505
-
-// *********** HTTP lib error codes **********
-
-#define HTTP_E_OUT_OF_MEMORY    -2
-#define HTTP_E_BAD_MSG_FORMAT   -3
-#define HTTP_E_TIMEDOUT         -4
-#define HTTP_E_FILE_READ        -5
-
-// *******************************************
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-const char* http_GetCodeText( int statusCode );
-
-#ifdef __cplusplus
-} // extern C
-#endif
-
-#endif /* GENLIB_NET_HTTP_STATUSCODES_H */

+ 0 - 103
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/strintmap.h

@@ -1,103 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_UTIL_STRINTMAP_H
-#define GENLIB_UTIL_STRINTMAP_H
-
-#include <stdlib.h>
-#include "upnputil.h"
-
-/* Util to map from a string to an integer and vice versa */
-
-typedef struct /* str_int_entry */
-{
-	const char *name;	/* a value in string form */
-	int  id;		/* same value in integer form */
-} str_int_entry;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/************************************************************************
-*	Function :	map_str_to_int
-*
-*	Parameters :
-*		IN const char* name ;	string containing the name to be matched
-*		IN size_t name_len ;	size of the string to be matched
-*		IN str_int_entry* table ;	table of entries that need to be 
-*					matched.
-*		IN int num_entries ; number of entries in the table that need 
-*					to be searched.
-*		IN int case_sensitive ; whether the case should be case
-*					sensitive or not
-*
-*	Description : Match the given name with names from the entries in the 
-*		table. Returns the index of the table when the entry is found.
-*
-*	Return : int ;
-*		index - On Success
-*		-1 - On failure
-*
-*	Note :
-************************************************************************/
-int map_str_to_int( IN const char* name, IN size_t name_len,
-		IN str_int_entry* table, IN int num_entries, 
-		IN int case_sensitive );
-
-
-/************************************************************************
-*	Function :	map_int_to_str
-*
-*	Parameters :
-*		IN int id ;	ID to be matched
-*		IN str_int_entry* table ;	table of entries that need to be 
-*					matched.
-*		IN int num_entries ; number of entries in the table that need 
-*					to be searched.
-*
-*	Description : Returns the index from the table where the id matches 
-*		the entry from the table.
-*
-*	Return : int ;
-*
-*	Note :
-************************************************************************/
-int map_int_to_str( IN int id, IN str_int_entry* table,
-		IN int num_entries );
-
-#ifdef __cplusplus
-} /* extern C */
-#endif
-
-
-#endif /* GENLIB_UTIL_STRINTMAP_H */
-

+ 0 - 64
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/sysdep.h

@@ -1,64 +0,0 @@
-#ifndef SYSDEP_H
-#define SYSDEP_H
-
-/*
- * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
- * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
- * Digital Equipment Corporation, Maynard, Mass.
- * Copyright (c) 1998 Microsoft.
- * To anyone who acknowledges that this file is provided "AS IS"
- * without any express or implied warranty: permission to use, copy,
- * modify, and distribute this file for any purpose is hereby
- * granted without fee, provided that the above copyright notices and
- * this notice appears in all source code copies, and that none of
- * the names of Open Software Foundation, Inc., Hewlett-Packard
- * Company, or Digital Equipment Corporation be used in advertising
- * or publicity pertaining to distribution of the software without
- * specific, written prior permission.  Neither Open Software
- * Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment
- * Corporation makes any representations about the suitability of
- * this software for any purpose.
- */
-
-/*!
- * \file
- */
-
-#include "ithread.h"
-
-/* change to point to where MD5 .h's live */
-/* get MD5 sample implementation from RFC 1321 */
-#include "global.h"
-#include "md5.h"
-
-#include "UpnpStdInt.h"
-
-#include <sys/types.h>
-
-#ifdef WIN32
-	/* Do not #include <sys/time.h> */
-#else
-	#include <sys/time.h>
-#endif
-
-/*! set the following to the number of 100ns ticks of the actual resolution of
- * your system's clock */
-#define UUIDS_PER_TICK 1024
-
-/*! Set the following to a call to acquire a system wide global lock. */
-extern ithread_mutex_t gUUIDMutex;
-
-#define UUIDLock()      ithread_mutex_lock(&gUUIDMutex)
-#define UUIDUnlock()    ithread_mutex_unlock(&gUUIDMutex)
-
-typedef uint64_t uuid_time_t;
-
-typedef struct {
-	char nodeID[6];
-} uuid_node_t;
-
-void get_ieee_node_identifier(uuid_node_t * node);
-void get_system_time(uuid_time_t * uuid_time);
-void get_random_info(unsigned char seed[16]);
-
-#endif /* SYSDEP_H */

+ 0 - 51
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/unixutil.h

@@ -1,51 +0,0 @@
-#ifndef GENLIB_NET_UNIXUTIL_H
-#define	GENLIB_NET_UNIXUTIL_H
-
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-/* Unix-specific network utilities */
-
-#include "UpnpInet.h"
-
-#ifdef WIN32
-	#include <errno.h>
-
-	typedef int socklen_t;
-	#ifndef EAFNOSUPPORT	/* VS2010 has this defined */
-		#define EAFNOSUPPORT 97
-	#endif
-#else
-	#include <sys/time.h>
-	#include <sys/wait.h>
-#endif
-
-#endif /* GENLIB_NET_UNIXUTIL_H */

File diff suppressed because it is too large
+ 0 - 2947
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnp.h


+ 0 - 62
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnp_timeout.h

@@ -1,62 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-
-#ifndef UPNPTIMEOUT_H
-#define UPNPTIMEOUT_H
-
-
-/*!
- * \file
- */
-
-
-/*!
- * The upnp_timeout structure definition.
- */
-typedef struct UPNP_TIMEOUT {
-	int EventType;
-	int handle;
-	int eventId;
-	void *Event;
-} upnp_timeout;
-
-
-/*!
- * \brief Free memory associated with event and memory for any sub-elements.
- */
-void free_upnp_timeout(
-	/*! [in] Event which needs to be freed. */
-	upnp_timeout *event);
-
-
-#endif /* UPNPTIMEOUT_H */
-

+ 0 - 322
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnpapi.h

@@ -1,322 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- * Copyright (C) 2011-2012 France Telecom All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-
-#ifndef UPNPAPI_H
-#define UPNPAPI_H
-
-
-/*!
- * \file
- */
-
-
-#include "client_table.h"
-#include "upnp.h"
-#include "VirtualDir.h"		/* for struct VirtualDirCallbacks */
-
-
-#define MAX_INTERFACES 256
-
-#define DEFAULT_INTERFACE 1
-
-#define DEV_LIMIT 200
-
-#define DEFAULT_MX 5
-
-#define DEFAULT_MAXAGE 1800
-
-#define DEFAULT_SOAP_CONTENT_LENGTH 16000
-#define MAX_SOAP_CONTENT_LENGTH (size_t)32000
-
-extern size_t g_maxContentLength;
-extern int g_UpnpSdkEQMaxLen;
-extern int g_UpnpSdkEQMaxAge;
-
-/* 30-second timeout */
-#define UPNP_TIMEOUT	30
-
-typedef enum {HND_INVALID=-1,HND_CLIENT,HND_DEVICE} Upnp_Handle_Type;
-
-/* Data to be stored in handle table for */
-struct Handle_Info
-{
-	/*! . */
-	Upnp_Handle_Type HType;
-	/*! Callback function pointer. */
-	Upnp_FunPtr  Callback;
-	/*! . */
-	char *Cookie;
-	/*! 0 = not installed; otherwise installed. */
-	int   aliasInstalled;
-
-	/* Device Only */
-#ifdef INCLUDE_DEVICE_APIS
-	/*! URL for the use of SSDP. */
-	char  DescURL[LINE_SIZE];
-	/*! URL for the use of SSDP when answering to legacy CPs (CP searching
-	 * for a v1 when the device is v2). */
-	char  LowerDescURL[LINE_SIZE];
-	/*! XML file path for device description. */
-	char  DescXML[LINE_SIZE];
-	/* Advertisement timeout */
-	int MaxAge;
-	/* Power State as defined by UPnP Low Power. */
-	int PowerState;
-	/* Sleep Period as defined by UPnP Low Power. */
-	int SleepPeriod;
-	/* Registration State as defined by UPnP Low Power. */
-	int RegistrationState;
-	/*! Description parsed in terms of DOM document. */
-	IXML_Document *DescDocument;
-	/*! List of devices in the description document. */
-	IXML_NodeList *DeviceList;
-	/*! List of services in the description document. */
-	IXML_NodeList *ServiceList;
-	/*! Table holding subscriptions and URL information. */
-	service_table ServiceTable;
-	/*! . */
-	int MaxSubscriptions;
-	/*! . */
-	int MaxSubscriptionTimeOut;
-	/*! Address family: AF_INET or AF_INET6. */
-	int DeviceAf;
-#endif
-
-	/* Client only */
-#ifdef INCLUDE_CLIENT_APIS
-	/*! Client subscription list. */
-	ClientSubscription *ClientSubList;
-	/*! Active SSDP searches. */
-	LinkedList SsdpSearchList;
-#endif
-};
-
-extern ithread_rwlock_t GlobalHndRWLock;
-
-/*!
- * \brief Get handle information.
- *
- * \return HND_DEVICE, UPNP_E_INVALID_HANDLE
- */
-Upnp_Handle_Type GetHandleInfo(
-	/*! handle pointer (key for the client handle structure). */
-	int Hnd,
-	/*! handle structure passed by this function. */
-	struct Handle_Info **HndInfo); 
-
-
-#define HandleLock() HandleWriteLock()
-
-
-#define HandleWriteLock()  \
-	UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Trying a write lock"); \
-	ithread_rwlock_wrlock(&GlobalHndRWLock); \
-	UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Write lock acquired");
-
-
-#define HandleReadLock()  \
-	UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Trying a read lock"); \
-	ithread_rwlock_rdlock(&GlobalHndRWLock); \
-	UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Read lock acquired");
-
-
-#define HandleUnlock() \
-	UpnpPrintf(UPNP_INFO, API,__FILE__, __LINE__, "Trying Unlock"); \
-	ithread_rwlock_unlock(&GlobalHndRWLock); \
-	UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Unlocked rwlock");
-
-
-/*!
- * \brief Get client handle info.
- *
- * \note The logic around the use of this function should be revised.
- *
- * \return HND_CLIENT, HND_INVALID
- */
-Upnp_Handle_Type GetClientHandleInfo(
-	/*! [in] client handle pointer (key for the client handle structure). */
-	int *client_handle_out, 
-	/*! [out] Client handle structure passed by this function. */
-	struct Handle_Info **HndInfo);
-/*!
- * \brief Retrieves the device handle and information of the first device of
- * 	the address family spcified.
- *
- * \return HND_DEVICE or HND_INVALID
- */
-Upnp_Handle_Type GetDeviceHandleInfo(
-	/*! [in] Address family. */
-	int AddressFamily,
-	/*! [out] Device handle pointer. */
-	int *device_handle_out, 
-	/*! [out] Device handle structure passed by this function. */
-	struct Handle_Info **HndInfo);
-
-
-extern char gIF_NAME[LINE_SIZE];
-extern char gIF_IPV4[INET_ADDRSTRLEN];
-extern char gIF_IPV6[INET6_ADDRSTRLEN];
-
-extern char gIF_IPV6_ULA_GUA[INET6_ADDRSTRLEN];
-
-extern unsigned gIF_INDEX;
-
-
-extern unsigned short LOCAL_PORT_V4;
-extern unsigned short LOCAL_PORT_V6;
-
-
-/*! NLS uuid. */
-extern Upnp_SID gUpnpSdkNLSuuid;
-
-
-extern TimerThread gTimerThread;
-extern ThreadPool gRecvThreadPool;
-extern ThreadPool gSendThreadPool;
-extern ThreadPool gMiniServerThreadPool;
-
-
-typedef enum {
-	SUBSCRIBE,
-	UNSUBSCRIBE,
-	DK_NOTIFY,
-	QUERY,
-	ACTION,
-	STATUS,
-	DEVDESCRIPTION,
-	SERVDESCRIPTION,
-	MINI,
-	RENEW
-} UpnpFunName;
-
-
-struct  UpnpNonblockParam 
-{
-	UpnpFunName FunName;
-	int Handle;
-	int TimeOut;
-	char VarName[NAME_SIZE];
-	char NewVal[NAME_SIZE];
-	char DevType[NAME_SIZE];
-	char DevId[NAME_SIZE];
-	char ServiceType[NAME_SIZE];
-	char ServiceVer[NAME_SIZE];
-	char Url[NAME_SIZE];
-	Upnp_SID SubsId;
-	char *Cookie;
-	Upnp_FunPtr Fun;
-	IXML_Document *Header;
-	IXML_Document *Act;
-	struct DevDesc *Devdesc;
-};
-
-
-extern virtualDirList *pVirtualDirList;
-extern struct VirtualDirCallbacks virtualDirCallback;
-
-
-typedef enum {
-	WEB_SERVER_DISABLED,
-	WEB_SERVER_ENABLED
-} WebServerState;
-
-
-#define E_HTTP_SYNTAX -6
-
-
-/*!
- * \brief Retrieve interface information and keep it in global variables.
- * If NULL, we'll find the first suitable interface for operation.
- *
- * The interface must fulfill these requirements:
- * \li Be UP.
- * \li Not be LOOPBACK.
- * \li Support MULTICAST.
- * \li Have a valid IPv4 or IPv6 address.
- *
- * We'll retrieve the following information from the interface:
- * \li gIF_NAME -> Interface name (by input or found).
- * \li gIF_IPV4 -> IPv4 address (if any).
- * \li gIF_IPV6 -> IPv6 address (if any).
- * \li gIF_IPV6_ULA_GUA -> ULA or GUA IPv6 address (if any)
- * \li gIF_INDEX -> Interface index number.
- *
- * \return UPNP_E_SUCCESS on success.
- */
-int UpnpGetIfInfo(
-	/*! [in] Interface name (can be NULL). */
-	const char *IfName);
-
-
-void UpnpThreadDistribution(struct UpnpNonblockParam * Param);
-
-
-/*!
- * \brief This function is a timer thread scheduled by UpnpSendAdvertisement
- * to the send advetisement again.
- */
-void AutoAdvertise(
-	/*! [in] Information provided to the thread. */
-	void *input); 
-
-
-/*!
- * \brief Get local IP address.
- *
- * Gets the ip address for the DEFAULT_INTERFACE interface which is up and not
- * a loopback. Assumes at most MAX_INTERFACES interfaces
- *
- * \return UPNP_E_SUCCESS  if successful or UPNP_E_INIT.
- */
-int getlocalhostname(
-	/*! [out] IP address of the interface. */
-	char *out,
-	/*! [in] Length of the output buffer. */
-	size_t out_len);
-
-
-/*!
- * \brief Print handle info.
- *	
- * \return UPNP_E_SUCCESS if successful, otherwise returns appropriate error.
- */
-int PrintHandleInfo(
-	/*! [in] Handle index. */
-	UpnpClient_Handle Hnd);
-
-
-extern WebServerState bWebServerState;
-
-
-#endif /* UPNPAPI_H */
-

+ 0 - 145
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnpconfig.h

@@ -1,145 +0,0 @@
-/* upnp/inc/upnpconfig.h.  Generated from upnpconfig.h.in by configure.  */
-/* -*- C -*- */
-/*******************************************************************************
- *
- * Copyright (c) 2006 Rémi Turboult <r3mi@users.sourceforge.net>
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef UPNP_CONFIG_H
-#define UPNP_CONFIG_H 
-
-
-/***************************************************************************
- * Library version 
- ***************************************************************************/ 
-
-/** The library version (string) e.g. "1.3.0" */
-#define UPNP_VERSION_STRING "1.6.24"
-
-/** Major version of the library */
-#define UPNP_VERSION_MAJOR 1
-
-/** Minor version of the library */
-#define UPNP_VERSION_MINOR 6
-
-/** Patch version of the library */
-#define UPNP_VERSION_PATCH 24
-
-/** The library version (numeric) e.g. 10300 means version 1.3.0 */
-#define UPNP_VERSION	\
-  ((UPNP_VERSION_MAJOR * 100 + UPNP_VERSION_MINOR) * 100 + UPNP_VERSION_PATCH)
-
-
-
-/***************************************************************************
- * Large file support
- ***************************************************************************/
-
-/** File Offset size */
-#define _FILE_OFFSET_BITS 64
-
-/** Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
-#define _LARGEFILE_SOURCE 1
-
-/** Large files support */
-#define _LARGE_FILE_SOURCE /**/
-
-/***************************************************************************
- * Library optional features
- ***************************************************************************/
-
-/*
- * The following defines can be tested in order to know which 
- * optional features have been included in the installed library.
- */
-
-
-/** Defined to 1 if the library has been compiled with DEBUG enabled 
- *  (i.e. configure --enable-debug) : <upnp/upnpdebug.h> file is available */
-/* #undef UPNP_HAVE_DEBUG */
-
-
-/** Defined to 1 if the library has been compiled with client API enabled 
- *  (i.e. configure --enable-client) */
-#define UPNP_HAVE_CLIENT 1
-
-
-/** Defined to 1 if the library has been compiled with device API enabled 
- *  (i.e. configure --enable-device) */
-#define UPNP_HAVE_DEVICE 1
-
-
-/** Defined to 1 if the library has been compiled with integrated web server
- *  (i.e. configure --enable-webserver --enable-device) */
-#define UPNP_HAVE_WEBSERVER 1
-
-
-/** Defined to 1 if the library has been compiled with the SSDP part enabled
- *  (i.e. configure --enable-ssdp) */
-#define UPNP_HAVE_SSDP 1
-
-
-/** Defined to 1 if the library has been compiled with optional SSDP headers
- *  support (i.e. configure --enable-optssdp) */
-#define UPNP_HAVE_OPTSSDP 1
-
-
-/** Defined to 1 if the library has been compiled with the SOAP part enabled
- *  (i.e. configure --enable-soap) */
-#define UPNP_HAVE_SOAP 1
-
-
-/** Defined to 1 if the library has been compiled with the GENA part enabled
- *  (i.e. configure --enable-gena) */
-#define UPNP_HAVE_GENA 1
-
-
-/** Defined to 1 if the library has been compiled with helper API
- *  (i.e. configure --enable-tools) : <upnp/upnptools.h> file is available */
-#define UPNP_HAVE_TOOLS 1
-
-/** Defined to 1 if the library has been compiled with ipv6 support
- *  (i.e. configure --enable-ipv6) */
-/* #undef UPNP_ENABLE_IPV6 */
-
-/** Defined to 1 if the library has been compiled with unspecified SERVER
- * header (i.e. configure --enable-unspecified_server) */
-/* #undef UPNP_ENABLE_UNSPECIFIED_SERVER */
-
-/** Defined to 1 if the library has been compiled with OpenSSL support
- *  (i.e. configure --enable-open_ssl) */
-/* #undef UPNP_ENABLE_OPEN_SSL */
-
-/** Defined to 1 if the library has been compiled to support filesystem writes on POST
- *  (i.e. configure --enable-postwrite) */
-/* #undef UPNP_ENABLE_POST_WRITE */
-
-
-#endif /* UPNP_CONFIG_H */
-

+ 0 - 292
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnpdebug.h

@@ -1,292 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * Copyright (c) 2006 Rémi Turboult <r3mi@users.sourceforge.net>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef UPNP_DEBUG_H
-#define UPNP_DEBUG_H
-
-/*!
- * \file
- */
-
-#include "ThreadPool.h"
-#include "upnpconfig.h"
-#include "UpnpGlobal.h"		/* for UPNP_INLINE */
-
-#include <stdio.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*! \name Other debugging features
- *
- * The UPnP SDK contains other features to aid in debugging.
- */
-/*@{*/
-
-/*! \name Upnp_LogLevel
- *  The user has the option to select 4 different types of debugging levels,
- *  see \c UpnpSetLogLevel. 
- *  The critical level will show only those messages 
- *  which can halt the normal processing of the library, like memory 
- *  allocation errors. The remaining three levels are just for debugging 
- *  purposes.  Packet level will display all the incoming and outgoing 
- *  packets that are flowing between the control point and the device. 
- *  Info Level displays the other important operational information 
- *  regarding the working of the library. If the user selects All, 
- *  then the library displays all the debugging information that it has.
- *    \li \c UPNP_CRITICAL [0]
- *    \li \c UPNP_PACKET [1]
- *    \li \c UPNP_INFO [2]
- *    \li \c UPNP_ALL [3]
- */
-typedef enum Upnp_Module {
-	SSDP,
-	SOAP,
-	GENA,
-	TPOOL,
-	MSERV,
-	DOM,
-	API,
-	HTTP
-} Dbg_Module;
-
-/*@{*/
-typedef enum Upnp_LogLevel_e {
-	UPNP_CRITICAL,
-	UPNP_PACKET,
-	UPNP_INFO,
-	UPNP_ALL
-} Upnp_LogLevel;
-/*@}*/
-
-/*!
- * Default log level : see \c Upnp_LogLevel
- */
-#define UPNP_DEFAULT_LOG_LEVEL	UPNP_ALL
-
-/*!
- * \brief Initialize the log files.
- *
- * \return -1 if fails or UPNP_E_SUCCESS if succeeds.
- */
-#ifdef DEBUG
-int UpnpInitLog(void);
-#else
-static UPNP_INLINE int UpnpInitLog(void)
-{
-	return UPNP_E_SUCCESS;
-}
-#endif
-/*!
- * \brief Set the log level (see \c Upnp_LogLevel).
- */
-#ifdef DEBUG
-void UpnpSetLogLevel(
-	/*! [in] Log level. */
-	Upnp_LogLevel log_level);
-#else
-static UPNP_INLINE void UpnpSetLogLevel(Upnp_LogLevel log_level)
-{
-	return;
-	log_level = log_level;
-}
-#endif
-
-/*!
- * \brief Closes the log files.
- */
-#ifdef DEBUG
-void UpnpCloseLog(void);
-#else
-static UPNP_INLINE void UpnpCloseLog(void)
-{
-}
-#endif
-
-/*!
- * \brief Set the name for error and information files, respectively.
- */
-#ifdef DEBUG
-void UpnpSetLogFileNames(
-	/*! [in] Name of the error file. */
-	const char *ErrFileName,
-	/*! [in] Name of the information file. */
-	const char *InfoFileName);
-#else
-static UPNP_INLINE void UpnpSetLogFileNames(const char *ErrFileName,
-	const char *InfoFileName)
-{
-	return;
-	ErrFileName = ErrFileName;
-	InfoFileName = InfoFileName;
-}
-#endif
-
-/*!
- * \brief Check if the module is turned on for debug and returns the file
- * descriptor corresponding to the debug level
- *
- * \return NULL if the module is turn off for debug otheriwse returns the
- *	right file descriptor.
- */
-#ifdef DEBUG
-FILE *UpnpGetDebugFile(
-	/*! [in] The level of the debug logging. It will decide whether debug
-	 * statement will go to standard output, or any of the log files. */
-	Upnp_LogLevel level,
-	/*! [in] debug will go in the name of this module. */
-	Dbg_Module module);
-#else
-static UPNP_INLINE FILE *UpnpGetDebugFile(Upnp_LogLevel level, Dbg_Module module)
-{
-	return NULL;
-	level = level;
-	module = module;
-}
-#endif
-
-/*!
- * \brief Returns true if debug output should be done in this module.
- *
- * \return Nonzero value if true, zero if false.
- */
-#ifdef DEBUG
-int DebugAtThisLevel(
-	/*! [in] The level of the debug logging. It will decide whether debug
-	 * statement will go to standard output, or any of the log files. */
-	Upnp_LogLevel DLevel,
-	/*! [in] Debug will go in the name of this module. */
-	Dbg_Module Module);
-#else
-static UPNP_INLINE int DebugAtThisLevel(Upnp_LogLevel DLevel, Dbg_Module Module)
-{
-	return 0;
-	DLevel = DLevel;
-	Module = Module;
-}
-#endif
-
-/*!
- * \brief Prints the debug statement either on the standard output or log file
- * along with the information from where this debug statement is coming.
- */
-#ifdef DEBUG
-void UpnpPrintf(
-	/*! [in] The level of the debug logging. It will decide whether debug
-	 * statement will go to standard output, or any of the log files. */
-	Upnp_LogLevel DLevel,
-	/*! [in] debug will go in the name of this module. */
-	Dbg_Module Module,
-	/*! [in] Name of the file from where debug statement is coming. */
-	const char *DbgFileName,
-	/*! [in] Line number of the file from where debug statement is coming. */
-	int DbgLineNo,
-	/*! [in] Printf like format specification. */
-	const char *FmtStr,
-	/*! [in] Printf like Variable number of arguments that will go in the
-	 * debug statement. */
-	...)
-#if (__GNUC__ >= 3)
-	/* This enables printf like format checking by the compiler. */
-	__attribute__ ((format(__printf__, 5, 6)))
-#endif
-	;
-#else /* DEBUG */
-static UPNP_INLINE void UpnpPrintf(Upnp_LogLevel DLevel, Dbg_Module Module,
-	const char *DbgFileName, int DbgLineNo, const char *FmtStr, ...)
-{
-	return;
-	DLevel = DLevel;
-	Module = Module;
-	DbgFileName = DbgFileName;
-	DbgLineNo = DbgLineNo;
-	FmtStr = FmtStr;
-}
-#endif /* DEBUG */
-
-/*!
- * \brief Writes the file name and file number from where debug statement is
- * coming to the log file.
- */
-#ifdef DEBUG
-void UpnpDisplayFileAndLine(
-	/*! [in] File descriptor where line number and file name will be
-	 * written. */
-	FILE * fd,
-	/*! [in] Name of the file. */
-	const char *DbgFileName,
-	/*! [in] Line number of the file. */
-	int DbgLineNo);
-#else
-static UPNP_INLINE void UpnpDisplayFileAndLine(FILE *fd,
-	const char *DbgFileName, int DbgLineNo)
-{
-	return;
-	fd = fd;
-	DbgFileName = DbgFileName;
-	DbgLineNo = DbgLineNo;
-}
-#endif
-
-/*!
- * \brief Writes the buffer in the file as per the requested banner
- */
-#ifdef DEBUG
-void UpnpDisplayBanner(
-	/*! [in] file descriptor where the banner will be written. */
-	FILE * fd,
-	/*! [in] The buffer that will be written. */
-	const char **lines,
-	/*! [in] Size of the buffer. */
-	size_t size,
-	/*! [in] This parameter provides the width of the banner. */
-	size_t starlength);
-#else
-static UPNP_INLINE void UpnpDisplayBanner(FILE *fd, const char **lines,
-	size_t size, int starlength)
-{
-	return;
-	fd = fd;
-	lines = lines;
-	size = size;
-	starlength = starlength;
-}
-#endif
-
-/*@}*/
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* UPNP_DEBUG_H */

+ 0 - 290
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnptools.h

@@ -1,290 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * * Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * * Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * * Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-
-#ifndef UPNP_TOOLS_H
-#define UPNP_TOOLS_H
-
-
-/*!
- * \file
- *
- * \defgroup UPnPTools Optional Tool API
- *
- * \brief Additional, optional utility API that can be helpful in writing
- * applications.
- *
- * This additional API can be compiled out in order to save code size in the
- * library. Refer to the file README for details.
- *
- * @{
- */
-
-
-#include "ixml.h" /* for IXML_Document */
-#include "upnpconfig.h"	/* for UPNP_HAVE_TOOLS */
-
-
-/* Function declarations only if tools compiled into the library */
-#if UPNP_HAVE_TOOLS
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*!
- * \brief Converts an SDK error code into a string error message suitable for
- * display. The memory returned from this function should NOT be freed.
- *
- * \return An ASCII text string representation of the error message associated
- * 	with the error code or the string "Unknown error code"
- */
-EXPORT_SPEC const char *UpnpGetErrorMessage(
-	/*! [in] The SDK error code to convert. */
-	int errorcode);
-
-
-/*!
- * \brief Combines a base URL and a relative URL into a single absolute URL.
- *
- * The memory for \b AbsURL needs to be allocated by the caller and must
- * be large enough to hold the \b BaseURL and \b RelURL combined.
- *
- * \return An integer representing one of the following:
- *	\li <tt>UPNP_E_SUCCESS</tt>: The operation completed successfully.
- *	\li <tt>UPNP_E_INVALID_PARAM</tt>: \b RelURL is <tt>NULL</tt>.
- *	\li <tt>UPNP_E_INVALID_URL</tt>: The \b BaseURL / \b RelURL 
- *              combination does not form a valid URL.
- *	\li <tt>UPNP_E_OUTOF_MEMORY</tt>: Insufficient resources exist to 
- *              complete this operation.
- */
-EXPORT_SPEC int UpnpResolveURL(
-	/*! [in] The base URL to combine. */
-	const char *BaseURL,
-	/*! [in] The relative URL to \b BaseURL. */
-	const char *RelURL,
-	/*! [out] A pointer to a buffer to store the absolute URL. */
-	char *AbsURL);
-
-
-/*!
- * \brief Combines a base URL and a relative URL into a single absolute URL.
- *
- * The memory for \b AbsURL becomes owned by the caller and should be freed
- * later.
- *
- * \return An integer representing one of the following:
- *	\li <tt>UPNP_E_SUCCESS</tt>: The operation completed successfully.
- *	\li <tt>UPNP_E_INVALID_PARAM</tt>: \b RelURL is <tt>NULL</tt>.
- *	\li <tt>UPNP_E_INVALID_URL</tt>: The \b BaseURL / \b RelURL 
- *              combination does not form a valid URL.
- *	\li <tt>UPNP_E_OUTOF_MEMORY</tt>: Insufficient resources exist to 
- *              complete this operation.
- */
-EXPORT_SPEC int UpnpResolveURL2(
-	/*! [in] The base URL to combine. */
-	const char *BaseURL,
-	/*! [in] The relative URL to \b BaseURL. */
-	const char *RelURL,
-	/*! [out] A pointer to a pointer to a buffer to store the
-	 * absolute URL. Must be freed later by the caller. */
-	char **AbsURL);
-
-
-/*!
- * \brief Creates an action request packet based on its input parameters
- * (status variable name and value pair).
- *
- * Any number of input parameters can be passed to this function but every
- * input variable name should have a matching value argument. 
- *
- * It is a wrapper function that calls makeAction() function to create the
- * action request.
- * 
- * \return The action node of \b Upnp_Document type or <tt>NULL</tt> if the
- * 	operation failed.
- */
-EXPORT_SPEC IXML_Document *UpnpMakeAction(
-	/*! [in] Name of the action request or response. */
-	const char *ActionName,
-	/*! [in] The service type. */
-	const char *ServType,
-	/*! [in] Number of argument pairs to be passed. */
-	int NumArg,
-	/*! [in] pointer to the first argument. */
-	const char *Arg,
-	/*! [in] Argument list. */
-	...);
-
-
-/*!
- * \brief Ceates an action response packet based on its output parameters
- * (status variable name and value pair).
- *
- * Any number of input parameters can be passed to this function but every
- * output variable name should have a matching value argument. 
- *   
- * It is a wrapper function that calls makeAction() function to create the
- * action request.
- * 
- * \return The action node of \b Upnp_Document type or <tt>NULL</tt> if the
- * 	operation failed.
- */
-EXPORT_SPEC IXML_Document *UpnpMakeActionResponse(
-	/*! [in] The action name. */
-	const char *ActionName,
-	/*! [in] The service type.. */
-	const char *ServType,
-	/*! [in] The number of argument pairs passed. */
-	int NumArg,
-	/*! [in] The status variable name and value pair. */
-	const char *Arg,
-	/*! [in] Other status variable name and value pairs. */
-	...);
-
-
-/*!
- * \brief Adds the argument in the action request.
- * 
- * This API is specially suitable inside a loop to add any number input
- * parameters into an existing action. If no action document exists in the
- * beginning then a <b>Upnp_Document variable initialized with <tt>NULL</tt></b>
- * should be passed as a parameter.
- *
- * It is a wrapper function that calls addToAction() function to add the
- * argument in the action request.
- * 
- * \return An integer representing one of the following:
- *	\li <tt>UPNP_E_SUCCESS</tt>: The operation completed successfully.
- *	\li <tt>UPNP_E_INVALID_PARAM</tt>: One or more of the parameters are invalid.
- *	\li <tt>UPNP_E_OUTOF_MEMORY</tt>: Insufficient resources exist to
- *		complete this operation.
- */
-EXPORT_SPEC int UpnpAddToAction(
-	/*! [in,out] A pointer to store the action document node. */
-	IXML_Document **ActionDoc,
-	/*! [in] The action name. */
-	const char *ActionName,
-	/*! [in] The service type. */
-	const char *ServType,
-	/*! [in] The status variable name. */
-	const char *ArgName,
-	/*! [in] The status variable value. */
-	const char *ArgVal);
-
-
-/*!
- * \brief Creates an action response packet based on its output parameters
- * (status variable name and value pair).
- *
- * This API is especially suitable inside a loop to add any number of input
- * parameters into an existing action response. If no action document exists
- * in the beginning, a \b Upnp_Document variable initialized with <tt>NULL</tt>
- * should be passed as a parameter.
- *
- * It is a wrapper function that calls addToAction() function to add the
- * argument in the action request.
- * 
- * \return An integer representing one of the following:
- *	\li <tt>UPNP_E_SUCCESS</tt>: The operation completed successfully.
- *	\li <tt>UPNP_E_INVALID_PARAM</tt>: One or more of the parameters are invalid.
- *	\li <tt>UPNP_E_OUTOF_MEMORY</tt>: Insufficient resources exist to
- *		complete this operation.
- */
-EXPORT_SPEC int UpnpAddToActionResponse(
-	/*! [in,out] Pointer to a document to store the action document node. */
-        IXML_Document **ActionResponse, 
-	/*! [in] The action name. */
-        const char *ActionName,
-	/*! [in] The service type. */
-        const char *ServType,
-	/*! [in] The status variable name. */
-        const char *ArgName,
-	/*! [in] The status variable value. */
-        const char *ArgVal);
-
-
-/*!
- * \brief Creates a property set message packet.
- *
- * Any number of input parameters can be passed to this function but every
- * input variable name should have a matching value input argument.
- *  
- * \return <tt>NULL</tt> on failure, or the property-set document node.
- */
-EXPORT_SPEC IXML_Document *UpnpCreatePropertySet(
-	/*! [in] The number of argument pairs passed. */
-	int NumArg,
-	/*! [in] The status variable name and value pair. */
-	const char *Arg,
-	/*! [in] Variable sized list with the rest of the parameters. */
-	...);
-
-
-/*!
- * \brief Can be used when an application needs to transfer the status of many
- * variables at once.
- *
- * It can be used (inside a loop) to add some extra status variables into an
- * existing property set. If the application does not already have a property
- * set document, the application should create a variable initialized with
- * <tt>NULL</tt> and pass that as the first parameter.
- *  
- * \return An integer representing one of the following:
- *	\li <tt>UPNP_E_SUCCESS</tt>: The operation completed successfully.
- *	\li <tt>UPNP_E_INVALID_PARAM</tt>: One or more of the parameters are invalid.
- *	\li <tt>UPNP_E_OUTOF_MEMORY</tt>: Insufficient resources exist to
- *		complete this operation.
- */
-EXPORT_SPEC int UpnpAddToPropertySet(
-	/*! [in,out] A pointer to the document containing the property set document node. */
-	IXML_Document **PropSet,
-	/*! [in] The status variable name. */
-	const char *ArgName,
-	/*! [in] The status variable value. */
-	const char *ArgVal);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-/*! @} */
-
-
-#endif /* UPNP_HAVE_TOOLS */
-
-
-#endif /* UPNP_TOOLS_H */
-

+ 0 - 141
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/upnputil.h

@@ -1,141 +0,0 @@
-#ifndef UTIL_H
-#define UTIL_H
-
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation
- * All rights reserved.
- * Copyright (c) 2012 France Telecom All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-/*!
- * \file
- */
-
-#include "upnp.h"
-#include <errno.h>
-
-/* usually used to specify direction of parameters in functions */
-#ifndef IN
-	#define IN
-#endif
-
-#ifndef OUT
-	#define OUT
-#endif
-
-#ifndef INOUT
-	#define INOUT
-#endif
-
-
-#define GEMD_OUT_OF_MEMORY -1
-#define EVENT_TIMEDOUT -2
-#define EVENT_TERMINATE	-3
-
-/*! boolean type in C. */
-#ifndef TRUE
-	#define TRUE 1
-#endif
-#ifndef FALSE
-	#define FALSE 0
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*!
- * \brief Copy no of bytes spcified by the LINE_SIZE constant, from the
- * source buffer. Null terminate the destination buffer.
- */
-void linecopy(
-	/*! [out] output buffer. */
-	char dest[LINE_SIZE],
-	/*! [in] input buffer. */
-	const char *src);
-
-/*!
- * \brief Copy no of bytes spcified by the NAME_SIZE constant, from the
- * source buffer. Null terminate the destination buffer
- */
-void namecopy(
-	/*! [out] output buffer. */
-	char dest[NAME_SIZE],
-	/*! [in] input buffer. */
-	const char *src);
-
-/*!
- * \brief Determine if the srclen passed in paramter is less than the
- * permitted LINE_SIZE. If it is use the passed parameter, if not
- * use the permitted LINE_SIZE as the length parameter.
- *
- * Copy no of bytes spcified by the LINE_SIZE constant, from the source
- * buffer. Null terminate the destination buffer.
- */
-void linecopylen(
-	/*! [out] output buffer. */
-	char dest[LINE_SIZE],
-	/*! [in] input buffer. */
-	const char *src,
-	/*! [in] bytes to be copied. */
-	size_t srclen);
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Size of the errorBuffer variable, passed to the strerror_r() function */
-#define ERROR_BUFFER_LEN (size_t)256
-
-/* C specific */
-/* VC needs these in C++ mode too (do other compilers?) */
-#if !defined(__cplusplus) || defined(UPNP_USE_MSVCPP)
-	#ifdef WIN32
-		#ifndef S_ISREG
-			#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
-		#endif
-		#ifndef S_ISDIR
-			#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-		#endif
-		#ifndef EADDRINUSE		/* VS2010 has this defined */
-			#define EADDRINUSE		WSAEADDRINUSE
-		#endif
-		#define strcasecmp		stricmp
-		#define strncasecmp		strnicmp
-		#define sleep(a)		Sleep((a)*1000)
-		#define usleep(a)		Sleep((a)/1000)
-		#define strerror_r(a,b,c)	(strerror_s((b),(c),(a)))
-	#else
-		#define max(a, b)   (((a)>(b))? (a):(b))
-		#define min(a, b)   (((a)<(b))? (a):(b))
-	#endif /* WIN32 */
-#endif /* !defined(__cplusplus) || defined(UPNP_USE_MSVCPP) */
-
-#endif /* UTIL_H */
-

+ 0 - 554
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/uri.h

@@ -1,554 +0,0 @@
-/*******************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- ******************************************************************************/
-
-#ifndef GENLIB_NET_URI_H
-#define GENLIB_NET_URI_H
-
-/*!
- * \file
- */
-
-#if !defined(WIN32)
-	#include <sys/param.h>
-#endif
-
-#include "UpnpGlobal.h" /* for */
-#include "UpnpInet.h"
-
-#include <ctype.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <time.h>
-
-#ifdef WIN32
-	#ifndef UPNP_USE_MSVCPP
-		/* VC Winsocks2 includes these functions */
-		#include "inet_pton.h"
-	#endif
-#else
-	#include <netdb.h>      /* for struct addrinfo */
-#endif
-
-#ifdef WIN32
-	#define strncasecmp strnicmp
-#else
-	/* Other systems have strncasecmp */
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*! length for HTTP DATE: "DATE: Sun, 01 Jul 2000 08:15:23 GMT<cr><lf>" */
-#define HTTP_DATE_LENGTH 37
-
-#define SEPARATORS "()<>@,;:\\\"/[]?={} \t"
-#define MARK "-_.!~*'()"
-
-/*! added {} for compatibility */
-#define RESERVED ";/?:@&=+$,{}"
-
-#define HTTP_SUCCESS 1
-#define FALSE 0
-#define TAB 9
-#define CR 13
-#define LF 10
-#define SOCKET_BUFFER_SIZE 5000
-
-enum hostType {
-	HOSTNAME,
-	IPv4address
-};
-
-enum pathType {
-	ABS_PATH,
-	REL_PATH,
-	OPAQUE_PART
-};
-
-#ifdef WIN32
-	/* there is a conflict in windows with other symbols. */
-	enum uriType  {
-		absolute,
-		relative
-	};
-#else
-	enum uriType  {
-		ABSOLUTE,
-		RELATIVE
-	};
-#endif
-
-/*! 
- * \brief Buffer used in parsinghttp messages, urls, etc. generally this simply
- * holds a pointer into a larger array.
- */
-typedef struct TOKEN {
-	const char *buff;
-	size_t size;
-} token;
-
-/*!
- * \brief Represents a host port: e.g. "127.127.0.1:80" text is a token
- * pointing to the full string representation.
- */
-typedef struct HOSTPORT {
-	/*! Full host port. */
-	token text;
-	/* Network Byte Order */
-	struct sockaddr_storage IPaddress;
-} hostport_type;
-
-/*!
- * \brief Represents a URI used in parse_uri and elsewhere
- */
-typedef struct URI{
-	enum uriType type;
-	token scheme;
-	enum pathType path_type;
-	token pathquery;
-	token fragment;
-	hostport_type hostport;
-} uri_type;
-
-/*!
- * \brief Represents a list of URLs as in the "callback" header of SUBSCRIBE
- * message in GENA. "char *" URLs holds dynamic memory.
- */
-typedef struct URL_LIST {
-	/*! */
-	size_t size;
-	/*! All the urls, delimited by <> */
-	char *URLs;
-	/*! */
-	uri_type *parsedURLs;
-} URL_list;
-
-/*!
- * \brief Replaces an escaped sequence with its unescaped version as in
- * http://www.ietf.org/rfc/rfc2396.txt  (RFC explaining URIs)
- *
- * Size of array is NOT checked (MUST be checked by caller)
- *
- * \note This function modifies the string. If the sequence is an escaped
- * sequence it is replaced, the other characters in the string are shifted
- * over, and NULL characters are placed at the end of the string.
- *
- * \return 
- */
-int replace_escaped(
-	/*! [in,out] String of characters. */
-	char *in,
-	/*! [in] Index at which to start checking the characters. */
-	size_t index,
-	/*! [out] . */
-	size_t *max);
-
-/*!
- * \brief Copies one URL_list into another.
- *
- * This includes dynamically allocating the out->URLs field (the full string),
- * and the structures used to hold the parsedURLs. This memory MUST be freed
- * by the caller through: free_URL_list(&out).
- *
- * \return
- * 	\li HTTP_SUCCESS - On Success.
- * 	\li UPNP_E_OUTOF_MEMORY - On Failure to allocate memory.
- */
-int copy_URL_list(
-	/*! [in] Source URL list. */
-	URL_list *in,
-	/*! [out] Destination URL list. */
-	URL_list *out);
-
-/*!
- * \brief Frees the memory associated with a URL_list.
- *
- * Frees the dynamically allocated members of of list. Does NOT free the
- * pointer to the list itself ( i.e. does NOT free(list)).
- */
-void free_URL_list(
-	/*! [in] URL list object. */
-	URL_list *list);
-
-/*!
- * \brief Function useful in debugging for printing a parsed uri.
- */
-#ifdef DEBUG
-void print_uri(
-	/*! [in] URI object to print. */
-	uri_type *in);
-#else
-static UPNP_INLINE void print_uri(uri_type *in)
-{
-	return;
-	in = in;
-}
-#endif
-
-/*!
- * \brief Function useful in debugging for printing a token.
- */
-#ifdef DEBUG
-void print_token(
-	/*! [in] Token object to print. */
-	token *in);
-#else
-static UPNP_INLINE void print_token(
-	/*! [in] Token object to print. */
-	token *in)
-{
-	return;
-	in = in;
-}
-#endif
-
-/*!
- * \brief Compares buffer in the token object with the buffer in in2.
- *
- * \return 
- * 	\li < 0, if string1 is less than string2.
- * 	\li == 0, if string1 is identical to string2 .
- * 	\li > 0, if string1 is greater than string2.
- */
-int token_string_casecmp(
-	/*! [in] Token object whose buffer is to be compared. */
-	token *in1,
-	/*! [in] String of characters to compare with. */
-	const char *in2);
-
-/*!
- * \brief Compares a null terminated string to a token (exact).
- *
- * \return 
- * 	\li < 0, if string1 is less than string2.
- * 	\li == 0, if string1 is identical to string2 .
- * 	\li > 0, if string1 is greater than string2.
- */
-int token_string_cmp(
-	/*! [in] Token object whose buffer is to be compared. */
-	token *in1,
-	/*! [in] String of characters to compare with. */
-	char *in2);
-
-/*!
- * \brief Compares two tokens.
- *
- * \return 
- * 	\li < 0, if string1 is less than string2.
- * 	\li == 0, if string1 is identical to string2 .
- * 	\li > 0, if string1 is greater than string2.
- */
-int token_cmp(
-	/*! [in] First token object whose buffer is to be compared. */
-	token *in1,
-	/*! [in] Second token object used for the comparison. */
-	token *in2);
-
-/*!
- * \brief Removes http escaped characters such as: "%20" and replaces them with
- * their character representation. i.e. "hello%20foo" -> "hello foo".
- *
- * The input IS MODIFIED in place (shortened). Extra characters are replaced
- * with \b NULL.
- *
- * \return UPNP_E_SUCCESS.
- */
-int remove_escaped_chars(
-	/*! [in,out] String of characters to be modified. */
-	char *in,
-	/*! [in,out] Size limit for the number of characters. */
-	size_t *size);
-
-/*!
- * \brief Removes ".", and ".." from a path.
- *
- * If a ".." can not be resolved (i.e. the .. would go past the root of the
- * path) an error is returned.
- *
- * The input IS modified in place.)
- *
- * \note Examples
- * 	char path[30]="/../hello";
- * 	remove_dots(path, strlen(path)) -> UPNP_E_INVALID_URL
- * 	char path[30]="/./hello";
- * 	remove_dots(path, strlen(path)) -> UPNP_E_SUCCESS, 
- * 	in = "/hello"
- * 	char path[30]="/./hello/foo/../goodbye" -> 
- * 	UPNP_E_SUCCESS, in = "/hello/goodbye"
- *
- * \return 
- * 	\li UPNP_E_SUCCESS - On Success.
- * 	\li UPNP_E_OUTOF_MEMORY - On failure to allocate memory.
- * 	\li UPNP_E_INVALID_URL - Failure to resolve URL.
- */
-int remove_dots(
-	/*! [in] String of characters from which "dots" have to be removed. */
-	char *in,
-	/*! [in] Size limit for the number of characters. */
-	size_t size);
-
-/*!
- * \brief resolves a relative url with a base url returning a NEW (dynamically
- * allocated with malloc) full url.
- *
- * If the base_url is \b NULL, then a copy of the  rel_url is passed back if
- * the rel_url is absolute then a copy of the rel_url is passed back if neither
- * the base nor the rel_url are Absolute then NULL is returned. Otherwise it
- * tries and resolves the relative url with the base as described in
- * http://www.ietf.org/rfc/rfc2396.txt (RFCs explaining URIs).
- *
- * The resolution of '..' is NOT implemented, but '.' is resolved.
- *
- * \return 
- */
-char *resolve_rel_url(
-	/*! [in] Base URL. */
-	char *base_url,
-	/*! [in] Relative URL. */
-	char *rel_url);
-
-/*!
- * \brief Parses a uri as defined in http://www.ietf.org/rfc/rfc2396.txt
- * (RFC explaining URIs).
- *
- * Handles absolute, relative, and opaque uris. Parses into the following
- * pieces: scheme, hostport, pathquery, fragment (path and query are treated
- * as one token)
- *
- * Caller should check for the pieces they require.
- *
- * \return
- */
-int parse_uri(
-	/*! [in] Character string containing uri information to be parsed. */
-	const char *in,
-	/*! [in] Maximum limit on the number of characters. */
-	size_t max,
-	/*! [out] Output parameter which will have the parsed uri information. */
-	uri_type *out);
-
-/*!
- * \brief Same as parse_uri(), except that all strings are unescaped
- * (%XX replaced by chars).
- *
- * \note This modifies 'pathquery' and 'fragment' parts of the input.
- *
- * \return 
- */
-int parse_uri_and_unescape(
-	/*! [in] Character string containing uri information to be parsed. */
-	char *in,
-	/*! [in] Maximum limit on the number of characters. */
-	size_t max,
-	/*! [out] Output parameter which will have the parsed uri information. */
-	uri_type *out);
-
-/*!
- * \brief 
- *
- * \return 
- */
-int parse_token(
-	/*! [in] . */
-	char *in,
-	/*! [out] . */
-	token *out,
-	/*! [in] . */
-	int max_size);
-
-/* Commented #defines, functions and typdefs */
-
-#if 0
-#define HTTP_E_BAD_URL UPNP_E_INVALID_URL
-#define HTTP_E_READ_SOCKET  UPNP_E_SOCKET_READ
-#define HTTP_E_BIND_SOCKET  UPNP_E_SOCKET_BIND
-#define HTTP_E_WRITE_SOCKET  UPNP_E_SOCKET_WRITE
-#define HTTP_E_CONNECT_SOCKET  UPNP_E_SOCKET_CONNECT
-#define HTTP_E_SOCKET    UPNP_E_OUTOF_SOCKET
-#define HTTP_E_BAD_RESPONSE UPNP_E_BAD_RESPONSE
-#define HTTP_E_BAD_REQUEST UPNP_E_BAD_REQUEST
-#define HTTP_E_BAD_IP_ADDRESS UPNP_E_INVALID_URL
-
-#define RESPONSE_TIMEOUT 30
-#endif
-
-#if 0
-/*!
- * Buffer used to store data read from a socket during an http transfer in
- * function read_bytes.
- */
-typedef struct SOCKET_BUFFER{
-	char buff[SOCKET_BUFFER_SIZE];
-	int size;
-	struct SOCKET_BUFFER *next;
-} socket_buffer;
-
-
-typedef struct HTTP_HEADER {
-	token header;
-	token value;
-	struct HTTP_HEADER * next;
-} http_header;
-
-
-typedef struct HTTP_STATUS_LINE{
-	token http_version;
-	token status_code;
-	token reason_phrase;
-} http_status;
-
-
-typedef struct HTTP_REQUEST_LINE {
-	token http_version;
-	uri_type request_uri;
-	token method;
-} http_request;
-
-
-/*!
- * Represents a parsed HTTP_MESSAGE head_list is dynamically allocated
- */
-typedef struct HTTP_MESSAGE {
-	http_status status;
-	http_request request;
-	http_header * header_list;
-	token content;
-} http_message;
-#endif
-
-
-#if 0
-int transferHTTP(
-	char *request,
-	char *toSend, 
-	int toSendSize,
-	char **out,
-	char *Url);
-
-
-int transferHTTPRaw(
-	char *toSend,
-	int toSendSize, 
-	char **out,
-	char *URL);
-
-
-/*!
- * \brief helper function.
- */
-int transferHTTPparsedURL(
-	char *request, 
-	char *toSend,
-	int toSendSize, 
-	char **out,
-	uri_type *URL);
-
-
-/*!
- * \brief assumes that char * out has enough space ( 38 characters)
- * outputs the current time in the following null terminated string:
- * "DATE: Sun, Jul 06 2000 08:53:01 GMT\r\n"
- */
-void currentTmToHttpDate(
-	char *out);
-
-
-int parse_http_response(
-	char *in,
-	http_message *out,
-	int max_len);
-
-
-int parse_http_request(
-	char *in,
-	http_message *out,
-	int max_len);
-
-
-void print_http_message(
-	http_message *message);
-
-
-int search_for_header(
-	http_message *in,
-	char *header,
-	token *out_value);
-
-
-void print_status_line(
-	http_status *in);
-
-
-void print_request_line(
-	http_request *in);
-
-
-int parse_http_line(
-	char *in,
-	int max_size);
-
-
-int parse_not_LWS(
-	char *in,
-	token *out,
-	int max_size);
-
-
-int parse_LWS(
-	char *in,
-	int max_size);
-
-
-size_t write_bytes(
-	int fd,
-	char *bytes,
-	size_t n,
-	int timeout);
-
-
-void free_http_message(
-	http_message *message);
-
-
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* GENLIB_NET_URI_H */
-

+ 0 - 81
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/urlconfig.h

@@ -1,81 +0,0 @@
-/**************************************************************************
- *
- * Copyright (c) 2000-2003 Intel Corporation 
- * All rights reserved. 
- *
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are met: 
- *
- * - Redistributions of source code must retain the above copyright notice, 
- * this list of conditions and the following disclaimer. 
- * - Redistributions in binary form must reproduce the above copyright notice, 
- * this list of conditions and the following disclaimer in the documentation 
- * and/or other materials provided with the distribution. 
- * - Neither name of Intel Corporation nor the names of its contributors 
- * may be used to endorse or promote products derived from this software 
- * without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- **************************************************************************/
-
-
-#ifndef URLCONFIG_H
-#define URLCONFIG_H
-
-
-#include "UpnpInet.h"
-
-/* functions available only if the web server is included */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/************************************************************************
- * Function: configure_urlbase
- * 
- * Parameters :
- * 	INOUT IXML_Document *doc ;	IXML Description document
- * 	IN const struct sockaddr *serverAddr;	socket address object
- * 		providing the IP address and port information
- * 	IN const char* alias ;		string containing the alias
- * 	IN time_t last_modified ;	time when the XML document was 
- * 		downloaded
- * 	OUT char docURL[LINE_SIZE] ;	buffer to hold the URL of the 
- * 		document.
- * 
- * Description : Configure the full URL for the description document.
- * 	Create the URL document and add alias, description information.
- * 	The doc is added to the web server to be served using the given 
- * 	alias.
- * 
- * Return : int ;
- * 	UPNP_E_SUCCESS - On Success
- * 	UPNP_E_OUTOF_MEMORY - Default Error
- ****************************************************************************/
-int configure_urlbase( INOUT IXML_Document *doc,
-	IN const struct sockaddr* serverAddr,
-	IN const char* alias,
-	IN time_t last_modified,
-	OUT char docURL[LINE_SIZE]);
-
-
-#ifdef __cplusplus
-} /* extern C */
-#endif
-
-
-#endif /* URLCONFIG_H */
-

+ 0 - 86
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/uuid.h

@@ -1,86 +0,0 @@
-#ifndef UUID_H
-#define UUID_H
-
-/*
- * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
- * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
- * Digital Equipment Corporation, Maynard, Mass.
- * Copyright (c) 1998 Microsoft.
- * To anyone who acknowledges that this file is provided "AS IS"
- * without any express or implied warranty: permission to use, copy,
- * modify, and distribute this file for any purpose is hereby
- * granted without fee, provided that the above copyright notices and
- * this notice appears in all source code copies, and that none of
- * the names of Open Software Foundation, Inc., Hewlett-Packard
- * Company, or Digital Equipment Corporation be used in advertising
- * or publicity pertaining to distribution of the software without
- * specific, written prior permission.  Neither Open Software
- * Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment
- * Corporation makes any representations about the suitability of
- * this software for any purpose.
- */
-
-#include "sysdep.h"
-
-/*! . */
-typedef struct _uuid_upnp {
-	/*! . */
-	uint32_t time_low;
-	/*! . */
-	uint16_t time_mid;
-	/*! . */
-	uint16_t time_hi_and_version;
-	/*! . */
-	uint8_t clock_seq_hi_and_reserved;
-	/*! . */
-	uint8_t clock_seq_low;
-	/*! . */
-	uint8_t node[6];
-} uuid_upnp;
-
-/*!
- * \brief Generate a UUID.
- */
-int uuid_create(
-	/*! . */
-	uuid_upnp * id);
-
-/*!
- * \brief Out will be xxxx-xx-xx-xx-xxxxxx format.
- */
-void uuid_unpack(
-	/*! . */
-	uuid_upnp * u,
-	/*! . */
-	char *out);
-
-/*!
- * \brief Create a UUID using a "name" from a "name space"
- */
-void uuid_create_from_name(
-	/*! Resulting UUID. */
-	uuid_upnp * uid,
-	/*! UUID to serve as context, so identical names from different name
-	* spaces generate different UUIDs. */
-	uuid_upnp nsid,
-	/*! The name from which to generate a UUID. */
-	void *name,
-	/*! The length of the name. */
-	int namelen);
-
-/*!
- * \brief Compare two UUID's "lexically".
- *
- * \return
- *	-1   u1 is lexically before u2
- *	 0   u1 is equal to u2
- *	 1   u1 is lexically after u2
- *
- * \note Lexical ordering is not temporal ordering!
- */
-int uuid_compare(
-	/*! . */
-	uuid_upnp * u1,
-	/*! . */
-	uuid_upnp * u2);
-#endif /* UUID_H */

+ 0 - 0
Example/Pods/libASControl/libASControl/Classes/libUPNP.framework/Headers/webserver.h


Some files were not shown because too many files changed in this diff