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 00023 #ifndef _ERMSDISK_H 00024 #define _ERMSDISK_H 00025 00026 #include "stack.h" 00027 00028 #define CMD_LEN 32 00029 #define PROCFS_MOUNT_FILE "/proc/mounts" 00030 00031 typedef enum 00032 { 00033 expMain = 0, 00034 expMMC, 00035 expUSB, 00036 expCF, 00037 expUndefined 00038 } expMemType_e; 00039 00040 #ifdef __cplusplus 00041 extern "C" 00042 { 00043 #endif /* __cplusplus */ 00044 00045 void erMSDiskInit(); 00046 void erStartMSDiskApp(); 00047 void erStopMSDiskApp(); 00048 int erMSDiskSetConnected(int connected); 00049 expMemType_e get_exported_memory_type(void); 00050 inline expMemType_e get_memory_type_used(); 00051 00052 // Handle card plug in/out 00053 void erMSDisk_storage_changed(st_ContentType_e storageType, gboolean storagePresent); 00054 00055 // Handle settings changed 00056 void erMSDisk_handle_reread_settings(); 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif /* __cplusplus */ 00061 00062 #endif