Gammu internals
1.32.90
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
;
27
int
UsedImages
;
28
int
UsedSounds
;
29
int
UsedThemes
;
30
}
GSM_FileSystemStatus
;
31
37
typedef
enum
{
38
GSM_File_Other
= 1,
39
GSM_File_Java_JAR
,
40
GSM_File_Image_JPG
,
41
GSM_File_Image_BMP
,
42
GSM_File_Image_GIF
,
43
GSM_File_Image_PNG
,
44
GSM_File_Image_WBMP
,
45
GSM_File_Video_3GP
,
46
GSM_File_Sound_AMR
,
50
GSM_File_Sound_NRT
,
51
GSM_File_Sound_MIDI
,
52
GSM_File_MMS
53
}
GSM_FileType
;
54
60
typedef
struct
{
64
size_t
Used
;
68
unsigned
char
Name[2 * (
GSM_MAX_FILENAME_LENGTH
+ 1)];
72
gboolean
Folder
;
76
int
Level
;
80
GSM_FileType
Type
;
84
unsigned
char
ID_FullName[2 * (
GSM_MAX_FILENAME_ID_LENGTH
+ 1)];
88
unsigned
char
*
Buffer
;
92
GSM_DateTime
Modified
;
96
gboolean
ModifiedEmpty
;
97
101
gboolean
Protected
;
105
gboolean
ReadOnly
;
109
gboolean
Hidden
;
113
gboolean
System
;
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
166
GSM_Error
GSM_GetNextFileFolder
(
GSM_StateMachine
* s,
GSM_File
* File,
167
gboolean
start);
181
GSM_Error
GSM_GetFolderListing
(
GSM_StateMachine
* s,
GSM_File
* File,
182
gboolean
start);
193
GSM_Error
GSM_GetNextRootFolder
(
GSM_StateMachine
* s,
GSM_File
* File);
194
205
GSM_Error
GSM_SetFileAttributes
(
GSM_StateMachine
* s,
GSM_File
* File);
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);
254
GSM_Error
GSM_SendFilePart
(
GSM_StateMachine
* s,
GSM_File
* File,
int
*Pos,
255
int
*Handle);
266
GSM_Error
GSM_GetFileSystemStatus
(
GSM_StateMachine
* s,
267
GSM_FileSystemStatus
* Status);
278
GSM_Error
GSM_DeleteFile
(
GSM_StateMachine
* s,
unsigned
char
*ID);
279
291
GSM_Error
GSM_AddFolder
(
GSM_StateMachine
* s,
GSM_File
* File);
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
*/
include
gammu-file.h
Generated on Mon May 20 2013 23:20:33 for Gammu internals by
1.8.1.2