3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
22 * @brief Power Manager input device poll implementation
24 * This file includes the input device poll implementation.
25 * Default input devices are /dev/event0 and /dev/event1
26 * User can use "PM_INPUT_DEV" for setting another input device poll in an environment file (/etc/profile).
27 * (ex: PM_INPUT_DEV=/dev/event0:/dev/event1:/dev/event5 )
36 * @addtogroup POWER_MANAGER
41 INPUT_POLL_EVENT = -9,
47 #define SOCK_PATH "/tmp/pm_sock"
64 int (*g_pm_callback) (int, PMMsg *);
66 extern int init_pm_poll(int (*pm_callback) (int, PMMsg *));
67 extern int exit_pm_poll();
68 extern int init_pm_poll_input(int (*pm_callback)(int , PMMsg * ), const char *path);
74 #endif /*__PM_POLL_H__ */