MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getConnection

Function getConnection

source/MRViewer/MRFileDialogPortal.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19
20DBusConnection* getConnection()
21{
22 static DBusConnection* sConn = []
23 {
24 DBusError err;
25 dbus_error_init( &err );
26 MR_FINALLY { dbus_error_free( &err ); };
27
28 auto* conn = dbus_bus_get( DBUS_BUS_SESSION, &err );
29 if ( dbus_error_is_set( &err ) )
30 spdlog::warn( "Failed to connect to DBus: {}", err.message );
31
32 return conn;
33 } ();
34 return sConn;
35}
36
37std::string getWindowId( GLFWwindow* window )
38{

Callers 2

runPortalFileDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected