Grouping/Ungrouping of TI files
|
TIEXPORT2 FileContent** TICALL tifiles_content_create_group(int n_entries) |
n : |
number of variables to allocate
|
Return value : |
the array or NULL if failed.
|
TIEXPORT2 int TICALL tifiles_content_delete_group(FileContent **array) |
Return value : |
always 0.
|
TIEXPORT2 int TICALL tifiles_group_contents(FileContent **src_contents, FileContent **dst_content) |
src_contents : |
a pointer on an array of #FileContent structures. The array must be NULL-terminated.
|
dst_content : |
the address of a pointer. This pointer will see the allocated group file.
|
Return value : |
an error code if unsuccessful, 0 otherwise.
|
TIEXPORT2 int TICALL tifiles_ungroup_content(FileContent *src, FileContent ***dest) |
src_content : |
a pointer on the structure to unpack.
|
dst_contents : |
the address of your pointer. This pointers will point on a
|
Return value : |
an error code if unsuccessful, 0 otherwise.
|
TIEXPORT2 int TICALL tifiles_group_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 group.
|
Return value : |
an error code if unsuccessful, 0 otherwise.
|
TIEXPORT2 int TICALL tifiles_ungroup_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 int TICALL tifiles_content_add_entry(FileContent *content, VarEntry *ve) |
content : |
a file content (single/group only).
|
ve : |
the entry to add
|
Return value : |
the number of entries.
|
TIEXPORT2 int TICALL tifiles_content_del_entry(FileContent *content, VarEntry *ve) |
content : |
a file content (single/group only).
|
ve : |
the entry to remove
|
Return value : |
the number of entries or -1 if not found.
|
TIEXPORT2 int TICALL tifiles_group_add_file(const char *src_filename, const char *dst_filename) |
src_filename : |
the file to add to group file
|
dst_filename : |
the group file
|
Return value : |
0 if successful, an error code otherwise.
|
TIEXPORT2 int TICALL tifiles_group_del_file(VarEntry *entry, const char *dst_filename) |
src_filename : |
the file to remove from group file
|
dst_filename : |
the group file
|
Return value : |
0 if successful, an error code otherwise.
|