Truxton media get load configuration id

From truxwiki.com
Revision as of 07:32, 26 July 2020 by Sam (talk | contribs) (Created page with "This retrieves the load configuration used to load the data. This corresponds to the <code>LoadConfigurationID</code> column of the <code>Media</code> table. It should be a va...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This retrieves the load configuration used to load the data. This corresponds to the LoadConfigurationID column of the Media table. It should be a value from the ID column of the LoadConfiguration table. A load configuration is the mapping of file types to the message queues that will process it.

Syntax

uint64_t truxton_media_get_load_configuration_id( uint64_t media_handle );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

Return value

The identifier for the load configuration.

Sample

void dump_route(uint64_t media)
{
   uint64_t id = get_media_load_configuration_id( media );

   printf( "The media is using configuration %" PRIu64 " to process the data\n", id );
}