Sunshine/sunshine/stream.h
2019-12-17 23:16:28 +01:00

27 lines
389 B
C++

//
// Created by loki on 6/5/19.
//
#ifndef SUNSHINE_STREAM_H
#define SUNSHINE_STREAM_H
#include <atomic>
#include "crypto.h"
#include "thread_safe.h"
namespace stream {
struct launch_session_t {
crypto::aes_t gcm_key;
crypto::aes_t iv;
};
extern safe::event_t<launch_session_t> launch_event;
extern std::atomic_bool has_session;
void rtpThread();
}
#endif //SUNSHINE_STREAM_H