mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 14:21:30 +00:00
Consolidate includes
This commit is contained in:
@@ -1,8 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "PlatformSockets.h"
|
|
||||||
#include "PlatformThreads.h"
|
|
||||||
#include "LinkedBlockingQueue.h"
|
|
||||||
#include "RtpReorderQueue.h"
|
|
||||||
|
|
||||||
static SOCKET rtpSocket = INVALID_SOCKET;
|
static SOCKET rtpSocket = INVALID_SOCKET;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "Platform.h"
|
|
||||||
|
|
||||||
static int stage = STAGE_NONE;
|
static int stage = STAGE_NONE;
|
||||||
static ConnListenerConnectionTerminated originalTerminationCallback;
|
static ConnListenerConnectionTerminated originalTerminationCallback;
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "PlatformSockets.h"
|
|
||||||
#include "PlatformThreads.h"
|
|
||||||
|
|
||||||
#include "ByteBuffer.h"
|
|
||||||
|
|
||||||
#include <enet/enet.h>
|
|
||||||
|
|
||||||
// NV control stream packet header for TCP
|
// NV control stream packet header for TCP
|
||||||
typedef struct _NVCTL_TCP_PACKET_HEADER {
|
typedef struct _NVCTL_TCP_PACKET_HEADER {
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "PlatformSockets.h"
|
|
||||||
#include "PlatformThreads.h"
|
|
||||||
#include "LinkedBlockingQueue.h"
|
|
||||||
#include "Input.h"
|
|
||||||
|
|
||||||
static SOCKET inputSock = INVALID_SOCKET;
|
static SOCKET inputSock = INVALID_SOCKET;
|
||||||
static unsigned char currentAesIv[16];
|
static unsigned char currentAesIv[16];
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Limelight.h"
|
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
#include "Limelight.h"
|
||||||
#include "PlatformSockets.h"
|
#include "PlatformSockets.h"
|
||||||
#include "PlatformThreads.h"
|
#include "PlatformThreads.h"
|
||||||
#include "PlatformCrypto.h"
|
#include "PlatformCrypto.h"
|
||||||
#include "Video.h"
|
#include "Video.h"
|
||||||
|
#include "Input.h"
|
||||||
#include "RtpFecQueue.h"
|
#include "RtpFecQueue.h"
|
||||||
|
#include "RtpReorderQueue.h"
|
||||||
|
#include "ByteBuffer.h"
|
||||||
|
|
||||||
#include <enet/enet.h>
|
#include <enet/enet.h>
|
||||||
|
|
||||||
|
|||||||
+1
-7
@@ -1,10 +1,4 @@
|
|||||||
#define _GNU_SOURCE
|
#include "Limelight-internal.h"
|
||||||
|
|
||||||
#include "Platform.h"
|
|
||||||
#include "PlatformThreads.h"
|
|
||||||
#include "PlatformSockets.h"
|
|
||||||
|
|
||||||
#include <enet/enet.h>
|
|
||||||
|
|
||||||
// The maximum amount of time before observing an interrupt
|
// The maximum amount of time before observing an interrupt
|
||||||
// in PltSleepMsInterruptible().
|
// in PltSleepMsInterruptible().
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <psp2/kernel/threadmgr.h>
|
#include <psp2/kernel/threadmgr.h>
|
||||||
#else
|
#else
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#include "PlatformSockets.h"
|
|
||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
|
|
||||||
#define TEST_PORT_TIMEOUT_SEC 3
|
#define TEST_PORT_TIMEOUT_SEC 3
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "RtpFecQueue.h"
|
|
||||||
#include "rs.h"
|
#include "rs.h"
|
||||||
|
|
||||||
#ifdef LC_DEBUG
|
#ifdef LC_DEBUG
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "RtpReorderQueue.h"
|
|
||||||
|
|
||||||
void RtpqInitializeQueue(PRTP_REORDER_QUEUE queue, int maxSize, int maxQueueTimeMs) {
|
void RtpqInitializeQueue(PRTP_REORDER_QUEUE queue, int maxSize, int maxQueueTimeMs) {
|
||||||
memset(queue, 0, sizeof(*queue));
|
memset(queue, 0, sizeof(*queue));
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "Rtsp.h"
|
#include "Rtsp.h"
|
||||||
|
|
||||||
#include <enet/enet.h>
|
|
||||||
|
|
||||||
#define RTSP_TIMEOUT_SEC 10
|
#define RTSP_TIMEOUT_SEC 10
|
||||||
#define RTSP_RETRY_DELAY_MS 500
|
#define RTSP_RETRY_DELAY_MS 500
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include "Platform.h"
|
|
||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "LinkedBlockingQueue.h"
|
|
||||||
#include "Video.h"
|
|
||||||
|
|
||||||
static PLENTRY nalChainHead;
|
static PLENTRY nalChainHead;
|
||||||
static PLENTRY nalChainTail;
|
static PLENTRY nalChainTail;
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include "Limelight-internal.h"
|
#include "Limelight-internal.h"
|
||||||
#include "PlatformSockets.h"
|
|
||||||
#include "PlatformThreads.h"
|
|
||||||
#include "RtpFecQueue.h"
|
|
||||||
|
|
||||||
#define FIRST_FRAME_MAX 1500
|
#define FIRST_FRAME_MAX 1500
|
||||||
#define FIRST_FRAME_TIMEOUT_SEC 10
|
#define FIRST_FRAME_TIMEOUT_SEC 10
|
||||||
|
|||||||
Reference in New Issue
Block a user