Truxton message set depot id

From truxwiki.com
Revision as of 12:30, 18 June 2020 by Sam (talk | contribs) (Created page with "Sets the identifier of the media in the message. =Syntax= <syntaxhighlight lang="C"> void truxton_message_set_depot_id( uint64_t message_handle, char * id ); </syntaxhighligh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the identifier of the media in the message.

Syntax

void truxton_message_set_depot_id( uint64_t message_handle, char * id );

Parameters

message_handle

The handle created by the truxton_message_create call.

id

The string representation of a GUID.

Sample

void set_depot(uint64_t message, uint64_t file)
{
   char id[40];

   truxton_file_get_depot_id(file, id, sizeof(id));

   truxton_message_set_depot_id( message, id );
}