Truxton communication set media id
Jump to navigation
Jump to search
This will set the identifier of the file the message came from.
It corresponds to the [MediaID] column of the [Message] table.
Syntax
void truxton_communication_set_media_id( uint64_t communication_handle, char const * id);
Parameters
communication_handle
The handle returned by calling truxton_communication_create.
id
The buffer to write the identifier to.
Sample
void optionally_set_message_media( uint64_t communication, uint64_t parent_file )
{
char id[40];
truxton_communication_get_media_id( communication, id, sizeof(id) );
if ( strcmp( id, "00000000-0000-0000-0000-000000000000" ) != 0 )
{
truxton_file_get_media_id( parent_file, id, sizeof(id) );
truxton_communication_set_media_id( communication, id );
}
}