Fix header includes to be a bit more consistent
This commit is contained in:
parent
67aec0b1b6
commit
db30be38c5
31 changed files with 38 additions and 43 deletions
|
@ -1,13 +1,12 @@
|
|||
#include "auth.h"
|
||||
#include "bitfields.h"
|
||||
#include "comms.h"
|
||||
#include "defines.h"
|
||||
#include "encode.h"
|
||||
#include "stream.h"
|
||||
#include "procs.h"
|
||||
#include "timing.h"
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <sstream>
|
||||
#include "config.h"
|
||||
|
||||
namespace Comms{
|
||||
|
|
|
@ -8,6 +8,18 @@
|
|||
#include "tinythread.h"
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include "procs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h> //for getMyExec
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
#include <iostream>
|
||||
#include <pwd.h>
|
||||
#include <stdarg.h> // for va_list
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#include <windows.h>
|
||||
|
@ -21,21 +33,6 @@
|
|||
#if defined(__APPLE__)
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
#include "procs.h"
|
||||
#include <dirent.h> //for getMyExec
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <fstream>
|
||||
#include <getopt.h>
|
||||
#include <iostream>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h> // for va_list
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
bool Util::Config::is_active = false;
|
||||
bool Util::Config::is_restarting = false;
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
#define PACKAGE_VERSION "unknown"
|
||||
#endif
|
||||
|
||||
#include <sys/wait.h>
|
||||
#include "json.h"
|
||||
#include <signal.h>
|
||||
#include <string>
|
||||
|
||||
/// Contains utility code, not directly related to streaming media
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
|
||||
namespace DTSC{
|
||||
char Magic_Header[] = "DTSC";
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "h264.h"
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
namespace h264{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "langcodes.h" /*LTS*/
|
||||
#include "stream.h"
|
||||
#include <cstdlib>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
namespace HLS{
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "json.h"
|
||||
#include <iomanip>
|
||||
#include <strings.h>
|
||||
#include <sstream>
|
||||
|
||||
/// This constructor creates an empty HTTP::Parser, ready for use for either reading or writing.
|
||||
/// All this constructor does is call HTTP::Parser::Clean().
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "sdp_media.h"
|
||||
#include <algorithm>
|
||||
#include <cstdarg>
|
||||
#include <sstream>
|
||||
|
||||
namespace SDP{
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include "defines.h"
|
||||
#include "socket.h"
|
||||
#include "timing.h"
|
||||
#include "json.h"
|
||||
#include <cstdlib>
|
||||
#include <ifaddrs.h>
|
||||
#include <netdb.h>
|
||||
|
@ -15,6 +14,7 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fstream>
|
||||
#include <sys/select.h>
|
||||
|
||||
#define BUFFER_BLOCKSIZE 4096 // set buffer blocksize to 4KiB
|
||||
|
||||
|
@ -843,8 +843,8 @@ void Socket::Connection::open(std::string host, int port, bool nonblock, bool wi
|
|||
}
|
||||
DONTEVEN_MSG("SSL connect");
|
||||
int ret = 0;
|
||||
if ((ret = mbedtls_net_connect(server_fd, host.c_str(), JSON::Value(port).asString().c_str(),
|
||||
MBEDTLS_NET_PROTO_TCP)) != 0){
|
||||
std::string portStr = uint2string(port);
|
||||
if ((ret = mbedtls_net_connect(server_fd, host.c_str(), portStr.c_str(), MBEDTLS_NET_PROTO_TCP)) != 0){
|
||||
char estr[200];
|
||||
mbedtls_strerror(ret, estr, 200);
|
||||
lastErr = estr;
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
#pragma once
|
||||
#include <arpa/inet.h>
|
||||
#include <deque>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include "checksum.h" // for crc32
|
||||
#include "defines.h"
|
||||
#include "stun.h"
|
||||
#include "socket.h"
|
||||
#include <sstream>
|
||||
#include <socket.h>
|
||||
|
||||
/* --------------------------------------- */
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <sys/time.h> //for gettimeofday
|
||||
#include <sys/stat.h>
|
||||
#include <time.h> //for time and nanosleep
|
||||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
|
||||
// emulate clock_gettime() for OSX compatibility
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <errno.h> // errno, ENOENT, EEXIST
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h> // stat
|
||||
#if defined(_WIN32)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "analyser_dtsc.h"
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <mist/h264.h>
|
||||
|
||||
void AnalyserDTSC::init(Util::Config &conf){
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#include "analyser_hls.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <mist/config.h>
|
||||
#include <mist/defines.h>
|
||||
#include <mist/http_parser.h>
|
||||
#include <mist/timing.h>
|
||||
#include <string.h>
|
||||
|
||||
void AnalyserHLS::init(Util::Config &conf){
|
||||
Analyser::init(conf);
|
||||
|
|
|
@ -28,13 +28,9 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h> //for shm space check
|
||||
#include <sys/wait.h>
|
||||
#include <vector>
|
||||
/*LTS-START*/
|
||||
#include "controller_limits.h"
|
||||
#include "controller_updater.h"
|
||||
#include "controller_uplink.h"
|
||||
#include <mist/triggers.h>
|
||||
/*LTS-END*/
|
||||
|
||||
#ifndef COMPILED_USERNAME
|
||||
#define COMPILED_USERNAME ""
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "controller_external_writers.h"
|
||||
#include <dirent.h> //for browse API call
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <mist/auth.h>
|
||||
#include <mist/bitfields.h>
|
||||
#include <mist/config.h>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "controller_storage.h"
|
||||
#include <cstdio>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <list>
|
||||
#include <mist/bitfields.h>
|
||||
#include <mist/config.h>
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <cerrno>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <mist/bitfields.h>
|
||||
#include <mist/defines.h>
|
||||
#include <mist/langcodes.h>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <mist/ts_packet.h>
|
||||
#include <string>
|
||||
#include <sys/stat.h>
|
||||
#include <vector>
|
||||
|
||||
#define SEM_TS_CLAIM "/MstTSIN%s"
|
||||
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
#pragma once
|
||||
#include "input.h"
|
||||
#include <fstream>
|
||||
#include <mist/dtsc.h>
|
||||
#include <mist/nal.h>
|
||||
#include <mist/ts_packet.h>
|
||||
#include <mist/ts_stream.h>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
//#include <stdint.h>
|
||||
#include <mist/http_parser.h>
|
||||
#include <mist/urireader.h>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "io.h"
|
||||
#include <cstdlib>
|
||||
#include <sstream>
|
||||
#include <mist/auth.h>
|
||||
#include <mist/bitfields.h>
|
||||
#include <mist/encode.h>
|
||||
|
|
2
src/io.h
2
src/io.h
|
@ -1,13 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <mist/comms.h>
|
||||
#include <mist/defines.h>
|
||||
#include <mist/dtsc.h>
|
||||
#include <mist/shared_memory.h>
|
||||
|
||||
#include <mist/encryption.h> //LTS
|
||||
namespace Mist{
|
||||
///\brief Class containing all basic input and output functions.
|
||||
class InOutBase{
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <unistd.h>
|
||||
#include <iomanip>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
#include "output.h"
|
||||
#include <mist/bitfields.h>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "output_dtsc.h"
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <mist/auth.h>
|
||||
#include <mist/bitfields.h>
|
||||
#include <mist/defines.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include <mist/ebml_socketglue.h>
|
||||
#include <mist/opus.h>
|
||||
#include <mist/riff.h>
|
||||
#include <sstream>
|
||||
|
||||
namespace Mist{
|
||||
OutEBML::OutEBML(Socket::Connection &conn) : HTTPOutput(conn){
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <mist/util.h>
|
||||
#include <mist/url.h>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace Mist{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "output_rtmp.h"
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <mist/auth.h>
|
||||
#include <mist/bitfields.h>
|
||||
#include <mist/defines.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "output_srt.h"
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <mist/checksum.h>
|
||||
#include <mist/defines.h>
|
||||
#include <mist/http_parser.h>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include "output.h"
|
||||
#include "output_http.h"
|
||||
#include <mist/certificate.h>
|
||||
#include <mist/h264.h>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <mist/triggers.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <sstream>
|
||||
|
||||
// Global counters
|
||||
uint64_t thisType = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue