Difference between revisions of "Truxton C API"

From truxwiki.com
Jump to navigation Jump to search
Line 194: Line 194:
 
* [[truxton_media_get_expires]] - Retrieves the expiration date of the media
 
* [[truxton_media_get_expires]] - Retrieves the expiration date of the media
 
* [[truxton_media_set_expires]] - Sets the expiration date of the media
 
* [[truxton_media_set_expires]] - Sets the expiration date of the media
* [[truxton_media_get_percent_complete]]
+
* [[truxton_media_get_percent_complete]] - Retrieves the completeness the processing of this media
* [[truxton_media_set_percent_complete]]
+
* [[truxton_media_set_percent_complete]] - Sets the completeness the processing of this media
* [[truxton_media_get_load_configuration_id]]
+
* [[truxton_media_get_load_configuration_id]] - Retrieves the load configuration of this media
* [[truxton_media_set_load_configuration_id]]
+
* [[truxton_media_set_load_configuration_id]] - Sets the load configuration of this media
* [[truxton_media_get_size]]
+
* [[truxton_media_get_size]] - Retrieves the size, in bytes, of the original media
* [[truxton_media_set_size]]
+
* [[truxton_media_set_size]] - Sets the size, in bytes, of the original media
* [[truxton_media_get_latitude]]
+
* [[truxton_media_get_latitude]] - Retrieves the [https://en.wikipedia.org/wiki/Latitude latitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media was seized.
* [[truxton_media_set_latitude]]
+
* [[truxton_media_set_latitude]] - Sets the [https://en.wikipedia.org/wiki/Latitude latitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media was seized.
* [[truxton_media_get_longitude]]
+
* [[truxton_media_get_longitude]] - Retrieves the [https://en.wikipedia.org/wiki/Longitude longitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media was seized.
* [[truxton_media_set_longitude]]
+
* [[truxton_media_set_longitude]] - Sets the [https://en.wikipedia.org/wiki/Longitude longitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media was seized.
 +
* [[truxton_media_get_generated_files_folder_id]] - Retrieves the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the Generated Files folder in the media
 
* [[truxton_media_get_root_file_id]] - Retrieves the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the top level file in the media
 
* [[truxton_media_get_root_file_id]] - Retrieves the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the top level file in the media
* [[truxton_media_add_child]]
+
* [[truxton_media_add_child]] - Created a child file object belonging to this media.
* [[truxton_media_save]]
+
* [[truxton_media_save]] - Saves the media information to the database
* [[truxton_media_tag]]
+
* [[truxton_media_tag]] - Associating a tag with this media
  
 
==Message==
 
==Message==

Revision as of 08:30, 26 July 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