Move default port into wivrn_config.h

This commit is contained in:
Patrick Nicolas
2025-10-05 20:26:07 +02:00
parent b81d010841
commit 39b7c6c45a
6 changed files with 8 additions and 6 deletions
-1
View File
@@ -29,7 +29,6 @@
#include "utils/i18n.h"
#include "vk/check.h"
#include "wifi_lock.h"
#include "wivrn_packets.h"
#include "xr/actionset.h"
#include "xr/check.h"
#include "xr/htc_exts.h"
-1
View File
@@ -28,7 +28,6 @@
#include "wifi_lock.h"
#include "wivrn_config.h"
#include "wivrn_discover.h"
#include "wivrn_packets.h"
#include "xr/face_tracker.h"
#include <vulkan/vulkan_raii.hpp>
#include <openxr/openxr.h>
+6
View File
@@ -19,6 +19,12 @@
#pragma once
namespace wivrn
{
// Default port for server to listen, both TCP and UDP
static const int default_port = 9757;
} // namespace wivrn
#cmakedefine01 WIVRN_USE_NVENC
#cmakedefine01 WIVRN_USE_VAAPI
#cmakedefine01 WIVRN_USE_VULKAN_ENCODE
-3
View File
@@ -38,9 +38,6 @@
namespace wivrn
{
// Default port for server to listen, both TCP and UDP
static const int default_port = 9757;
static constexpr int protocol_revision = 2;
enum class device_id : uint8_t
+1 -1
View File
@@ -19,8 +19,8 @@
#include "accept_connection.h"
#include "wivrn_config.h"
#include "wivrn_ipc.h"
#include "wivrn_packets.h"
#include "wivrn_sockets.h"
#include <sys/poll.h>
+1
View File
@@ -31,6 +31,7 @@
#include <magic_enum.hpp>
#include "smp.h"
#include "wivrn_config.h"
#include "wivrn_packets.h"
#if WIRESHARK_VERSION_MAJOR > 4 || (WIRESHARK_VERSION_MAJOR == 4 && WIRESHARK_VERSION_MINOR >= 4)