00001 /* 00002 * This file is part of pageBar. 00003 * 00004 * pageBar 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 * pageBar 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 00029 #include <liberipc/eripc.h> 00030 #include <liberipc/eripcbusyd.h> 00031 00032 static erClientChannel_t erbusyChannel; 00033 00034 void erbusy_init() 00035 { 00036 //CL_IPCPRINTF("entry"); 00037 erIpcStartClient(ER_BUSYD_CHANNEL, &erbusyChannel); 00038 } 00039 00040 00041 static void erbusy_request(eCcBusyState busy) 00042 { 00043 //CL_IPCPRINTF("entry %d", busy); 00044 busySetBusy(erbusyChannel, busy); 00045 return; 00046 } 00047 00048 void erbusy_off() 00049 { 00050 erbusy_request(ccBusyState_Off); 00051 } 00052 00053 void erbusy_blink() 00054 { 00055 erbusy_request(ccBusyState_Blink); 00056 } 00057 00058 void erbusy_on() 00059 { 00060 erbusy_request(ccBusyState_On); 00061 } 00062 00063 void erbusy_shutdown() 00064 { 00065 erbusy_request(ccBusyState_Shutdown); 00066 } 00067