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 00027 /* contentLister - A GTK based content lister (read only) application on the eReader platform 00028 * Copyright (C) 2006-2008 iRex Technologies 00029 * 00030 */ 00031 #define PINCODE_MIN_LENGTH 4 00032 #define PINCODE_MAX_LENGTH 9// 0x0FFFFFFF = 268435455 00033 00034 #define POWERMGMTIFACE "/dev/battery" 00035 00036 #define BATTERY_IOCTL_BASE 'b' 00037 #define BATTERY_IOCTL_READ_CURRENT _IOR( BATTERY_IOCTL_BASE,16,unsigned int) 00038 00039 00040 // Exec a command like the shell would. - func by p.blundell 00041 int shell_exec (const char *cmd); 00042 00043 // Execute specified command with arguments in child process 00044 int fork_exec (const int argc, char *const argv[]); 00045 00046 // Read Connect_After_Rewboot flag from sysset area 00047 int scGet_Reconnect(gboolean* connect_after_reboot); 00048 00049 // Check whether battery is charging or not 00050 gboolean is_battery_charging(void); 00051 00052 // Sysset access for pincode settings 00053 gint sysset_read_pincode_onoff(gboolean* enable); 00054 gint sysset_read_pincode_string(gchar* pincode); 00055 gboolean sysset_is_pincode_empty(); 00056 00057 // Read MAC address from sysset area 00058 const char* get_sysset_macAddress(void); 00059 00060 // Delete file-system item: file, symlink or directory 00061 gboolean delete_fsitem(const gchar* path); 00062