Difference between revisions of "Truxton note set object id"
Jump to navigation
Jump to search
(Created page with "This attaches the note to an object in Truxton. This, combined with <code>truxton_note_set_object_type()</code> allows Truxton to associate a note with anything. =Syntax=...") |
|||
| Line 13: | Line 13: | ||
==<code>id</code>== | ==<code>id</code>== | ||
The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID.] | The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID.] | ||
| − | This will be stored in the <code>[ObjectID]</code> column of the <code>[ | + | This will be stored in the <code>[ObjectID]</code> column of the <code>[InvestigatorNote]</code> table. |
The value should come from the <code>[ID]</code> column of many tables in the database. | The value should come from the <code>[ID]</code> column of many tables in the database. | ||
Latest revision as of 05:39, 15 April 2024
This attaches the note to an object in Truxton.
This, combined with truxton_note_set_object_type() allows Truxton to associate a note with anything.
Contents
Syntax
void truxton_note_set_object_id( uint64_t note_handle, char const * id );
Parameters
note_handle
This handle comes from calling truxton_note_create().
id
The string representation of a GUID.
This will be stored in the [ObjectID] column of the [InvestigatorNote] table.
The value should come from the [ID] column of many tables in the database.
Sample
void create_note( void )
{
uint64_t truxton = truxton_create();
uint64_t note = truxton_note_create( truxton_handle );
truxton_note_set_object_id( note, "65feb292-7995-137d-77cb-3ed80000000a" );
truxton_note_set_investigation_id( note, "01da7796-a010-3685-0000-018902cb3b22" );
truxton_note_set_text( note, "This is an interesting file." );
truxton_note_set_object_type( note, OBJECT_TYPE_FILE );
if ( truxton_note_save( note ) == 0 )
{
printf( "Cannot save investigation note to the database.\n" );
}
truxton_note_destroy( note );
truxton_destroy( truxton );
}