MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
controller_api.h
Go to the documentation of this file.
1 #include <mist/socket.h>
2 #include <mist/json.h>
3 
4 namespace Controller {
5  void checkConfig(JSON::Value & in, JSON::Value & out);
6  bool authorize(JSON::Value & Request, JSON::Value & Response, Socket::Connection & conn);
8 }
Holds everything unique to the controller.
Definition: controller_api.h:4
A JSON::Value is either a string or an integer, but may also be an object, array or null...
Definition: json.h:21
int handleAPIConnection(Socket::Connection &conn)
Handles a single incoming API connection.
Definition: controller_api.cpp:162
bool authorize(JSON::Value &Request, JSON::Value &Response, Socket::Connection &conn)
Checks an authorization request for a given user.
Definition: controller_api.cpp:120
void checkConfig(JSON::Value &in, JSON::Value &out)
Check the submitted configuration and handle things accordingly.
Definition: controller_api.cpp:63
This class is for easy communicating through sockets, either TCP or Unix.
Definition: socket.h:47