Gammu internals  1.38.0
gammu-file.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_file_h
8 #define __gammu_file_h
9 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <gammu-types.h>
20 #include <gammu-datetime.h>
21 #include <gammu-limits.h>
22 
28 typedef struct {
29  size_t Free;
30  size_t Used;
31  size_t UsedImages;
32  size_t UsedSounds;
33  size_t UsedThemes;
35 
41 typedef enum {
57 
59 } GSM_FileType;
60 
66 typedef struct {
70  size_t Used;
74  unsigned char Name[2 * (GSM_MAX_FILENAME_LENGTH + 1)];
82  int Level;
86  GSM_FileType Type;
90  unsigned char ID_FullName[2 * (GSM_MAX_FILENAME_ID_LENGTH + 1)];
94  unsigned char *Buffer;
103 
120 } GSM_File;
121 
136 GSM_Error GSM_JADFindData(GSM_File *File, char *Vendor, char *Name, char *JAR,
137  char *Version, int *Size);
138 
149 GSM_Error GSM_ReadFile(const char *FileName, GSM_File * File);
150 
158 void GSM_IdentifyFileFormat(GSM_File * File);
159 
173  gboolean start);
188  gboolean start);
200 
212 
226 GSM_Error GSM_GetFilePart(GSM_StateMachine * s, GSM_File * File, int *Handle,
227  size_t *Size);
228 
243 GSM_Error GSM_AddFilePart(GSM_StateMachine * s, GSM_File * File, size_t *Pos,
244  int *Handle);
260 GSM_Error GSM_SendFilePart(GSM_StateMachine * s, GSM_File * File, size_t *Pos,
261  int *Handle);
273  GSM_FileSystemStatus * Status);
284 GSM_Error GSM_DeleteFile(GSM_StateMachine * s, unsigned char *ID);
285 
298 
309 GSM_Error GSM_DeleteFolder(GSM_StateMachine * s, unsigned char *ID);
310 #ifdef __cplusplus
311 }
312 #endif
313 #endif
314 
315 /* Editor configuration
316  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
317  */
int Level
Definition: gammu-file.h:82
GSM_Error GSM_SendFilePart(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
Definition: api.c:1778
GSM_Error GSM_DeleteFile(GSM_StateMachine *s, unsigned char *ID)
Definition: api.c:1804
GSM_Error
Definition: gammu-error.h:23
gboolean Folder
Definition: gammu-file.h:78
gboolean ReadOnly
Definition: gammu-file.h:111
#define GSM_MAX_FILENAME_ID_LENGTH
Definition: gammu-limits.h:295
unsigned char * Buffer
Definition: gammu-file.h:94
GSM_Error GSM_AddFilePart(GSM_StateMachine *s, GSM_File *File, size_t *Pos, int *Handle)
Definition: api.c:1765
GSM_FileType Type
Definition: gammu-file.h:86
gboolean Protected
Definition: gammu-file.h:107
size_t Used
Definition: gammu-file.h:70
gboolean System
Definition: gammu-file.h:119
int gboolean
Definition: gammu-types.h:23
GSM_Error GSM_GetFolderListing(GSM_StateMachine *s, GSM_File *File, gboolean start)
Definition: api.c:1712
GSM_Error GSM_GetNextRootFolder(GSM_StateMachine *s, GSM_File *File)
Definition: api.c:1726
GSM_DateTime Modified
Definition: gammu-file.h:98
GSM_Error GSM_GetFileSystemStatus(GSM_StateMachine *s, GSM_FileSystemStatus *Status)
Definition: api.c:1791
gboolean ModifiedEmpty
Definition: gammu-file.h:102
GSM_Error GSM_ReadFile(const char *FileName, GSM_File *File)
Definition: gsmmisc.c:74
#define GSM_MAX_FILENAME_LENGTH
Definition: gammu-limits.h:288
GSM_Error GSM_GetFilePart(GSM_StateMachine *s, GSM_File *File, int *Handle, size_t *Size)
Definition: api.c:1752
GSM_Error GSM_DeleteFolder(GSM_StateMachine *s, unsigned char *ID)
Definition: api.c:1830
GSM_Error GSM_GetNextFileFolder(GSM_StateMachine *s, GSM_File *File, gboolean start)
Definition: api.c:1698
GSM_Error GSM_AddFolder(GSM_StateMachine *s, GSM_File *File)
Definition: api.c:1817
GSM_FileType
Definition: gammu-file.h:41
GSM_Error GSM_SetFileAttributes(GSM_StateMachine *s, GSM_File *File)
Definition: api.c:1739
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:115