Method

PhoshDBusDisplayConfigcall_get_resources_sync

Declaration [src]

gboolean
phosh_dbus_display_config_call_get_resources_sync (
  PhoshDBusDisplayConfig* 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
)

Description [src]

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

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

Parameters

out_serial guint*
 

Return location for return parameter or NULL to ignore.

 The argument will be set by the function.
 The argument can be NULL.
out_crtcs GVariant
 

Return location for return parameter or NULL to ignore.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
out_outputs GVariant
 

Return location for return parameter or NULL to ignore.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
out_modes GVariant
 

Return location for return parameter or NULL to ignore.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
out_max_screen_width gint*
 

Return location for return parameter or NULL to ignore.

 The argument will be set by the function.
 The argument can be NULL.
out_max_screen_height gint*
 

Return location for return parameter or NULL to ignore.

 The argument will be set by the function.
 The argument can be NULL.
cancellable GCancellable
 

A GCancellable or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

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