From 7f0a03d90e2d13632d22eb43447f553a695ddd9c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 26 Nov 2024 18:23:39 +0100 Subject: Add mgl_is_connected_to_display_server and mgl_ping_display_server to keep status of connection --- src/mglpp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3