Operations on TI files (single/group only)
|
TIEXPORT2 FileContent* TICALL tifiles_content_create_regular(CalcModel model) |
model : |
a calculator model (required).
|
Return value : |
the allocated block.
|
TIEXPORT2 int TICALL tifiles_content_delete_regular(FileContent *content) |
Return value : |
none.
|
TIEXPORT2 FileContent* TICALL tifiles_content_dup_regular(FileContent *content) |
Return value : |
none.
|
TIEXPORT2 int tifiles_file_read_regular(const char *filename, FileContent *content) |
filename : |
name of single/group file to open.
|
content : |
where to store the file content.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int tifiles_file_write_regular(const char *filename, FileContent *content, char **real_fname) |
filename : |
name of single/group file where to write or NULL.
|
content : |
the file content to write.
|
real_fname : |
pointer address or NULL. Must be freed if needed when no longer needed.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int TICALL tifiles_file_display_regular(FileContent *content) |
content : |
the file content to show.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 BackupContent* TICALL tifiles_content_create_backup(CalcModel model) |
model : |
a calculator model or CALC_NONE.
|
Return value : |
the allocated block.
|
TIEXPORT2 int TICALL tifiles_content_delete_backup(BackupContent *content) |
Return value : |
none.
|
TIEXPORT2 int tifiles_file_read_backup(const char *filename, BackupContent *content) |
filename : |
name of backup file to open.
|
content : |
where to store the file content.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int tifiles_file_write_backup(const char *filename, BackupContent *content) |
filename : |
name of backup file where to write.
|
content : |
the file content to write.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int TICALL tifiles_file_display_backup(BackupContent *content) |
content : |
the file content to show.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 FlashContent* TICALL tifiles_content_create_flash(CalcModel model) |
model : |
a calculator model (compulsory).
|
Return value : |
the allocated block.
|
TIEXPORT2 int TICALL tifiles_content_delete_flash(FlashContent *content) |
Return value : |
none.
|
TIEXPORT2 int tifiles_file_read_flash(const char *filename, FlashContent *content) |
filename : |
name of FLASH file to open.
|
content : |
where to store the file content.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int tifiles_file_write_flash2(const char *filename, FlashContent *content, char **real_fname) |
filename : |
name of flash file where to write or NULL.
|
content : |
the file content to write.
|
real_fname : |
pointer address or NULL. Must be freed if needed when no longer needed.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int tifiles_file_write_flash(const char *filename, FlashContent *content) |
filename : |
name of flash file where to write or NULL.
|
content : |
the file content to write.
|
real_fname : |
pointer address or NULL. Must be freed if needed when no longer needed.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 FlashContent* TICALL tifiles_content_dup_flash(FlashContent *content) |
Return value : |
none.
|
TIEXPORT2 int TICALL tifiles_file_display_flash(FlashContent *content) |
content : |
the file content to show.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int TICALL tifiles_file_display(const char *filename) |
filename : |
a TI file.
|
Return value : |
an error code, 0 otherwise.
|
TIEXPORT2 int** tifiles_create_table_of_entries(FileContent *content, int *nfolders) |
content : |
a TI file content structure.
|
nfolders : |
returns the number of folders in the file.
|
Return value : |
a 2-dimensions allocated integer array. Must be freed when no
longer used.
|