Truxton media set type

From truxwiki.com
Revision as of 07:50, 25 July 2020 by Sam (talk | contribs) (Created page with "This sets the type of the media. It corresponds to the <code>MediaTypeID</code> column of the <code>Media</code> table. It can be one of the Media Types|defi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This sets the type of the media. It corresponds to the MediaTypeID column of the Media table. It can be one of the defined constants but it must be one of the values in the ID column of the MediaType table.

Syntax

void truxton_media_set_type( uint64_t media_handle, uint64_t value );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

value

The new type of the media. It can be one of the defined constants but must be a value from the ID column of the MediaType table.

Sample

void set_disk_type(uint64_t media)
{
   truxton_media_set_type( media, MEDIA_TYPE_HARD_DISK_IMAGE );
}