Truxton media get load configuration id

From truxwiki.com
Revision as of 07:46, 26 July 2020 by Sam (talk | contribs) (→‎Sample)
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 = truxton_media_get_load_configuration_id( media );

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