00001 /* 00002 * This file is part of browser. 00003 * 00004 * browser is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * browser is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00024 #include <liberipc/eripc.h> 00025 #include <liberipc/eripcbusyd.h> 00026 #include "browserLog.h" 00027 00028 static erClientChannel_t erbusyChannel; 00029 00030 void erbusy_init() 00031 { 00032 BR_IPCPRINTF("entry"); 00033 erIpcStartClient(ER_BUSYD_CHANNEL, &erbusyChannel); 00034 } 00035 00036 00037 static void erbusy_request(eCcBusyState busy) 00038 { 00039 BR_IPCPRINTF("entry %d", busy); 00040 busySetBusy(erbusyChannel, busy); 00041 return; 00042 } 00043 00044 void erbusy_off() 00045 { 00046 erbusy_request(ccBusyState_Off); 00047 } 00048 00049 void erbusy_blink() 00050 { 00051 erbusy_request(ccBusyState_Blink); 00052 } 00053 00054 void erbusy_on() 00055 { 00056 erbusy_request(ccBusyState_On); 00057 } 00058 00059 void erbusy_shutdown() 00060 { 00061 erbusy_request(ccBusyState_Shutdown); 00062 } 00063
1.5.6