Difference between revisions of "Truxton C API"

From truxwiki.com
Jump to navigation Jump to search
Line 368: Line 368:
 
* [[truxton_file_type_destroy]] - Deallocates any resources assigned to the file object.
 
* [[truxton_file_type_destroy]] - Deallocates any resources assigned to the file object.
 
* [[truxton_file_type_get_id]] - Retrieves the identifier you assigned to this object.
 
* [[truxton_file_type_get_id]] - Retrieves the identifier you assigned to this object.
* [[truxton_file_type_set_id]] - Sets the unique identifier. This corresponds to the <code>ID</code> column of the <code>FileType</code> table.
+
* [[truxton_file_type_set_id]] - Sets the unique identifier. This corresponds to the <code>[ID]</code> column of the <code>[FileType]</code> table.
 
* [[truxton_file_type_get_parent_id]] - Retrieves the parent identifier you assigned to this object.
 
* [[truxton_file_type_get_parent_id]] - Retrieves the parent identifier you assigned to this object.
* [[truxton_file_type_set_parent_id]] - Sets the more generic type of the file. This corresponds to the <code>ParentFileTypeID</code> column of the <code>FileType</code> table.
+
* [[truxton_file_type_set_parent_id]] - Sets the more generic type of the file. This corresponds to the <code>[ParentFileTypeID]</code> column of the <code>[FileType]</code> table.
 
* [[truxton_file_type_get_short_name]] - Retrieves the short name you assigned to this object.
 
* [[truxton_file_type_get_short_name]] - Retrieves the short name you assigned to this object.
* [[truxton_file_type_set_short_name]] - Sets the short name to use for this file type. This corresponds to the <code>ShortName</code> column of the <code>FileType</code> table.
+
* [[truxton_file_type_set_short_name]] - Sets the short name to use for this file type. This corresponds to the <code>[ShortName]</code> column of the <code>[FileType]</code> table.
 
* [[truxton_file_type_get_long_name]] - Retrieves the longer description you assigned to this object.
 
* [[truxton_file_type_get_long_name]] - Retrieves the longer description you assigned to this object.
* [[truxton_file_type_set_long_name]] - Sets the longer description of the file type. This corresponds to the <code>LongName</code> column of the <code>FileType</code> table.
+
* [[truxton_file_type_set_long_name]] - Sets the longer description of the file type. This corresponds to the <code>[LongName]</code> column of the <code>[FileType]</code> table.
 
* [[truxton_file_type_get_extension]] - Retrieves the [https://en.wikipedia.org/wiki/Filename_extension file name extension] you assigned to this object.
 
* [[truxton_file_type_get_extension]] - Retrieves the [https://en.wikipedia.org/wiki/Filename_extension file name extension] you assigned to this object.
 
* [[truxton_file_type_set_extension]] - Sets the [https://en.wikipedia.org/wiki/Filename_extension file name extension] for this object.  
 
* [[truxton_file_type_set_extension]] - Sets the [https://en.wikipedia.org/wiki/Filename_extension file name extension] for this object.  
* [[truxton_file_type_get_mime_type]] - Retrieves the [https://en.wikipedia.org/wiki/Media_type MIME type] you assigned to this object. This corresponds to the <code>Extension</code> column of the <code>FileType</code> table.
+
* [[truxton_file_type_get_mime_type]] - Retrieves the [https://en.wikipedia.org/wiki/Media_type MIME type] you assigned to this object. This corresponds to the <code>[Extension]</code> column of the <code>[FileType]</code> table.
* [[truxton_file_type_set_mime_type]] - Sets the [https://en.wikipedia.org/wiki/Media_type MIME type]. This corresponds to the <code>MIME</code> column of the <code>FileType</code> table.
+
* [[truxton_file_type_set_mime_type]] - Sets the [https://en.wikipedia.org/wiki/Media_type MIME type]. This corresponds to the <code>MIME</code> column of the <code>[FileType]</code> table.
* [[truxton_file_type_save]] - This will write the information in the object to the <code>FileType</code> table.
+
* [[truxton_file_type_save]] - This will write the information in the object to the <code>[FileType]</code> table.
  
 
==Geographic Location==
 
==Geographic Location==

Revision as of 10:55, 3 November 2020

Truxton functionality is exposed to the C programming world as a DLL named TruxtonCAPI.dll in the C:\Program Files\Truxton\SDK folder. This DLL can be called from any programming language that has the ability to make operating system calls.

Philosophy

The API is considered to be "flat" in that only sixty-four bit integers and ASCII character strings are used in the interface. This was chosen to make it easy for other languages to interface to. The coding convention is all lower case names with underscores separating words. Truxton is a member of the east const posse.

API Groups

The API is broken down into the different areas of Truxton.

Initialization

Functions

ETL Functions

Child Files

A child file is one that you have created and need to save in Truxton.

Creating things related to this file:

File IO

File Record Fields

File Actions

These are things your can do to a file. These are not data items stored in the database.

Create Objects from File

The following APIs are used to create objects with a file as their parent.

Debugging

Media

These are the API's that allow you to add to the Media table in the database.

Message

This is the message sent on the message bus between the ETL processes.

File Export

Artifacts

Event

EXIF (Camera Information)

File Type

Geographic Location

Options

Truxton "options" are otherwise known as configuration settings, command line options, etc. They are configuration items that your program can use.

Relation

Website Visit

USB Device