aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-26 18:23:39 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-26 18:23:39 +0100
commit7f0a03d90e2d13632d22eb43447f553a695ddd9c (patch)
tree04d39ebb30a4d19e701d46bc8bc0c801d1378226
parent9800cff631f1a82ee87005aabdefb3f5da7fadb5 (diff)
Add mgl_is_connected_to_display_server and mgl_ping_display_server to keep status of connection
m---------depends/mgl0
-rw-r--r--include/mglpp/mglpp.hpp3
-rw-r--r--src/mglpp.cpp8
3 files changed, 11 insertions, 0 deletions
diff --git a/depends/mgl b/depends/mgl
-Subproject 0fc77a5d2208b4649c8a274c34b79a6ce74580e
+Subproject 25a962a8bf74b5a2484531e2095a219ab8ae7fe
diff --git a/include/mglpp/mglpp.hpp b/include/mglpp/mglpp.hpp
index dacd134..2e49da5 100644
--- a/include/mglpp/mglpp.hpp
+++ b/include/mglpp/mglpp.hpp
@@ -16,6 +16,9 @@ namespace mgl {
// Throws InitException on failure
Init();
~Init();
+
+ bool is_connected_to_display_server();
+ void ping_display_server();
};
}
diff --git a/src/mglpp.cpp b/src/mglpp.cpp
index 1719d85..ca0845d 100644
--- a/src/mglpp.cpp
+++ b/src/mglpp.cpp
@@ -12,4 +12,12 @@ namespace mgl {
Init::~Init() {
mgl_deinit();
}
+
+ bool Init::is_connected_to_display_server() {
+ return mgl_is_connected_to_display_server();
+ }
+
+ void Init::ping_display_server() {
+ return mgl_ping_display_server();
+ }
} \ No newline at end of file