Truxton file export set truxton

From truxwiki.com
Jump to navigation Jump to search

This method sets the Truxton object for an export.

Syntax

int truxton_file_export_set_truxton( uint64_t export_handle, uint64_t truxton_handle );

Parameters

export_handle

The handle created by the truxton_file_export_create() call.

truxton_handle

The Truxton instance this exporter will be working with. This handle comes from calling truxton_create().

Return value

A non-zero value on success, zero on failure.

Sample

void export_to_another_truxton( uint64_t export, uint64_t that_other_truxton )
{
   if ( truxton_file_export_set_truxton( export, that_other_truxton ) != 0 )
   {
      truxton_file_export_execute( export );
   }
}