Sunshine/sunshine/stream.h

29 lines
410 B
C
Raw Normal View History

//
// Created by loki on 6/5/19.
//
#ifndef SUNSHINE_STREAM_H
#define SUNSHINE_STREAM_H
2019-12-17 22:16:28 +00:00
#include <atomic>
#include "crypto.h"
2019-12-15 22:10:44 +00:00
#include "thread_safe.h"
namespace stream {
2019-12-15 22:10:44 +00:00
struct launch_session_t {
crypto::aes_t gcm_key;
crypto::aes_t iv;
2019-12-17 23:32:10 +00:00
bool has_process;
2019-12-15 22:10:44 +00:00
};
2019-12-15 22:10:44 +00:00
extern safe::event_t<launch_session_t> launch_event;
2019-12-17 22:16:28 +00:00
extern std::atomic_bool has_session;
void rtpThread();
}
#endif //SUNSHINE_STREAM_H