Skip to content

Commit 2d6e992

Browse files
committed
update header files
1 parent cb4568e commit 2d6e992

File tree

5 files changed

+6
-18
lines changed

5 files changed

+6
-18
lines changed

xcode/DirectBindingsApp/ldk_net.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ static void *sock_thread_fn(void* arg) {
266266
if (*res.contents.result) {
267267
lockres = pthread_mutex_lock(&handler->sockets_mutex);
268268
assert(lockres == 0);
269-
assert(handler->pollfds[i - 1].fd == pollfds[i].fd); // Only we change fd order!
270-
handler->pollfds[i - 1].events = POLLOUT;
269+
assert(handler->pollfds[i].fd == pollfds[i].fd); // Only we change fd order!
270+
handler->pollfds[i].events = POLLOUT;
271271
lockres = pthread_mutex_unlock(&handler->sockets_mutex);
272272
assert(lockres == 0);
273273
}

xcode/LDKFramework/LDKFramework.xcodeproj/project.pbxproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
07344C8826427F95001CD90E /* LDKExampleClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07344C8626427F95001CD90E /* LDKExampleClass.swift */; };
1515
07344FE626429524001CD90E /* libldk.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07344FE526429524001CD90E /* libldk.a */; };
1616
07344FE926429536001CD90E /* libldk.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07344FE526429524001CD90E /* libldk.a */; };
17-
075E25F426FEFF5A0000A76B /* TCPPeerHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E25F026FEFF5A0000A76B /* TCPPeerHandler.swift */; };
18-
075E25F526FEFF5A0000A76B /* TCPPeerHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E25F026FEFF5A0000A76B /* TCPPeerHandler.swift */; };
1917
075E25F626FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E25F126FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift */; };
2018
075E25F726FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E25F126FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift */; };
2119
075E25F826FEFF5A0000A76B /* ChannelManagerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E25F226FEFF5A0000A76B /* ChannelManagerConstructor.swift */; };
@@ -394,7 +392,6 @@
394392
07344C8626427F95001CD90E /* LDKExampleClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LDKExampleClass.swift; sourceTree = "<group>"; };
395393
07344FCD26428DD2001CD90E /* LDKFramework.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = LDKFramework.modulemap; sourceTree = "<group>"; };
396394
07344FE526429524001CD90E /* libldk.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libldk.a; sourceTree = "<group>"; };
397-
075E25F026FEFF5A0000A76B /* TCPPeerHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TCPPeerHandler.swift; sourceTree = "<group>"; };
398395
075E25F126FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NetGraphMsgHandlerConstructor.swift; sourceTree = "<group>"; };
399396
075E25F226FEFF5A0000A76B /* ChannelManagerConstructor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChannelManagerConstructor.swift; sourceTree = "<group>"; };
400397
075E25F326FEFF5A0000A76B /* UtilMethods.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UtilMethods.swift; sourceTree = "<group>"; };
@@ -830,7 +827,6 @@
830827
075E25EF26FEFF5A0000A76B /* batteries */ = {
831828
isa = PBXGroup;
832829
children = (
833-
075E25F026FEFF5A0000A76B /* TCPPeerHandler.swift */,
834830
075E25F126FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift */,
835831
075E25F226FEFF5A0000A76B /* ChannelManagerConstructor.swift */,
836832
075E25F326FEFF5A0000A76B /* UtilMethods.swift */,
@@ -1572,7 +1568,6 @@
15721568
076D270027FC26F600970AFC /* Result_RoutingFeesDecodeErrorZ.swift in Sources */,
15731569
076D273627FC26F600970AFC /* Result_PaymentSecretNoneZ.swift in Sources */,
15741570
076D26CF27FC26F600970AFC /* Result_RevokeAndACKDecodeErrorZ.swift in Sources */,
1575-
075E25F426FEFF5A0000A76B /* TCPPeerHandler.swift in Sources */,
15761571
076D26BD27FC26F600970AFC /* Result_ChannelConfigDecodeErrorZ.swift in Sources */,
15771572
076D269627FC26F600970AFC /* KeysInterface.swift in Sources */,
15781573
076D279527FC26F700970AFC /* AnnouncementSignatures.swift in Sources */,
@@ -1742,7 +1737,6 @@
17421737
075E25F926FEFF5A0000A76B /* ChannelManagerConstructor.swift in Sources */,
17431738
07344C63264277ED001CD90E /* LDKFrameworkTests.swift in Sources */,
17441739
07344C8826427F95001CD90E /* LDKExampleClass.swift in Sources */,
1745-
075E25F526FEFF5A0000A76B /* TCPPeerHandler.swift in Sources */,
17461740
075E25F726FEFF5A0000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */,
17471741
0767D03F2698BB9800BEB4CC /* ldk_net.c in Sources */,
17481742
075E25FB26FEFF5A0000A76B /* UtilMethods.swift in Sources */,

xcode/LDKFramework/ldk_net.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ static void *sock_thread_fn(void* arg) {
266266
if (*res.contents.result) {
267267
lockres = pthread_mutex_lock(&handler->sockets_mutex);
268268
assert(lockres == 0);
269-
assert(handler->pollfds[i - 1].fd == pollfds[i].fd); // Only we change fd order!
270-
handler->pollfds[i - 1].events = POLLOUT;
269+
assert(handler->pollfds[i].fd == pollfds[i].fd); // Only we change fd order!
270+
handler->pollfds[i].events = POLLOUT;
271271
lockres = pthread_mutex_unlock(&handler->sockets_mutex);
272272
assert(lockres == 0);
273273
}

xcode/LDKFramework_Mac/LDKFramework.xcodeproj/project.pbxproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
07344C65264277ED001CD90E /* LDKFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = 07344C57264277ED001CD90E /* LDKFramework.h */; settings = {ATTRIBUTES = (Public, ); }; };
1313
07344C8726427F95001CD90E /* LDKExampleClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07344C8626427F95001CD90E /* LDKExampleClass.swift */; };
1414
07344C8826427F95001CD90E /* LDKExampleClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07344C8626427F95001CD90E /* LDKExampleClass.swift */; };
15-
075E294926FEFFAF0000A76B /* TCPPeerHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E294526FEFFAF0000A76B /* TCPPeerHandler.swift */; };
16-
075E294A26FEFFAF0000A76B /* TCPPeerHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E294526FEFFAF0000A76B /* TCPPeerHandler.swift */; };
1715
075E294B26FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E294626FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift */; };
1816
075E294C26FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E294626FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift */; };
1917
075E294D26FEFFAF0000A76B /* ChannelManagerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075E294726FEFFAF0000A76B /* ChannelManagerConstructor.swift */; };
@@ -385,7 +383,6 @@
385383
07344C64264277ED001CD90E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
386384
07344C8626427F95001CD90E /* LDKExampleClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LDKExampleClass.swift; sourceTree = "<group>"; };
387385
07344FCD26428DD2001CD90E /* LDKFramework.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = LDKFramework.modulemap; sourceTree = "<group>"; };
388-
075E294526FEFFAF0000A76B /* TCPPeerHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TCPPeerHandler.swift; sourceTree = "<group>"; };
389386
075E294626FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NetGraphMsgHandlerConstructor.swift; sourceTree = "<group>"; };
390387
075E294726FEFFAF0000A76B /* ChannelManagerConstructor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChannelManagerConstructor.swift; sourceTree = "<group>"; };
391388
075E294826FEFFAF0000A76B /* UtilMethods.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UtilMethods.swift; sourceTree = "<group>"; };
@@ -812,7 +809,6 @@
812809
075E294426FEFFAF0000A76B /* batteries */ = {
813810
isa = PBXGroup;
814811
children = (
815-
075E294526FEFFAF0000A76B /* TCPPeerHandler.swift */,
816812
075E294626FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift */,
817813
075E294726FEFFAF0000A76B /* ChannelManagerConstructor.swift */,
818814
075E294826FEFFAF0000A76B /* UtilMethods.swift */,
@@ -1536,7 +1532,6 @@
15361532
076D2A4427FC271400970AFC /* TrustedClosingTransaction.swift in Sources */,
15371533
076D293A27FC271300970AFC /* Option_CVec_NetAddressZZ.swift in Sources */,
15381534
076D29C027FC271400970AFC /* Result_NoneErrorZ.swift in Sources */,
1539-
075E294926FEFFAF0000A76B /* TCPPeerHandler.swift in Sources */,
15401535
076D29AE27FC271400970AFC /* Result_COption_EventZDecodeErrorZ.swift in Sources */,
15411536
076D298C27FC271400970AFC /* Result_AnnouncementSignaturesDecodeErrorZ.swift in Sources */,
15421537
076D298127FC271400970AFC /* Result_PaymentSecretAPIErrorZ.swift in Sources */,
@@ -1686,7 +1681,6 @@
16861681
075E294E26FEFFAF0000A76B /* ChannelManagerConstructor.swift in Sources */,
16871682
07344C63264277ED001CD90E /* LDKFrameworkTests.swift in Sources */,
16881683
07344C8826427F95001CD90E /* LDKExampleClass.swift in Sources */,
1689-
075E294A26FEFFAF0000A76B /* TCPPeerHandler.swift in Sources */,
16901684
0767D03F2698BB9800BEB4CC /* ldk_net.c in Sources */,
16911685
075E294C26FEFFAF0000A76B /* NetGraphMsgHandlerConstructor.swift in Sources */,
16921686
075E295026FEFFAF0000A76B /* UtilMethods.swift in Sources */,

xcode/LDKFramework_Mac/ldk_net.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ static void *sock_thread_fn(void* arg) {
266266
if (*res.contents.result) {
267267
lockres = pthread_mutex_lock(&handler->sockets_mutex);
268268
assert(lockres == 0);
269-
assert(handler->pollfds[i - 1].fd == pollfds[i].fd); // Only we change fd order!
270-
handler->pollfds[i - 1].events = POLLOUT;
269+
assert(handler->pollfds[i].fd == pollfds[i].fd); // Only we change fd order!
270+
handler->pollfds[i].events = POLLOUT;
271271
lockres = pthread_mutex_unlock(&handler->sockets_mutex);
272272
assert(lockres == 0);
273273
}

0 commit comments

Comments
 (0)