Operator
C++ library for plugging into matrix.org
All Classes Namespaces Files Functions Typedefs Pages
structs.hh
Go to the documentation of this file.
1 
20 #ifndef __OPERATOR_STRUCTS_HH_
21 #define __OPERATOR_STRUCTS_HH_
22 
23 #include "error.hh"
24 
25 #include <string>
26 #include <json.hpp>
27 
28 namespace Operator {
29  struct Filter {
30  // TODO:
31  };
32 
33  struct RoomFilter {
34  // TODO:
35  };
36 
37  struct RoomEventFilter {
38  // TODO:
39  };
40 
43  template<typename... T> using callback_t = typename std::function<void (std::shared_ptr<Error::Error> err, T...)>;
44  template<typename... T> void noop_callback(std::shared_ptr<Error::Error> err, T...) {}
45 }
46 
47 #endif // __OPERATOR_STRUCTS_HH_
Definition: structs.hh:29
Definition: client.hh:32
Definition: structs.hh:37
Definition: structs.hh:33
Error handling.
typename std::function< void(std::shared_ptr< Error::Error > err, T...)> callback_t
general type for callbacks
Definition: structs.hh:43