Skip to content

Commit

Permalink
hide dispatch_queue.h
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 11, 2024
1 parent c408e30 commit 145e7d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/darwin/nw_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
#include <aws/io/private/event_loop_impl.h>

#include <Network/Network.h>
#include <aws/io/private/dispatch_queue.h>
#include <aws/io/private/tls_channel_handler_shared.h>

#include <arpa/inet.h>
#include <sys/socket.h>

#include "dispatch_queue.h"

static int s_determine_socket_error(int error) {
switch (error) {
case ECONNREFUSED:
Expand Down
3 changes: 2 additions & 1 deletion source/darwin/secure_transport_tls_channel_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <aws/io/channel.h>
#include <aws/io/file_utils.h>
#include <aws/io/private/dispatch_queue.h>
#include <aws/io/private/pki_utils.h>
#include <aws/io/private/tls_channel_handler_shared.h>
#include <aws/io/statistics.h>
Expand All @@ -25,6 +24,8 @@
#include <dlfcn.h>
#include <math.h>

#include "dispatch_queue.h"

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-variable"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Expand Down
1 change: 0 additions & 1 deletion source/windows/iocp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ int aws_socket_init_winsock(

return err;
}
#endif // AWS_USE_IO_COMPLETION_PORTS

static void s_socket_clean_up(struct aws_socket *socket) {
if (!socket->impl) {
Expand Down
2 changes: 1 addition & 1 deletion tests/socket_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ static int s_test_socket_with_bind_to_invalid_interface(struct aws_allocator *al
options.domain = AWS_SOCKET_IPV4;
strncpy(options.network_interface_name, "invalid", AWS_NETWORK_INTERFACE_NAME_MAX);
struct aws_socket outgoing;
#if (defined(AWS_OS_APPLE) && defined(AWS_USE_KQUEUE)) || defined(AWS_OS_LINUX)
#if (defined(AWS_OS_APPLE) && !defined(AWS_USE_APPLE_NETWORK_FRAMEWORK)) || defined(AWS_OS_LINUX)
ASSERT_ERROR(AWS_IO_SOCKET_INVALID_OPTIONS, aws_socket_init(&outgoing, allocator, &options));
#else
ASSERT_ERROR(AWS_ERROR_PLATFORM_NOT_SUPPORTED, aws_socket_init(&outgoing, allocator, &options));
Expand Down

0 comments on commit 145e7d7

Please sign in to comment.