Gammu internals  1.37.1
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  int Free;
30  int Used;
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;
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  int *Size);
228 
243 GSM_Error GSM_AddFilePart(GSM_StateMachine * s, GSM_File * File, int *Pos,
244  int *Handle);
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_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: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, int *Pos, int *Handle)
Definition: api.c:1758
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_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:98
GSM_Error GSM_GetFileSystemStatus(GSM_StateMachine *s, GSM_FileSystemStatus *Status)
Definition: api.c:1784
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_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:41
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:115