summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2014-12-30 21:00:33 +0900
committerJiwoong Im <jiwoong.im@samsung.com>2014-12-30 21:00:33 +0900
commit6bc2d0eae3d8071fc6c624e1a9dec0664acd3848 (patch)
tree8f8d9b4ee8e0f1988cc39d1129596d005ce4a315 /include
parentd86d0066b93cf402badc408de591e54d6db6c164 (diff)
downloadapp-core-6bc2d0eae3d8071fc6c624e1a9dec0664acd3848.tar.gz
app-core-6bc2d0eae3d8071fc6c624e1a9dec0664acd3848.tar.bz2
app-core-6bc2d0eae3d8071fc6c624e1a9dec0664acd3848.zip
appcore passes system event information to application. Change-Id: Iad10469457c96c331dd260415f5238e6978419ba Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/appcore-common.h4
-rwxr-xr-xinclude/appcore-internal.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/appcore-common.h b/include/appcore-common.h
index cd61e01..1201b6d 100755
--- a/include/appcore-common.h
+++ b/include/appcore-common.h
@@ -201,7 +201,7 @@ int add_callbacks(struct appdata *data)
*
*/
int appcore_set_event_callback(enum appcore_event event,
- int (*cb)(void *), void *data);
+ int (*cb)(void *, void *), void *data);
/**
* @par Description:
@@ -255,7 +255,7 @@ static int _rot_cb(enum appcore_rm, void *);
* @endcode
*
*/
-int appcore_set_rotation_cb(int (*cb) (enum appcore_rm, void *),
+int appcore_set_rotation_cb(int (*cb) (void *event_info, enum appcore_rm, void *),
void *data);
/**
diff --git a/include/appcore-internal.h b/include/appcore-internal.h
index 038e2dc..1d88353 100755
--- a/include/appcore-internal.h
+++ b/include/appcore-internal.h
@@ -132,7 +132,7 @@ enum sys_event {
* Appcore system event operation
*/
struct sys_op {
- int (*func) (void *);
+ int (*func) (void *, void *);
void *data;
};
@@ -170,7 +170,7 @@ int appcore_pause_rotation_cb(void);
int appcore_resume_rotation_cb(void);
struct ui_wm_rotate {
- int (*set_rotation_cb) (int (*cb) (enum appcore_rm, void *), void *data);
+ int (*set_rotation_cb) (int (*cb) (void *event_info, enum appcore_rm, void *), void *data);
int (*unset_rotation_cb) (void);
int (*get_rotation_state) (enum appcore_rm *curr);
int (*pause_rotation_cb) (void);