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