Gammu internals  1.33.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 
55 } GSM_FileType;
56 
62 typedef struct {
66  size_t Used;
70  unsigned char Name[2 * (GSM_MAX_FILENAME_LENGTH + 1)];
78  int Level;
86  unsigned char ID_FullName[2 * (GSM_MAX_FILENAME_ID_LENGTH + 1)];
90  unsigned char *Buffer;
99 
116 } GSM_File;
117 
132 GSM_Error GSM_JADFindData(GSM_File *File, char *Vendor, char *Name, char *JAR,
133  char *Version, int *Size);
134 
145 GSM_Error GSM_ReadFile(const char *FileName, GSM_File * File);
146 
154 void GSM_IdentifyFileFormat(GSM_File * File);
155 
169  gboolean start);
184  gboolean start);
196 
208 
222 GSM_Error GSM_GetFilePart(GSM_StateMachine * s, GSM_File * File, int *Handle,
223  int *Size);
224 
239 GSM_Error GSM_AddFilePart(GSM_StateMachine * s, GSM_File * File, int *Pos,
240  int *Handle);
257  int *Handle);
269  GSM_FileSystemStatus * Status);
280 GSM_Error GSM_DeleteFile(GSM_StateMachine * s, unsigned char *ID);
281 
294 
305 GSM_Error GSM_DeleteFolder(GSM_StateMachine * s, unsigned char *ID);
306 #endif
307 
308 /* Editor configuration
309  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
310  */
int Level
Definition: gammu-file.h:78
GSM_Error GSM_DeleteFile(GSM_StateMachine *s, unsigned char *ID)
Definition: api.c:1797
GSM_Error GSM_GetFilePart(GSM_StateMachine *s, GSM_File *File, int *Handle, int *Size)
Definition: api.c:1745
GSM_Error
Definition: gammu-error.h:19
gboolean Folder
Definition: gammu-file.h:74
gboolean ReadOnly
Definition: gammu-file.h:107
#define GSM_MAX_FILENAME_ID_LENGTH
Definition: gammu-limits.h:291
unsigned char * Buffer
Definition: gammu-file.h:90
GSM_Error GSM_AddFilePart(GSM_StateMachine *s, GSM_File *File, int *Pos, int *Handle)
Definition: api.c:1758
GSM_FileType Type
Definition: gammu-file.h:82
gboolean Protected
Definition: gammu-file.h:103
size_t Used
Definition: gammu-file.h:66
gboolean System
Definition: gammu-file.h:115
int gboolean
Definition: gammu-types.h:19
GSM_Error GSM_SendFilePart(GSM_StateMachine *s, GSM_File *File, int *Pos, int *Handle)
Definition: api.c:1771
GSM_Error GSM_GetFolderListing(GSM_StateMachine *s, GSM_File *File, gboolean start)
Definition: api.c:1705
GSM_Error GSM_GetNextRootFolder(GSM_StateMachine *s, GSM_File *File)
Definition: api.c:1719
GSM_DateTime Modified
Definition: gammu-file.h:94
GSM_Error GSM_GetFileSystemStatus(GSM_StateMachine *s, GSM_FileSystemStatus *Status)
Definition: api.c:1784
gboolean ModifiedEmpty
Definition: gammu-file.h:98
GSM_Error GSM_ReadFile(const char *FileName, GSM_File *File)
Definition: gsmmisc.c:74
#define GSM_MAX_FILENAME_LENGTH
Definition: gammu-limits.h:284
GSM_Error GSM_DeleteFolder(GSM_StateMachine *s, unsigned char *ID)
Definition: api.c:1823
GSM_Error GSM_GetNextFileFolder(GSM_StateMachine *s, GSM_File *File, gboolean start)
Definition: api.c:1691
GSM_Error GSM_AddFolder(GSM_StateMachine *s, GSM_File *File)
Definition: api.c:1810
GSM_FileType
Definition: gammu-file.h:37
GSM_Error GSM_SetFileAttributes(GSM_StateMachine *s, GSM_File *File)
Definition: api.c:1732
void GSM_IdentifyFileFormat(GSM_File *File)
Definition: gsmmisc.c:164
GSM_Error GSM_JADFindData(GSM_File *File, char *Vendor, char *Name, char *JAR, char *Version, int *Size)
Definition: gsmmisc.c:136
gboolean Hidden
Definition: gammu-file.h:111