Difference between revisions of "Truxton media set evidence bag"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "Sets the identifier of the evidence bag holding the media. This corresponds to the <code>EvidenceBag</code> column of the <code>Media</code> table. =Syntax= <syntaxhighlight...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Sets the identifier of the evidence bag holding the media.
 
Sets the identifier of the evidence bag holding the media.
This corresponds to the <code>EvidenceBag</code> column of the <code>Media</code> table.
+
This corresponds to the <code>[EvidenceBag]</code> column of the <code><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table.
  
 
=Syntax=
 
=Syntax=
<syntaxhighlight lang="C">
+
<source lang="C">
void truxton_media_set_evidence_bag( uint64_t media_handle, char * id );
+
void truxton_media_set_evidence_bag( uint64_t media_handle, char const * id );
</syntaxhighlight>
+
</source>
  
 
=Parameters=
 
=Parameters=
Line 15: Line 15:
  
 
=Sample=
 
=Sample=
<syntaxhighlight lang="C" highlight="3">
+
<source lang="C" highlight="3">
void set_evidence_bag_control_number(uint64_t media_handle)
+
void set_evidence_bag_control_number( uint64_t media_handle )
 
{
 
{
 
   truxton_media_set_evidence_bag( media_handle, "EV-17:2020-AHHG5" );
 
   truxton_media_set_evidence_bag( media_handle, "EV-17:2020-AHHG5" );
 
}
 
}
</syntaxhighlight>
+
</source>

Latest revision as of 07:44, 3 February 2024

Sets the identifier of the evidence bag holding the media. This corresponds to the [EvidenceBag] column of the [Media] table.

Syntax

void truxton_media_set_evidence_bag( uint64_t media_handle, char const * id );

Parameters

media_handle

The handle created by the truxton_media_create or truxton_media_open_id call.

id

Who gave you this media.

Sample

void set_evidence_bag_control_number( uint64_t media_handle )
{
   truxton_media_set_evidence_bag( media_handle, "EV-17:2020-AHHG5" );
}