Mir
Functions
mir_connection.h File Reference
#include <mir_toolkit/client_types.h>
#include <mir_toolkit/common.h>
#include <mir_toolkit/deprecations.h>
#include <stdbool.h>
Include dependency graph for mir_connection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MirWaitHandlemir_connect (char const *server, char const *app_name, MirConnectedCallback callback, void *context)
 Request a connection to the Mir server. More...
 
MirConnectionmir_connect_sync (char const *server, char const *app_name)
 Perform a mir_connect() but also wait for and return the result. More...
 
bool mir_connection_is_valid (MirConnection *connection)
 Test for a valid connection. More...
 
char const * mir_connection_get_error_message (MirConnection *connection)
 Retrieve a text description of the last error. More...
 
void mir_connection_release (MirConnection *connection)
 Release a connection to the Mir server. More...
 
void mir_connection_set_lifecycle_event_callback (MirConnection *connection, MirLifecycleEventCallback callback, void *context)
 Register a callback to be called when a Lifecycle state change occurs. More...
 
void mir_connection_set_ping_event_callback (MirConnection *connection, MirPingEventCallback callback, void *context)
 Register a callback for server ping events. More...
 
void mir_connection_pong (MirConnection *connection, int32_t serial)
 Respond to a ping event. More...
 
MirDisplayConfigmir_connection_create_display_configuration (MirConnection *connection)
 Query the display. More...
 
void mir_connection_set_display_config_change_callback (MirConnection *connection, MirDisplayConfigCallback callback, void *context)
 Register a callback to be called when the hardware display configuration changes. More...
 
void mir_connection_apply_session_display_config (MirConnection *connection, MirDisplayConfig const *display_config)
 Apply the display config for the connection. More...
 
void mir_connection_remove_session_display_config (MirConnection *connection)
 Remove the display configuration for the connection. More...
 
void mir_connection_preview_base_display_configuration (MirConnection *connection, MirDisplayConfig const *configuration, int timeout_seconds)
 Preview a new base display configuration. More...
 
void mir_connection_confirm_base_display_configuration (MirConnection *connection, MirDisplayConfig const *configuration)
 Confirm a base configuration change initiated by mir_connection_preview_base_display_configuration() More...
 
void mir_connection_cancel_base_display_configuration_preview (MirConnection *connection)
 Cancel a pending base display configuration preview. More...
 
MirEGLNativeDisplayType mir_connection_get_egl_native_display (MirConnection *connection) MIR_FOR_REMOVAL_IN_VERSION_1("Use MirConnection * as the native display instead")
 Get a display type that can be used with EGL. More...
 
void mir_connection_get_available_surface_formats (MirConnection *connection, MirPixelFormat *formats, unsigned const int formats_size, unsigned int *num_valid_formats)
 Get the list of possible formats that a surface can be created with. More...
 
MirInputConfigmir_connection_create_input_config (MirConnection *connection)
 Create a snapshot of the attached input devices and device configurations. More...
 
void mir_connection_apply_session_input_config (MirConnection *connection, MirInputConfig const *config)
 Apply the input configuration for the connection. More...
 
void mir_connection_set_base_input_config (MirConnection *connection, MirInputConfig const *config)
 Set the input configuration as base configuration. More...
 
void mir_input_config_release (MirInputConfig const *config)
 Release this snapshot of the input configuration. More...
 
void mir_connection_set_input_config_change_callback (MirConnection *connection, MirInputConfigCallback callback, void *context)
 Register a callback to be called when the input devices change. More...
 
void mir_connection_set_error_callback (MirConnection *connection, MirErrorCallback callback, void *context)
 Register a callback to be called on non-fatal errors. More...
 
unsigned mir_get_client_api_version ()
 Returns client API version. More...
 
void mir_connection_enumerate_extensions (MirConnection *connection, void *context, void(*enumerator)(void *context, char const *extension, int version))
 Enumerates the supported extensions. More...
 

Copyright © 2012-2020 Canonical Ltd.
Generated on Sun Oct 4 22:38:34 UTC 2020
This documentation is licensed under the GPL version 2 or 3.