Gammu internals  1.32.90
gammu-file.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_file_h
8 #define __gammu_file_h
9 
15 #include <gammu-types.h>
16 #include <gammu-datetime.h>
17 #include <gammu-limits.h>
18 
24 typedef struct {
25  int Free;
26  int Used;
31 
37 typedef enum {
53 } GSM_FileType;
54 
60 typedef struct {
64  size_t Used;
68  unsigned char Name[2 * (GSM_MAX_FILENAME_LENGTH + 1)];
76  int Level;
84  unsigned char ID_FullName[2 * (GSM_MAX_FILENAME_ID_LENGTH + 1)];
88  unsigned char *Buffer;
97 
114 } GSM_File;
115 
130 GSM_Error GSM_JADFindData(GSM_File *File, char *Vendor, char *Name, char *JAR,
131  char *Version, int *Size);
132 
143 GSM_Error GSM_ReadFile(const char *FileName, GSM_File * File);
144 
152 void GSM_IdentifyFileFormat(GSM_File * File);
153 
167  gboolean start);
182  gboolean start);
194 
206 
220 GSM_Error GSM_GetFilePart(GSM_StateMachine * s, GSM_File * File, int *Handle,
221  int *Size);
222 
237 GSM_Error GSM_AddFilePart(GSM_StateMachine * s, GSM_File * File, int *Pos,
238  int *Handle);
255  int *Handle);
267  GSM_FileSystemStatus * Status);
278 GSM_Error GSM_DeleteFile(GSM_StateMachine * s, unsigned char *ID);
279 
292 
303 GSM_Error GSM_DeleteFolder(GSM_StateMachine * s, unsigned char *ID);
304 #endif
305 
306 /* Editor configuration
307  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
308  */