4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seunghun Pi <sh.pi@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 #ifndef __POWER_MANAGER_LIBRARY_MANAGED_H__
24 #define __POWER_MANAGER_LIBRARY_MANAGED_H__
31 * @fn int pm_change_state(unsigned int state);
32 * @brief This API is used to change the power manager state by force.
33 * @param[in] state power manager state - LCD_NORMAL, LCD_DIM, LCD_OFF
34 * @return 0 on success, -1 if failed.
35 * @see pm_lock_state(), pm_unlock_state()
39 * result = pm_change_state(LCD_OFF);
41 * printf("[ERROR] return value result =%d, \n",result);
43 * printf("[SUCCESS]return value result =%d \n",result);
47 int pm_change_state(unsigned int);
52 #endif /* __POWER_MANAGER_LIBRARY_MANAGED_H__ */