Difference between revisions of "File Export Criteria"

From truxwiki.com
Jump to navigation Jump to search
Line 23: Line 23:
 
| Sets the maximum length of the file to export. This corresponds to the <code>[OSLength]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table.
 
| Sets the maximum length of the file to export. This corresponds to the <code>[OSLength]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table.
 
|-
 
|-
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_HASH</code>
+
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_HASH</code>File_Table#HashID
 
| style="text-align:center;" | 4
 
| style="text-align:center;" | 4
| Sets the desired hash of the file to export. This corresponds to the <code>[HashID]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table.
+
| Sets the desired hash of the file to export. This corresponds to the <code><nowiki>[</nowiki>[[File Table#HashID|HashID]]<nowiki>]</nowiki></code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table.
 
|-
 
|-
 
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_NAME</code>
 
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_NAME</code>
Line 41: Line 41:
 
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_TYPE</code>
 
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_TYPE</code>
 
| style="text-align:center;" | 8
 
| style="text-align:center;" | 8
| The [[File Types Supported|File Types Supported]]type of the desired file. This corresponds to the <code>[FileTypeID]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table.
+
| The [[File Types Supported|type]] of the desired file. This corresponds to the <code>[FileTypeID]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table.
 
|-
 
|-
 
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_PARENT_ID</code>
 
| <code>TRUXTON_EXPORT_FILE_QUERY_FIELD_PARENT_ID</code>

Revision as of 15:56, 5 May 2025

These defined constants represent the criteria you can set for exporting files from Truxton. These are the values used in the field parameter of the truxton_file_export_add_criteria() API.

Name Value Meaning
TRUXTON_EXPORT_FILE_QUERY_FIELD_UNKNOWN 0 We don't know what the criteria is.
TRUXTON_EXPORT_FILE_QUERY_FIELD_SIZE 1 The size of the file to export. This corresponds to the [OSLength] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_SIZE_MINIMUM 2 Sets the minimum length of the file to export. This corresponds to the [OSLength] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_SIZE_MAXIMUM 3 Sets the maximum length of the file to export. This corresponds to the [OSLength] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_HASHFile_Table#HashID 4 Sets the desired hash of the file to export. This corresponds to the [HashID] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_NAME 5 Not supported at this time.
TRUXTON_EXPORT_FILE_QUERY_FIELD_NAME_LIKE 6 Not supported at this time.
TRUXTON_EXPORT_FILE_QUERY_FIELD_NAME_ID 7 Not supported at this time.
TRUXTON_EXPORT_FILE_QUERY_FIELD_TYPE 8 The type of the desired file. This corresponds to the [FileTypeID] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_PARENT_ID 9 Sets the identifier of the parent of the desired file. This corresponds to the [ParentFileID] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_ID 10 Sets the identifier of the desired file. This corresponds to the [ID] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_MEDIA 11 Sets the identifier of the media of the desired file. This corresponds to the [MediaID] column of the [File] table.
TRUXTON_EXPORT_FILE_QUERY_FIELD_LIMIT 12 Sets the maximum number of files to export.