Difference between revisions of "Truxton C API"

From truxwiki.com
Jump to navigation Jump to search
Line 213: Line 213:
 
This is the message sent on the message bus between the ETL processes.
 
This is the message sent on the message bus between the ETL processes.
  
* [[truxton_message_create]]
+
* [[truxton_message_create]] - Creates a new message object
* [[truxton_message_destroy]]
+
* [[truxton_message_destroy]] - Destroys the message object
* [[truxton_message_get_queue_is_empty]]
+
* [[truxton_message_get_queue_is_empty]] - Tells you if the message queue is empty
* [[truxton_message_set_queue_is_empty]]
+
* [[truxton_message_set_queue_is_empty]] - Sets the empty-queue attribute
* [[truxton_message_get_route_id]]
+
* [[truxton_message_get_route_id]] - Retrieves the route this message is taking
* [[truxton_message_set_route_id]]
+
* [[truxton_message_set_route_id]] - Sets the route the message should take
* [[truxton_message_get_priority]]
+
* [[truxton_message_get_priority]] - Retrieves the priority of the message
* [[truxton_message_set_priority]]
+
* [[truxton_message_set_priority]] - Sets the priority of the message
* [[truxton_message_get_file_id]]
+
* [[truxton_message_get_file_id]] - Retrieves the identifier of the file
* [[truxton_message_set_file_id]]
+
* [[truxton_message_set_file_id]] - Sets the identifier of the file
* [[truxton_message_get_parent_id]]
+
* [[truxton_message_get_parent_id]] - Retrieves the parent file identifier
* [[truxton_message_set_parent_id]]
+
* [[truxton_message_set_parent_id]] - Sets the parent file identifier
* [[truxton_message_get_media_id]]
+
* [[truxton_message_get_media_id]] - Retrieves the media identifier
* [[truxton_message_set_media_id]]
+
* [[truxton_message_set_media_id]] - Sets the media identifier
* [[truxton_message_get_depot_id]]
+
* [[truxton_message_get_depot_id]] - Retrieves the depot identifier
* [[truxton_message_set_depot_id]]
+
* [[truxton_message_set_depot_id]] - Sets the depot identifier
* [[truxton_message_get_depot_offset]]
+
* [[truxton_message_get_depot_offset]] - Retrieves the offset into the depot of the first byte of the file's contents
* [[truxton_message_set_depot_offset]]
+
* [[truxton_message_set_depot_offset]] - Sets the offset into the depot of the first byte of the file's contents
* [[truxton_message_get_depot_length]]
+
* [[truxton_message_get_depot_length]] - Retrieves the number of bytes in the depot for this file's contents
* [[truxton_message_set_depot_length]]
+
* [[truxton_message_set_depot_length]] - Sets the number of bytes in the depot for this file's contents
* [[truxton_message_get_hash]]
+
* [[truxton_message_get_hash]] - Retrieves the MD5 hash of the file's contents
* [[truxton_message_set_hash]]
+
* [[truxton_message_set_hash]] - Sets the MD5 hash of the file's contents
* [[truxton_message_get_signature]]
+
* [[truxton_message_get_signature]] -
* [[truxton_message_set_signature]]
+
* [[truxton_message_set_signature]] -
* [[truxton_message_get_file_type]]
+
* [[truxton_message_get_file_type]] -
* [[truxton_message_set_file_type]]
+
* [[truxton_message_set_file_type]] -
* [[truxton_message_get_depot_name]]
+
* [[truxton_message_get_depot_name]] -
* [[truxton_message_set_depot_filename]]
+
* [[truxton_message_set_depot_filename]] -
* [[truxton_message_get_dont_route]]
+
* [[truxton_message_get_dont_route]] -
* [[truxton_message_set_dont_route]]
+
* [[truxton_message_set_dont_route]] -
* [[truxton_message_get_truxton]]
+
* [[truxton_message_get_truxton]] -
* [[truxton_message_set_truxton]]
+
* [[truxton_message_set_truxton]] -
  
 
==File Export==
 
==File Export==

Revision as of 17:20, 9 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

Artifacts are pieces of information that are also known as entities.

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