aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/pair0/pair.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-09 19:24:37 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-10 06:51:58 -0700
commitea65f9503c80c33fb236703a7e81747bcb94666b (patch)
treebe20fb0854295dd28d28c44f5d471506d5f79ecc /src/sp/protocol/pair0/pair.c
parentf41cd6a9edf4b9a680194b3fb4378f39d1ed1f34 (diff)
downloadnng-ea65f9503c80c33fb236703a7e81747bcb94666b.tar.gz
nng-ea65f9503c80c33fb236703a7e81747bcb94666b.tar.bz2
nng-ea65f9503c80c33fb236703a7e81747bcb94666b.zip
header file refactoring for IWYU (protocols)
This changes the header files mostly in the protocols to include directly rather than through the commmon nng_impl.h header. This should lead to faster compiles, and by properly making all includes relative should reduce friction with language servers and other tooling.
Diffstat (limited to 'src/sp/protocol/pair0/pair.c')
-rw-r--r--src/sp/protocol/pair0/pair.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sp/protocol/pair0/pair.c b/src/sp/protocol/pair0/pair.c
index 89bff7ce..bf895858 100644
--- a/src/sp/protocol/pair0/pair.c
+++ b/src/sp/protocol/pair0/pair.c
@@ -8,10 +8,13 @@
// found online at https://opensource.org/licenses/MIT.
//
-#include <stdlib.h>
-
-#include "core/nng_impl.h"
-#include "core/pipe.h"
+#include "../../../core/aio.h"
+#include "../../../core/defs.h"
+#include "../../../core/lmq.h"
+#include "../../../core/message.h"
+#include "../../../core/pipe.h"
+#include "../../../core/pollable.h"
+#include "../../../core/protocol.h"
// Pair protocol. The PAIR protocol is a simple 1:1 messaging pattern.
// While a peer is connected to the server, all other peer connection