| Operations on Ti Groups (*.tig) |
| TIEXPORT2 TigEntry* TICALL tifiles_te_create(const char *filename, FileClass type, CalcModel model) |
| filename : |
internal filename in archive.
|
| type : |
file type (regular or flash)
|
| model : |
calculator model
|
| Return value : |
the allocated block.
|
| TIEXPORT2 int TICALL tifiles_te_delete(TigEntry* entry) |
| entry : |
a #TigEntry structure.
|
| Return value : |
always 0.
|
| TIEXPORT2 int TICALL tifiles_te_display(TigEntry* entry) |
| entry : |
a #TigEntry structure pointer.
|
| Return value : |
an error code, 0 otherwise.
|
| TIEXPORT2 TigEntry** TICALL tifiles_te_create_array(unsigned int nelts) |
| nelts : |
size of NULL-terminated array (number of #TigEntry structures).
|
| Return value : |
the array or NULL if error.
|
| TIEXPORT2 TigEntry** TICALL tifiles_te_resize_array(TigEntry** array, unsigned int nelts) |
| array : |
address of array
|
| nelts : |
size of NULL-terminated array (number of #TigEntry structures).
|
| Return value : |
the array or NULL if error.
|
| TIEXPORT2 void TICALL tifiles_te_delete_array(TigEntry** array) |
| array : |
an NULL-terminated array of TigEntry structures.
|
| Return value : |
none.
|
| TIEXPORT2 int TICALL tifiles_te_sizeof_array(TigEntry** array) |
| array : |
an NULL-terminated array of TigEntry structures.
|
| r : |
number of FileContent entries
|
| f : |
number of FlashContent entries
|
| Return value : |
none.
|
| TIEXPORT2 int TICALL tifiles_content_add_te(TigContent *content, TigEntry *te) |
| content : |
a file content (TiGroup).
|
| te : |
the entry to add
|
| Return value : |
the number of entries.
|
| TIEXPORT2 int TICALL tifiles_content_del_te(TigContent *content, TigEntry *te) |
| content : |
a file content (TiGroup).
|
| te : |
the entry to remove
|
| Return value : |
the number of entries or -1 if not found.
|
| TIEXPORT2 int TICALL tifiles_tigroup_add_file(const char *src_filename, const char *dst_filename) |
| src_filename : |
the file to add to TiGroup file
|
| dst_filename : |
the TiGroup file (must exist!)
|
| Return value : |
0 if successful, an error code otherwise.
|
| TIEXPORT2 int TICALL tifiles_tigroup_del_file(TigEntry *entry, const char *filename) |
| src_filename : |
the file to remove from TiGroup file
|
| dst_filename : |
the TiGroup file
|
| Return value : |
0 if successful, an error code otherwise.
|
| TIEXPORT2 int TICALL tifiles_tigroup_contents(FileContent **src_contents1, FlashContent **src_contents2, TigContent **dst_content) |
| src_contents1 : |
a pointer on an array of #FileContent structures or NULL. The array must be NULL-terminated.
|
| src_contents2 : |
a pointer on an array of #FlashContent structures or NULL. The array must be NULL-terminated.
|
| dst_content : |
the address of a pointer. This pointer will see the allocated TiGroup file.
|
| Return value : |
an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 int TICALL tifiles_untigroup_content(TigContent *src_content, FileContent ***dst_contents1, FlashContent ***dst_contents2) |
| src_content : |
a pointer on the structure to unpack.
|
| dst_contents1 : |
the address of your pointer. This pointers will point on a
|
| dst_contents2 : |
the address of your pointer. This pointers will point on a
|
| Return value : |
an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 int TICALL tifiles_tigroup_files(char **src_filenames, const char *dst_filename) |
| src_filenames : |
a NULL-terminated array of strings (list of files to group).
|
| dst_filename : |
the filename where to store the TiGroup.
|
| Return value : |
an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 int TICALL tifiles_untigroup_file(const char *src_filename, char ***dst_filenames) |
| src_filename : |
full path of file to ungroup.
|
| dst_filenames : |
NULL or the address of a pointer where to store a NULL-terminated
|
| Return value : |
there is no existence check; files may be overwritten !
%dst_filenames must be freed when no longer used.
Return value: an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 TigContent* TICALL tifiles_content_create_tigroup(CalcModel model, unsigned int n) |
| model : |
a calculator model or CALC_NONE.
|
| n : |
number of #tigEntry entries
|
| Return value : |
the allocated block.
|
| TIEXPORT2 int TICALL tifiles_content_delete_tigroup(TigContent *content) |
| Return value : |
none.
|
| TIEXPORT2 int TICALL tifiles_file_read_tigroup(const char *filename, TigContent *content) |
| filename : |
the name of file to load.
|
| content : |
where to store content (may be re-allocated).
|
| Return value : |
an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 int TICALL tifiles_file_write_tigroup(const char *filename, TigContent *content) |
| filename : |
the name of file to load.
|
| content : |
where to store content.
|
| Return value : |
an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 int TICALL tifiles_file_display_tigroup(const char *filename) |
| filename : |
the name of file to load.
|
| Return value : |
an error code if unsuccessful, 0 otherwise.
|
| TIEXPORT2 int TICALL tifiles_file_display_tigcontent(TigContent *content) |
| content : |
the tigroup content to show, TigContent pointer.
|
| Return value : |
an error code, 0 otherwise.
|