Check current value of main display brightness
Simple function which returns current value of brightness for main display.
// PRIVILEGE needed to be set in tizen-manifest.xml:
// http://tizen.org/privilege/display
#include <device/display.h>
#include <dlog.h> // for logging purposes
static int
check_current_brightness() {
int brightness;
device_display_get_brightness(0, &brightness); //The index zero is always assigned to the main display.
LOGI("Current main display brightness value: %d", brightness);
return brightness;
}