summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9033b3d)
Change-Id: I11bc8d51b91572e44087f70101c3ae66d56c8278
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
EXPORT_API int appcore_base_get_rotation_state(enum appcore_base_rm *curr)
{
EXPORT_API int appcore_base_get_rotation_state(enum appcore_base_rm *curr)
{
+ if (curr == NULL)
+ return -1;
+
+ if (!__rotation.ref)
+ return -1;
+
+ *curr = __rotation.rm;