00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings 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 * settings 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 00032 #define PINCODE_MIN_LENGTH 4 00033 #define PINCODE_MAX_LENGTH 9// 0x0FFFFFFF = 268435455 00034 00035 /* Exec a command like the shell would. - func by p.blundell*/ 00036 int shell_exec (const char *cmd); 00037 00038 /* Read MAC address from sysset area */ 00039 const char *get_sysset_macAddress (int offset); 00040 const char *get_wired_macAddress (void); 00041 const char *get_wireless_macAddress(void); 00042 const char *get_sysset_product_id(void); 00043 00044 /* Read MAC address from wired interface area */ 00045 00046 00047 gint sysset_read_pincode_onoff (gboolean * enbale); 00048 00049 gint sysset_write_pincode_onoff (gboolean enable); 00050 00051 gint sysset_read_pincode_string (gchar * pincode); 00052 // 00053 gint sysset_write_pincode_string (const gchar * pincode); 00054 00055 gboolean sysset_is_pincode_empty (); 00056 const char *get_sysset_fa_model(void); 00057 int get_sysset_fa_region(void); 00058 const char *get_sysset_fa_oem_code(void); 00059 const char *get_sysset_fa_country_code(void); 00060 int get_sysset_pa_board_revision(void); 00061 00062 const char *get_sysset_epd_id(void);
1.5.6