00001 #ifndef __IPC_H 00002 #define __IPC_H 00003 00004 /** 00005 * File Name : ipc.h 00006 * 00007 * Description: Internationalization and localization 00008 */ 00009 00010 /* 00011 * This file is part of settings. 00012 * 00013 * settings is free software: you can redistribute it and/or modify 00014 * it under the terms of the GNU General Public License as published by 00015 * the Free Software Foundation, either version 2 of the License, or 00016 * (at your option) any later version. 00017 * 00018 * settings is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 */ 00026 00027 /** 00028 * Copyright (C) 2008 iRex Technologies B.V. 00029 * All rights reserved. 00030 */ 00031 00032 00033 //============================================================================ 00034 // Public Functions 00035 //============================================================================ 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 /**--------------------------------------------------------------------------- 00042 * 00043 * Name : ipc_set_services 00044 * 00045 * @brief Setup IPC connection and register API functions 00046 * 00047 * @param -- 00048 * 00049 * @return -- 00050 * 00051 *--------------------------------------------------------------------------*/ 00052 gboolean ipc_set_services ( void ); 00053 00054 /**--------------------------------------------------------------------------- 00055 * 00056 * Name : ipc_unset_services 00057 * 00058 * @brief Unregister API functions 00059 * 00060 * @param -- 00061 * 00062 * @return -- 00063 * 00064 *--------------------------------------------------------------------------*/ 00065 void ipc_unset_services ( void ); 00066 00067 /**--------------------------------------------------------------------------- 00068 * 00069 * Name : ipc_sys_startup_complete 00070 * 00071 * @brief Report "settings started" to sysd 00072 * 00073 * @param -- 00074 * 00075 * @return -- 00076 * 00077 *--------------------------------------------------------------------------*/ 00078 void ipc_sys_startup_complete ( void ); 00079 00080 00081 /**--------------------------------------------------------------------------- 00082 * 00083 * Name : ipc_set_stylus 00084 * 00085 * @brief Request popup menu state 00086 * 00087 * @param state [Input] State ("enable", "disable", "suspend", "resume", 00088 * "high", "normal") 00089 * 00090 * @return FALSE if failed to set stylus state 00091 * 00092 *--------------------------------------------------------------------------*/ 00093 gboolean ipc_set_stylus(const char* state); 00094 00095 #ifdef __cplusplus 00096 } 00097 #endif 00098 00099 00100 #endif // __IPC_H