Difference between revisions of "Truxton media set case number"

From truxwiki.com
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
Sets the case number of this media object.
 
Sets the case number of this media object.
This corresponds to the <code>[CaseNumber]</code> column of the <code>[Media]</code> table.
+
This corresponds to the <code>[CaseNumber]</code> column of the <code><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table.
  
 
This is an arbitrary string value that Truxton will associate with the media.
 
This is an arbitrary string value that Truxton will associate with the media.
Line 6: Line 6:
 
=Syntax=
 
=Syntax=
 
<source lang="C">
 
<source lang="C">
void truxton_media_set_case_number( uint64_t media_handle, char * case_number );
+
void truxton_media_set_case_number( uint64_t media_handle, char const * case_number );
 
</source>
 
</source>
  

Latest revision as of 07:44, 3 February 2024

Sets the case number of this media object. This corresponds to the [CaseNumber] column of the [Media] table.

This is an arbitrary string value that Truxton will associate with the media. The format of the case number is whatever the user wishes.

Syntax

void truxton_media_set_case_number( uint64_t media_handle, char const * case_number );

Parameters

media_handle

The handle created by the truxton_media_create or truxton_media_open_id call.

case_number

The case number of the media.

Sample

void set_case( uint64_t media_handle )
{
   truxton_media_set_case_number( media_handle, "2020:55:A 14-D" );
}