blob: 2e49da58186c59c239671cad458cd90fee7a52a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef MGLPP_MGLPP_HPP
#define MGLPP_MGLPP_HPP
#include <stdexcept>
namespace mgl {
class InitException : public std::exception {
public:
const char* what() const noexcept override {
return "Failed to initialize mgl";
}
};
class Init {
public:
// Throws InitException on failure
Init();
~Init();
bool is_connected_to_display_server();
void ping_display_server();
};
}
#endif /* MGLPP_MGLPP_HPP */
|