Gammu API
1.38.0
|
Data Structures | |
struct | GSM_FileSystemStatus |
struct | GSM_File |
Files handling.
enum GSM_FileType |
File type identifier.
Definition at line 41 of file gammu-file.h.
GSM_Error GSM_AddFilePart | ( | GSM_StateMachine * | s, |
GSM_File * | File, | ||
size_t * | Pos, | ||
int * | Handle | ||
) |
Adds file to filesystem. Call repeatedly until function returns ERR_EMPTY.
s | State machine pointer. |
File | File structure and data. |
Pos | Position of transmitted data. Should be 0 on start. |
Handle | Handle for saving file, some drivers need this information to be kept between function calls. |
GSM_Error GSM_AddFolder | ( | GSM_StateMachine * | s, |
GSM_File * | File | ||
) |
Adds folder to filesystem.
s | State machine pointer. |
File | Structure containing information about new folder (Name and FullName). |
GSM_Error GSM_DeleteFile | ( | GSM_StateMachine * | s, |
unsigned char * | ID | ||
) |
Deletes file from filesystem.
s | State machine pointer. |
ID | ID of folder. |
GSM_Error GSM_DeleteFolder | ( | GSM_StateMachine * | s, |
unsigned char * | ID | ||
) |
Deletes folder from filesystem.
s | State machine pointer. |
ID | ID of folder. |
GSM_Error GSM_GetFilePart | ( | GSM_StateMachine * | s, |
GSM_File * | File, | ||
int * | Handle, | ||
size_t * | Size | ||
) |
Retrieves file part.
s | State machine pointer. |
File | File structure with path, data will be stored here. |
Size | Size of transmitted data. |
Handle | Handle for saving file, some drivers need this information to be kept between function calls. |
GSM_Error GSM_GetFileSystemStatus | ( | GSM_StateMachine * | s, |
GSM_FileSystemStatus * | Status | ||
) |
Acquires filesystem status.
s | State machine pointer. |
Status | Storage for status information. |
GSM_Error GSM_GetFolderListing | ( | GSM_StateMachine * | s, |
GSM_File * | File, | ||
gboolean | start | ||
) |
Gets listing of folder.
s | State machine pointer. |
File | File structure where path will be stored, if start is FALSE, it should contain data from previous reading (at least ID). On start it should contain path to directory. |
start | Whether we're starting transfer. |
GSM_Error GSM_GetNextFileFolder | ( | GSM_StateMachine * | s, |
GSM_File * | File, | ||
gboolean | start | ||
) |
Gets next filename from filesystem.
s | State machine pointer. |
File | File structure where path will be stored, if start is FALSE, it should contain data from previous reading (at least ID). |
start | Whether we're starting transfer. |
GSM_Error GSM_GetNextRootFolder | ( | GSM_StateMachine * | s, |
GSM_File * | File | ||
) |
Gets next root folder.
s | State machine pointer. |
File | File structure where path will be stored. |
void GSM_IdentifyFileFormat | ( | GSM_File * | File | ) |
Identifies file format by checking it's content.
File | File data, Type member will be filled in. |
GSM_Error GSM_JADFindData | ( | GSM_File * | File, |
char * | Vendor, | ||
char * | Name, | ||
char * | JAR, | ||
char * | Version, | ||
int * | Size | ||
) |
Parses JAD file.
File | JAD file data. |
Vendor | Buffer for vendor name. |
Name | Buffer for application name. |
JAR | Buffer for JAR URL. |
Version | Buffer for version of application. |
Size | Pointer to integer to store size. |
Reads file from filesystem to GSM_File structure.
FileName | File to read. |
File | Storage for data. |
GSM_Error GSM_SendFilePart | ( | GSM_StateMachine * | s, |
GSM_File * | File, | ||
size_t * | Pos, | ||
int * | Handle | ||
) |
Sends file to phone, it's up to phone to decide what to do with it. It is usually same as when you receive file over Bluetooth from other phone. Use in same way as GSM_AddFilePart.
s | State machine pointer. |
File | File structure and data. |
Pos | Position of transmitted data. Should be 0 on start. |
Handle | Handle for saving file, some drivers need this information to be kept between function calls. |
GSM_Error GSM_SetFileAttributes | ( | GSM_StateMachine * | s, |
GSM_File * | File | ||
) |
Sets file system attributes.
s | State machine pointer. |
File | File structure with path and attributes. |