diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2015-05-22 14:07:23 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2015-05-22 14:07:23 +0900 |
commit | c3514528012ca72e221b365eb430b0fea62d67d0 (patch) | |
tree | 86086a49b742d16ee43e04d675236a1b7c39d15f | |
parent | 2f1a34a3028eb80dfb68c78fedd527c5ac762d65 (diff) | |
download | deviced-c3514528012ca72e221b365eb430b0fea62d67d0.tar.gz deviced-c3514528012ca72e221b365eb430b0fea62d67d0.tar.bz2 deviced-c3514528012ca72e221b365eb430b0fea62d67d0.zip |
deviced: Add GetBrightnessForCamera method in torch led module
GetBrightnessForCamera is for camera library.
Currently they do not have a daemon for camera,
but they need to get camera brightness value without led priv.
So security team and mmfw team guys agreed to add temporarily method.
It's a temporary solution on Tizen 2.4 and will be removed asap.
Change-Id: I2f0b1c95c2fcb4535efb0958a32ce93f8f509d01
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
-rw-r--r-- | src/led/torch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/led/torch.c b/src/led/torch.c index 8e9dff50..4bf581d2 100644 --- a/src/led/torch.c +++ b/src/led/torch.c @@ -143,6 +143,13 @@ error: } static const struct edbus_method edbus_methods[] = { + /** + * GetBrightnessForCamera is for camera library. + * Currently they do not have a daemon for camera, + * but they need to get camera brightness value without led priv. + * It's a temporary solution on Tizen 2.4 and will be removed asap. + */ + { "GetBrightnessForCamera", NULL, "i", edbus_get_brightness }, { "GetBrightness", NULL, "i", edbus_get_brightness }, { "GetMaxBrightness", NULL, "i", edbus_get_max_brightness }, { "SetBrightness", "ii", "i", edbus_set_brightness }, |