PhoshDisplayDbusDisplayConfigSkeleton

PhoshDisplayDbusDisplayConfigSkeleton

Functions

GDBusInterfaceInfo * phosh_display_dbus_display_config_interface_info ()
guint phosh_display_dbus_display_config_override_properties ()
void phosh_display_dbus_display_config_complete_get_resources ()
void phosh_display_dbus_display_config_complete_apply_configuration ()
void phosh_display_dbus_display_config_complete_change_backlight ()
void phosh_display_dbus_display_config_complete_get_crtc_gamma ()
void phosh_display_dbus_display_config_complete_set_crtc_gamma ()
void phosh_display_dbus_display_config_complete_get_current_state ()
void phosh_display_dbus_display_config_complete_apply_monitors_config ()
void phosh_display_dbus_display_config_emit_monitors_changed ()
void phosh_display_dbus_display_config_call_get_resources ()
gboolean phosh_display_dbus_display_config_call_get_resources_finish ()
gboolean phosh_display_dbus_display_config_call_get_resources_sync ()
void phosh_display_dbus_display_config_call_apply_configuration ()
gboolean phosh_display_dbus_display_config_call_apply_configuration_finish ()
gboolean phosh_display_dbus_display_config_call_apply_configuration_sync ()
void phosh_display_dbus_display_config_call_change_backlight ()
gboolean phosh_display_dbus_display_config_call_change_backlight_finish ()
gboolean phosh_display_dbus_display_config_call_change_backlight_sync ()
void phosh_display_dbus_display_config_call_get_crtc_gamma ()
gboolean phosh_display_dbus_display_config_call_get_crtc_gamma_finish ()
gboolean phosh_display_dbus_display_config_call_get_crtc_gamma_sync ()
void phosh_display_dbus_display_config_call_set_crtc_gamma ()
gboolean phosh_display_dbus_display_config_call_set_crtc_gamma_finish ()
gboolean phosh_display_dbus_display_config_call_set_crtc_gamma_sync ()
void phosh_display_dbus_display_config_call_get_current_state ()
gboolean phosh_display_dbus_display_config_call_get_current_state_finish ()
gboolean phosh_display_dbus_display_config_call_get_current_state_sync ()
void phosh_display_dbus_display_config_call_apply_monitors_config ()
gboolean phosh_display_dbus_display_config_call_apply_monitors_config_finish ()
gboolean phosh_display_dbus_display_config_call_apply_monitors_config_sync ()
gint phosh_display_dbus_display_config_get_power_save_mode ()
void phosh_display_dbus_display_config_set_power_save_mode ()
void phosh_display_dbus_display_config_proxy_new ()
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_finish ()
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_sync ()
void phosh_display_dbus_display_config_proxy_new_for_bus ()
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_for_bus_finish ()
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_proxy_new_for_bus_sync ()
PhoshDisplayDbusDisplayConfig * phosh_display_dbus_display_config_skeleton_new ()

Properties

gint power-save-mode Read / Write

Signals

Types and Values

Object Hierarchy

    GInterface
    ╰── PhoshDisplayDbusDisplayConfig
    GObject
    ├── GDBusInterfaceSkeleton
       ╰── PhoshDisplayDbusDisplayConfigSkeleton
           ╰── PhoshMonitorManager
    ╰── GDBusProxy
        ╰── PhoshDisplayDbusDisplayConfigProxy

Prerequisites

PhoshDisplayDbusDisplayConfig requires GObject.

Implemented Interfaces

PhoshDisplayDbusDisplayConfigProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshDisplayDbusDisplayConfig.

PhoshDisplayDbusDisplayConfigSkeleton implements GDBusInterface and PhoshDisplayDbusDisplayConfig.

Known Implementations

PhoshDisplayDbusDisplayConfig is implemented by PhoshDisplayDbusDisplayConfigProxy, PhoshDisplayDbusDisplayConfigSkeleton and PhoshMonitorManager.

Description

Functions

phosh_display_dbus_display_config_interface_info ()

GDBusInterfaceInfo *
phosh_display_dbus_display_config_interface_info
                               (void);

Gets a machine-readable description of the org.gnome.Mutter.DisplayConfig D-Bus interface.

Returns

A GDBusInterfaceInfo. Do not free.

[transfer none]


phosh_display_dbus_display_config_override_properties ()

guint
phosh_display_dbus_display_config_override_properties
                               (GObjectClass *klass,
                                guint property_id_begin);

Overrides all GObject properties in the PhoshDisplayDbusDisplayConfig interface for a concrete class. The properties are overridden in the order they are defined.

Parameters

klass

The class structure for a GObject derived class.

 

property_id_begin

The property id to assign to the first overridden property.

 

Returns

The last property id.


phosh_display_dbus_display_config_complete_get_resources ()

void
phosh_display_dbus_display_config_complete_get_resources
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation,
                                guint serial,
                                GVariant *crtcs,
                                GVariant *outputs,
                                GVariant *modes,
                                gint max_screen_width,
                                gint max_screen_height);

Helper function used in service implementations to finish handling invocations of the GetResources() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

serial

Parameter to return.

 

crtcs

Parameter to return.

 

outputs

Parameter to return.

 

modes

Parameter to return.

 

max_screen_width

Parameter to return.

 

max_screen_height

Parameter to return.

 

phosh_display_dbus_display_config_complete_apply_configuration ()

void
phosh_display_dbus_display_config_complete_apply_configuration
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the ApplyConfiguration() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

phosh_display_dbus_display_config_complete_change_backlight ()

void
phosh_display_dbus_display_config_complete_change_backlight
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation,
                                gint new_value);

Helper function used in service implementations to finish handling invocations of the ChangeBacklight() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

new_value

Parameter to return.

 

phosh_display_dbus_display_config_complete_get_crtc_gamma ()

void
phosh_display_dbus_display_config_complete_get_crtc_gamma
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation,
                                GVariant *red,
                                GVariant *green,
                                GVariant *blue);

Helper function used in service implementations to finish handling invocations of the GetCrtcGamma() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

red

Parameter to return.

 

green

Parameter to return.

 

blue

Parameter to return.

 

phosh_display_dbus_display_config_complete_set_crtc_gamma ()

void
phosh_display_dbus_display_config_complete_set_crtc_gamma
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the SetCrtcGamma() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

phosh_display_dbus_display_config_complete_get_current_state ()

void
phosh_display_dbus_display_config_complete_get_current_state
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation,
                                guint serial,
                                GVariant *monitors,
                                GVariant *logical_monitors,
                                GVariant *properties);

Helper function used in service implementations to finish handling invocations of the GetCurrentState() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

serial

Parameter to return.

 

monitors

Parameter to return.

 

logical_monitors

Parameter to return.

 

properties

Parameter to return.

 

phosh_display_dbus_display_config_complete_apply_monitors_config ()

void
phosh_display_dbus_display_config_complete_apply_monitors_config
                               (PhoshDisplayDbusDisplayConfig *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the ApplyMonitorsConfig() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

[transfer full]

phosh_display_dbus_display_config_emit_monitors_changed ()

void
phosh_display_dbus_display_config_emit_monitors_changed
                               (PhoshDisplayDbusDisplayConfig *object);

Emits the "MonitorsChanged" D-Bus signal.

Parameters


phosh_display_dbus_display_config_call_get_resources ()

void
phosh_display_dbus_display_config_call_get_resources
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the GetResources() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_get_resources_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_get_resources_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_get_resources_finish ()

gboolean
phosh_display_dbus_display_config_call_get_resources_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint *out_serial,
                                GVariant **out_crtcs,
                                GVariant **out_outputs,
                                GVariant **out_modes,
                                gint *out_max_screen_width,
                                gint *out_max_screen_height,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_get_resources().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

out_serial

Return location for return parameter or NULL to ignore.

[out]

out_crtcs

Return location for return parameter or NULL to ignore.

[out]

out_outputs

Return location for return parameter or NULL to ignore.

[out]

out_modes

Return location for return parameter or NULL to ignore.

[out]

out_max_screen_width

Return location for return parameter or NULL to ignore.

[out]

out_max_screen_height

Return location for return parameter or NULL to ignore.

[out]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_get_resources().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_get_resources_sync ()

gboolean
phosh_display_dbus_display_config_call_get_resources_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint *out_serial,
                                GVariant **out_crtcs,
                                GVariant **out_outputs,
                                GVariant **out_modes,
                                gint *out_max_screen_width,
                                gint *out_max_screen_height,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the GetResources() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_get_resources() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

out_serial

Return location for return parameter or NULL to ignore.

[out]

out_crtcs

Return location for return parameter or NULL to ignore.

[out]

out_outputs

Return location for return parameter or NULL to ignore.

[out]

out_modes

Return location for return parameter or NULL to ignore.

[out]

out_max_screen_width

Return location for return parameter or NULL to ignore.

[out]

out_max_screen_height

Return location for return parameter or NULL to ignore.

[out]

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_apply_configuration ()

void
phosh_display_dbus_display_config_call_apply_configuration
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                gboolean arg_persistent,
                                GVariant *arg_crtcs,
                                GVariant *arg_outputs,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the ApplyConfiguration() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_apply_configuration_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_apply_configuration_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_persistent

Argument to pass with the method invocation.

 

arg_crtcs

Argument to pass with the method invocation.

 

arg_outputs

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_apply_configuration_finish ()

gboolean
phosh_display_dbus_display_config_call_apply_configuration_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_apply_configuration().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_apply_configuration().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_apply_configuration_sync ()

gboolean
phosh_display_dbus_display_config_call_apply_configuration_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                gboolean arg_persistent,
                                GVariant *arg_crtcs,
                                GVariant *arg_outputs,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the ApplyConfiguration() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_apply_configuration() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_persistent

Argument to pass with the method invocation.

 

arg_crtcs

Argument to pass with the method invocation.

 

arg_outputs

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_change_backlight ()

void
phosh_display_dbus_display_config_call_change_backlight
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_output,
                                gint arg_value,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the ChangeBacklight() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_change_backlight_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_change_backlight_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_output

Argument to pass with the method invocation.

 

arg_value

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_change_backlight_finish ()

gboolean
phosh_display_dbus_display_config_call_change_backlight_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                gint *out_new_value,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_change_backlight().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

out_new_value

Return location for return parameter or NULL to ignore.

[out]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_change_backlight().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_change_backlight_sync ()

gboolean
phosh_display_dbus_display_config_call_change_backlight_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_output,
                                gint arg_value,
                                gint *out_new_value,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the ChangeBacklight() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_change_backlight() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_output

Argument to pass with the method invocation.

 

arg_value

Argument to pass with the method invocation.

 

out_new_value

Return location for return parameter or NULL to ignore.

[out]

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_get_crtc_gamma ()

void
phosh_display_dbus_display_config_call_get_crtc_gamma
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_crtc,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the GetCrtcGamma() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_get_crtc_gamma_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_get_crtc_gamma_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_crtc

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_get_crtc_gamma_finish ()

gboolean
phosh_display_dbus_display_config_call_get_crtc_gamma_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                GVariant **out_red,
                                GVariant **out_green,
                                GVariant **out_blue,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_get_crtc_gamma().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

out_red

Return location for return parameter or NULL to ignore.

[out]

out_green

Return location for return parameter or NULL to ignore.

[out]

out_blue

Return location for return parameter or NULL to ignore.

[out]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_get_crtc_gamma().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_get_crtc_gamma_sync ()

gboolean
phosh_display_dbus_display_config_call_get_crtc_gamma_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_crtc,
                                GVariant **out_red,
                                GVariant **out_green,
                                GVariant **out_blue,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the GetCrtcGamma() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_get_crtc_gamma() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_crtc

Argument to pass with the method invocation.

 

out_red

Return location for return parameter or NULL to ignore.

[out]

out_green

Return location for return parameter or NULL to ignore.

[out]

out_blue

Return location for return parameter or NULL to ignore.

[out]

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_set_crtc_gamma ()

void
phosh_display_dbus_display_config_call_set_crtc_gamma
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_crtc,
                                GVariant *arg_red,
                                GVariant *arg_green,
                                GVariant *arg_blue,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the SetCrtcGamma() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_set_crtc_gamma_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_set_crtc_gamma_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_crtc

Argument to pass with the method invocation.

 

arg_red

Argument to pass with the method invocation.

 

arg_green

Argument to pass with the method invocation.

 

arg_blue

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_set_crtc_gamma_finish ()

gboolean
phosh_display_dbus_display_config_call_set_crtc_gamma_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_set_crtc_gamma().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_set_crtc_gamma().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_set_crtc_gamma_sync ()

gboolean
phosh_display_dbus_display_config_call_set_crtc_gamma_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_crtc,
                                GVariant *arg_red,
                                GVariant *arg_green,
                                GVariant *arg_blue,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the SetCrtcGamma() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_set_crtc_gamma() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_crtc

Argument to pass with the method invocation.

 

arg_red

Argument to pass with the method invocation.

 

arg_green

Argument to pass with the method invocation.

 

arg_blue

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_get_current_state ()

void
phosh_display_dbus_display_config_call_get_current_state
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the GetCurrentState() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_get_current_state_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_get_current_state_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_get_current_state_finish ()

gboolean
phosh_display_dbus_display_config_call_get_current_state_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint *out_serial,
                                GVariant **out_monitors,
                                GVariant **out_logical_monitors,
                                GVariant **out_properties,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_get_current_state().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

out_serial

Return location for return parameter or NULL to ignore.

[out]

out_monitors

Return location for return parameter or NULL to ignore.

[out]

out_logical_monitors

Return location for return parameter or NULL to ignore.

[out]

out_properties

Return location for return parameter or NULL to ignore.

[out]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_get_current_state().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_get_current_state_sync ()

gboolean
phosh_display_dbus_display_config_call_get_current_state_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint *out_serial,
                                GVariant **out_monitors,
                                GVariant **out_logical_monitors,
                                GVariant **out_properties,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the GetCurrentState() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_get_current_state() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

out_serial

Return location for return parameter or NULL to ignore.

[out]

out_monitors

Return location for return parameter or NULL to ignore.

[out]

out_logical_monitors

Return location for return parameter or NULL to ignore.

[out]

out_properties

Return location for return parameter or NULL to ignore.

[out]

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_apply_monitors_config ()

void
phosh_display_dbus_display_config_call_apply_monitors_config
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_method,
                                GVariant *arg_logical_monitors,
                                GVariant *arg_properties,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the ApplyMonitorsConfig() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_call_apply_monitors_config_finish() to get the result of the operation.

See phosh_display_dbus_display_config_call_apply_monitors_config_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_method

Argument to pass with the method invocation.

 

arg_logical_monitors

Argument to pass with the method invocation.

 

arg_properties

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_call_apply_monitors_config_finish ()

gboolean
phosh_display_dbus_display_config_call_apply_monitors_config_finish
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_call_apply_monitors_config().

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_call_apply_monitors_config().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_call_apply_monitors_config_sync ()

gboolean
phosh_display_dbus_display_config_call_apply_monitors_config_sync
                               (PhoshDisplayDbusDisplayConfig *proxy,
                                guint arg_serial,
                                guint arg_method,
                                GVariant *arg_logical_monitors,
                                GVariant *arg_properties,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the ApplyMonitorsConfig() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_call_apply_monitors_config() for the asynchronous version of this method.

Parameters

proxy

A PhoshDisplayDbusDisplayConfigProxy.

 

arg_serial

Argument to pass with the method invocation.

 

arg_method

Argument to pass with the method invocation.

 

arg_logical_monitors

Argument to pass with the method invocation.

 

arg_properties

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]


phosh_display_dbus_display_config_get_power_save_mode ()

gint
phosh_display_dbus_display_config_get_power_save_mode
                               (PhoshDisplayDbusDisplayConfig *object);

Gets the value of the "PowerSaveMode" D-Bus property.

Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.

[skip]

Parameters

Returns

The property value.


phosh_display_dbus_display_config_set_power_save_mode ()

void
phosh_display_dbus_display_config_set_power_save_mode
                               (PhoshDisplayDbusDisplayConfig *object,
                                gint value);

Sets the "PowerSaveMode" D-Bus property to value .

Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.

[skip]

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

value

The value to set.

 

phosh_display_dbus_display_config_proxy_new ()

void
phosh_display_dbus_display_config_proxy_new
                               (GDBusConnection *connection,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously creates a proxy for the D-Bus interface org.gnome.Mutter.DisplayConfig. See g_dbus_proxy_new() for more details.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_proxy_new_finish() to get the result of the operation.

See phosh_display_dbus_display_config_proxy_new_sync() for the synchronous, blocking version of this constructor.

Parameters

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_proxy_new_finish ()

PhoshDisplayDbusDisplayConfig *
phosh_display_dbus_display_config_proxy_new_finish
                               (GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_proxy_new().

Parameters

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_proxy_new().

 

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type PhoshDisplayDbusDisplayConfigProxy]


phosh_display_dbus_display_config_proxy_new_sync ()

PhoshDisplayDbusDisplayConfig *
phosh_display_dbus_display_config_proxy_new_sync
                               (GDBusConnection *connection,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GError **error);

Synchronously creates a proxy for the D-Bus interface org.gnome.Mutter.DisplayConfig. See g_dbus_proxy_new_sync() for more details.

The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_proxy_new() for the asynchronous version of this constructor.

Parameters

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type PhoshDisplayDbusDisplayConfigProxy]


phosh_display_dbus_display_config_proxy_new_for_bus ()

void
phosh_display_dbus_display_config_proxy_new_for_bus
                               (GBusType bus_type,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Like phosh_display_dbus_display_config_proxy_new() but takes a GBusType instead of a GDBusConnection.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call phosh_display_dbus_display_config_proxy_new_for_bus_finish() to get the result of the operation.

See phosh_display_dbus_display_config_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.

Parameters

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback .

 

phosh_display_dbus_display_config_proxy_new_for_bus_finish ()

PhoshDisplayDbusDisplayConfig *
phosh_display_dbus_display_config_proxy_new_for_bus_finish
                               (GAsyncResult *res,
                                GError **error);

Finishes an operation started with phosh_display_dbus_display_config_proxy_new_for_bus().

Parameters

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to phosh_display_dbus_display_config_proxy_new_for_bus().

 

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type PhoshDisplayDbusDisplayConfigProxy]


phosh_display_dbus_display_config_proxy_new_for_bus_sync ()

PhoshDisplayDbusDisplayConfig *
phosh_display_dbus_display_config_proxy_new_for_bus_sync
                               (GBusType bus_type,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GError **error);

Like phosh_display_dbus_display_config_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.

The calling thread is blocked until a reply is received.

See phosh_display_dbus_display_config_proxy_new_for_bus() for the asynchronous version of this constructor.

Parameters

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type PhoshDisplayDbusDisplayConfigProxy]


phosh_display_dbus_display_config_skeleton_new ()

PhoshDisplayDbusDisplayConfig *
phosh_display_dbus_display_config_skeleton_new
                               (void);

Creates a skeleton object for the D-Bus interface org.gnome.Mutter.DisplayConfig.

Returns

The skeleton object.

[transfer full][type PhoshDisplayDbusDisplayConfigSkeleton]

Types and Values

struct PhoshDisplayDbusDisplayConfigIface

struct PhoshDisplayDbusDisplayConfigIface {
  GTypeInterface parent_iface;



  gboolean (*handle_apply_configuration) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial,
    gboolean arg_persistent,
    GVariant *arg_crtcs,
    GVariant *arg_outputs);

  gboolean (*handle_apply_monitors_config) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial,
    guint arg_method,
    GVariant *arg_logical_monitors,
    GVariant *arg_properties);

  gboolean (*handle_change_backlight) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial,
    guint arg_output,
    gint arg_value);

  gboolean (*handle_get_crtc_gamma) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial,
    guint arg_crtc);

  gboolean (*handle_get_current_state) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_get_resources) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_set_crtc_gamma) (
    PhoshDisplayDbusDisplayConfig *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial,
    guint arg_crtc,
    GVariant *arg_red,
    GVariant *arg_green,
    GVariant *arg_blue);

  gint  (*get_power_save_mode) (PhoshDisplayDbusDisplayConfig *object);

  void (*monitors_changed) (
    PhoshDisplayDbusDisplayConfig *object);
};

Virtual table for the D-Bus interface org.gnome.Mutter.DisplayConfig.

Members

GTypeInterface parent_iface;

The parent interface.

 

handle_apply_configuration ()

Handler for the “handle-apply-configuration” signal.

 

handle_apply_monitors_config ()

Handler for the “handle-apply-monitors-config” signal.

 

handle_change_backlight ()

Handler for the “handle-change-backlight” signal.

 

handle_get_crtc_gamma ()

Handler for the “handle-get-crtc-gamma” signal.

 

handle_get_current_state ()

Handler for the “handle-get-current-state” signal.

 

handle_get_resources ()

Handler for the “handle-get-resources” signal.

 

handle_set_crtc_gamma ()

Handler for the “handle-set-crtc-gamma” signal.

 

get_power_save_mode ()

Getter for the “power-save-mode” property.

 

monitors_changed ()

Handler for the “monitors-changed” signal.

 

struct PhoshDisplayDbusDisplayConfigProxy

struct PhoshDisplayDbusDisplayConfigProxy;

The PhoshDisplayDbusDisplayConfigProxy structure contains only private data and should only be accessed using the provided API.


struct PhoshDisplayDbusDisplayConfigProxyClass

struct PhoshDisplayDbusDisplayConfigProxyClass {
  GDBusProxyClass parent_class;
};

Class structure for PhoshDisplayDbusDisplayConfigProxy.

Members


struct PhoshDisplayDbusDisplayConfigSkeleton

struct PhoshDisplayDbusDisplayConfigSkeleton;

The PhoshDisplayDbusDisplayConfigSkeleton structure contains only private data and should only be accessed using the provided API.


struct PhoshDisplayDbusDisplayConfigSkeletonClass

struct PhoshDisplayDbusDisplayConfigSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

Class structure for PhoshDisplayDbusDisplayConfigSkeleton.

Members


PhoshDisplayDbusDisplayConfig

typedef struct _PhoshDisplayDbusDisplayConfig PhoshDisplayDbusDisplayConfig;

Abstract interface type for the D-Bus interface org.gnome.Mutter.DisplayConfig.


PhoshDisplayDbusDisplayConfigProxyPrivate

typedef struct _PhoshDisplayDbusDisplayConfigProxyPrivate PhoshDisplayDbusDisplayConfigProxyPrivate;

PhoshDisplayDbusDisplayConfigSkeletonPrivate

typedef struct _PhoshDisplayDbusDisplayConfigSkeletonPrivate PhoshDisplayDbusDisplayConfigSkeletonPrivate;

Property Details

The “power-save-mode” property

  “power-save-mode”          gint

Represents the D-Bus property "PowerSaveMode".

Since the D-Bus property for this GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.

Flags: Read / Write

Default value: 0

Signal Details

The “handle-apply-configuration” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               guint                          arg_serial,
               gboolean                       arg_persistent,
               GVariant                      *arg_crtcs,
               GVariant                      *arg_outputs,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the ApplyConfiguration() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_apply_configuration() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

arg_serial

Argument passed by remote caller.

 

arg_persistent

Argument passed by remote caller.

 

arg_crtcs

Argument passed by remote caller.

 

arg_outputs

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “handle-apply-monitors-config” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               guint                          arg_serial,
               guint                          arg_method,
               GVariant                      *arg_logical_monitors,
               GVariant                      *arg_properties,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the ApplyMonitorsConfig() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_apply_monitors_config() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

arg_serial

Argument passed by remote caller.

 

arg_method

Argument passed by remote caller.

 

arg_logical_monitors

Argument passed by remote caller.

 

arg_properties

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “handle-change-backlight” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               guint                          arg_serial,
               guint                          arg_output,
               gint                           arg_value,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the ChangeBacklight() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_change_backlight() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

arg_serial

Argument passed by remote caller.

 

arg_output

Argument passed by remote caller.

 

arg_value

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “handle-get-crtc-gamma” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               guint                          arg_serial,
               guint                          arg_crtc,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the GetCrtcGamma() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_get_crtc_gamma() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

arg_serial

Argument passed by remote caller.

 

arg_crtc

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “handle-get-current-state” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the GetCurrentState() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_get_current_state() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “handle-get-resources” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the GetResources() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_get_resources() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “handle-set-crtc-gamma” signal

gboolean
user_function (PhoshDisplayDbusDisplayConfig *object,
               GDBusMethodInvocation         *invocation,
               guint                          arg_serial,
               guint                          arg_crtc,
               GVariant                      *arg_red,
               GVariant                      *arg_green,
               GVariant                      *arg_blue,
               gpointer                       user_data)

Signal emitted when a remote caller is invoking the SetCrtcGamma() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call phosh_display_dbus_display_config_complete_set_crtc_gamma() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

invocation

A GDBusMethodInvocation.

 

arg_serial

Argument passed by remote caller.

 

arg_crtc

Argument passed by remote caller.

 

arg_red

Argument passed by remote caller.

 

arg_green

Argument passed by remote caller.

 

arg_blue

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last


The “monitors-changed” signal

void
user_function (PhoshDisplayDbusDisplayConfig *object,
               gpointer                       user_data)

On the client-side, this signal is emitted whenever the D-Bus signal "MonitorsChanged" is received.

On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.

Parameters

object

A PhoshDisplayDbusDisplayConfig.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last