Truxton event set title

From truxwiki.com
Revision as of 12:54, 12 November 2020 by Sam (talk | contribs) (Created page with "This sets the short title of the event. This is seen on the timeline view in Truxton Analyst desktop. =Syntax= <source lang="C"> void truxton_event_set_title( uint64_t event_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This sets the short title of the event. This is seen on the timeline view in Truxton Analyst desktop.

Syntax

void truxton_event_set_title( uint64_t event_handle, char const * title );

Parameters

event_handle

The handle to an event created by the truxton_event_create call.

title

A short title of the event. It corresponds to the [Title] column of the [Event] table.

Sample

void dump_event(uint64_t event_handle)
{
   char guid_string[ 40 ];

   truxton_event_get_file_id( event_handle, guid_string, sizeof(guid_string) );
   printf( "File ID is %s\n", guid_string );

   truxton_event_get_media_id( event_handle, guid_string, sizeof(guid_string) );
   printf( "Media ID is %s\n", guid_string );

   truxton_event_get_id( event_handle, guid_string, sizeof(guid_string) );
   printf( "Event ID is %s\n", guid_string );

   uint64_t value = truxton_event_get_type( event_handle );
   printf( "Type is %" PRIu64 "\n", value );

   value = truxton_event_get_start( event_handle );
   printf( "Start is %" PRIu64 "\n", value );

   value = truxton_event_get_end( event_handle );
   printf( "End is %" PRIu64 "\n", value );
}