MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
controller_streams.h
Go to the documentation of this file.
1 #include <mist/json.h>
2 
3 namespace Controller {
4  bool streamsEqual(JSON::Value & one, JSON::Value & two);
5  void checkStream(std::string name, JSON::Value & data);
6  bool CheckAllStreams(JSON::Value & data);
7  void CheckStreams(JSON::Value & in, JSON::Value & out);
8  void AddStreams(JSON::Value & in, JSON::Value & out);
9  void deleteStream(const std::string & name, JSON::Value & out);
10 
11  struct liveCheck {
12  long long int lastms;
13  long long int last_active;
14  };
15 
16 } //Controller namespace
Holds everything unique to the controller.
Definition: controller_api.h:4
void checkStream(std::string name, JSON::Value &data)
Checks the validity of a stream, updates internal stream status.
Definition: controller_streams.cpp:43
A JSON::Value is either a string or an integer, but may also be an object, array or null...
Definition: json.h:21
void CheckStreams(JSON::Value &in, JSON::Value &out)
Parse a given stream configuration.
Definition: controller_streams.cpp:257
void AddStreams(JSON::Value &in, JSON::Value &out)
Definition: controller_streams.cpp:175
bool CheckAllStreams(JSON::Value &data)
Checks all streams, restoring if needed.
Definition: controller_streams.cpp:127
bool streamsEqual(JSON::Value &one, JSON::Value &two)
Checks whether two streams are equal.
Definition: controller_streams.cpp:25
void deleteStream(const std::string &name, JSON::Value &out)
Definition: controller_streams.cpp:296
long long int lastms
Definition: controller_streams.h:12
Definition: controller_streams.h:11
long long int last_active
Definition: controller_streams.h:13