Difference between revisions of "Truxton C API"

From truxwiki.com
Jump to navigation Jump to search
Line 141: Line 141:
 
* [[truxton_file_get_signature]] - Gets the first four bytes of the contents as an integer
 
* [[truxton_file_get_signature]] - Gets the first four bytes of the contents as an integer
 
* [[truxton_file_get_type]] - Reads the [[File Types Supported | type]] of the file
 
* [[truxton_file_get_type]] - Reads the [[File Types Supported | type]] of the file
 +
 +
==File Actions==
 +
These are things your can do to a file.
 +
These are not data items stored in the database.
 +
* [[truxton_file_change_type]] - Allows you to change the [[File Types Supported | type]] of the file
 
* [[truxton_file_get_details]] - Retrieves JSON with details of the file's contents
 
* [[truxton_file_get_details]] - Retrieves JSON with details of the file's contents
 
* [[truxton_file_get_truxton]] - Retrieves the Truxton connection used to get this file
 
* [[truxton_file_get_truxton]] - Retrieves the Truxton connection used to get this file
* [[truxton_file_change_type]] - Allows you to change the [[File Types Supported | type]] of the file
 
  
 
==Create Objects from File==
 
==Create Objects from File==

Revision as of 07:37, 21 June 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

Message

File Export

Artifacts

Event

EXIF (Camera Information)

File Type

Geographic Location

Relation

Website Visit

USB Device