···4646 MND_ERROR_INVALID_PROPERTY = -6,
4747 //! Supported in version 1.3 and above.
4848 MND_ERROR_INVALID_OPERATION = -7,
4949+ //! Supported in version 1.5 and above.
5050+ MND_ERROR_UNSUPPORTED_OPERATION = -7,
4951} mnd_result_t;
50525153/*!
···7880 MND_PROPERTY_SUPPORTS_POSITION_BOOL = 3,
7981 //! Supported in version 1.4.0 and above.
8082 MND_PROPERTY_SUPPORTS_ORIENTATION_BOOL = 4,
8383+ //! Supported in version 1.5.0 and above.
8484+ MND_PROPERTY_SUPPORTS_BRIGHTNESS_BOOL = 5,
8185} mnd_property_t;
82868387/*!
···492496mnd_result_t
493497mnd_root_get_device_battery_status(
494498 mnd_root_t *root, uint32_t device_index, bool *out_present, bool *out_charging, float *out_charge);
499499+500500+/*!
501501+ * Get current brightness of a display device.
502502+ *
503503+ * @param root The libmonado state.
504504+ * @param device_index Index of device to retrieve brightness from.
505505+ * @param[out] out_brightness Pointer to value to populate with the current device brightness, where 0 is 0%, and 1 is
506506+ * 100%.
507507+ *
508508+ * @return MND_SUCCESS on success
509509+ */
510510+mnd_result_t
511511+mnd_root_get_device_brightness(mnd_root_t *root, uint32_t device_index, float *out_brightness);
512512+513513+/*!
514514+ * @brief Set the display brightness.
515515+ *
516516+ * @param root The libmonado state.
517517+ * @param device_index Index of device to retrieve battery info from.
518518+ * @param[in] brightness Desired display brightness, usually between 0 and 1. Some devices may
519519+ * allow exceeding 1 if the supported range exceeds 100%, but it will be clamped to
520520+ * the supported range.
521521+ * @param[in] relative Whether to add \a brightness to the current brightness, instead of overwriting
522522+ * the current brightness.
523523+ *
524524+ * @return MND_SUCCESS on success
525525+ */
526526+mnd_result_t
527527+mnd_root_set_device_brightness(mnd_root_t *root, uint32_t device_index, float brightness, bool relative);
495528496529#ifdef __cplusplus
497530}