Difference between revisions of "Truxton media set name"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "Sets the name of this media object. This corresponds to the <code>Name</code> column of the <code>Media</code> table. =Syntax= <syntaxhighlight lang="C"> void truxton_media_s...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Sets the name of this media object.
 
Sets the name of this media object.
This corresponds to the <code>Name</code> column of the <code>Media</code> table.
+
This corresponds to the <code>[Name]</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_name( uint64_t media_handle, char * name );
+
void truxton_media_set_name( uint64_t media_handle, char const * name );
</syntaxhighlight>
+
</source>
  
 
=Parameters=
 
=Parameters=
Line 12: Line 12:
 
The handle created by the [[truxton_media_create]] or [[truxton_media_open_id]] call.
 
The handle created by the [[truxton_media_create]] or [[truxton_media_open_id]] call.
  
==<code>fname</code>==
+
==<code>name</code>==
 
 
 
The name of the media.
 
The name of the media.
  
 
=Sample=
 
=Sample=
<syntaxhighlight lang="C" highlight="3">
+
<source lang="C" highlight="3">
void set_name(uint64_t media_handle)
+
void set_name( uint64_t media_handle )
 
{
 
{
 
   truxton_media_set_name( media_handle, "My Little Thumb Drive" );
 
   truxton_media_set_name( media_handle, "My Little Thumb Drive" );
 
}
 
}
</syntaxhighlight>
+
</source>

Latest revision as of 07:42, 3 February 2024

Sets the name of this media object. This corresponds to the [Name] column of the [Media] table.

Syntax

void truxton_media_set_name( uint64_t media_handle, char const * name );

Parameters

media_handle

The handle created by the truxton_media_create or truxton_media_open_id call.

name

The name of the media.

Sample

void set_name( uint64_t media_handle )
{
   truxton_media_set_name( media_handle, "My Little Thumb Drive" );
}