2011-12-02 Mike Blumenkrantz
* Use mempools for allocations
+
+2011-12-02 Term <term@twistedpath.org>
+
+ * added ecore_x_randr_output_backlight_available()
Changes since Ecore 1.1.0:
--------------------------
+Additions:
+ * ecore_x:
+ - ecore_x_randr_output_backlight_available()
+
Improvements:
* ecore:
- most allocations moved to mempools
ecore_x_randr_edid_display_interface_type_get(unsigned char *edid,
unsigned long edid_length);
-/* ecore_x_randr_13.c */
+/* ecore_x_randr_12.c */
+
+EAPI Eina_Bool
+ecore_x_randr_output_backlight_available(void);
EAPI void
ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root,
double level);
}
/*
+ * @brief check if a backlight is available
+ * @return whether a blacklight is available
+ */
+
+EAPI Eina_Bool
+ecore_x_randr_output_backlight_available(void)
+{
+#ifdef ECORE_XRANDR
+ RANDR_CHECK_1_2_RET(-1);
+ Atom _backlight;
+
+ _backlight = XInternAtom(_ecore_x_disp, RANDR_PROPERTY_BACKLIGHT, True);
+
+ return (_backlight == None) ? EINA_FALSE : EINA_TRUE;
+
+#endif
+ return EINA_FALSE;
+}
+
+/*
* @brief get the backlight level of the given output
* @param root window which's screen should be queried
* @param output from which the backlight level should be retrieved