Difference between revisions of "Truxton media get load configuration id"

From truxwiki.com
Jump to navigation Jump to search
(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...")
 
Line 20: Line 20:
 
void dump_route(uint64_t media)
 
void dump_route(uint64_t media)
 
{
 
{
   uint64_t id = get_media_load_configuration_id( media );
+
   uint64_t id = truxton_media_get_load_configuration_id( media );
  
 
   printf( "The media is using configuration %" PRIu64 " to process the data\n", id );
 
   printf( "The media is using configuration %" PRIu64 " to process the data\n", id );
 
}</syntaxhighlight>
 
}</syntaxhighlight>

Revision as of 07:46, 26 July 2020

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 );
}