Truxton exif get file id

From truxwiki.com
Revision as of 06:23, 26 December 2020 by Sam (talk | contribs) (→‎Sample)
Jump to navigation Jump to search

This corresponds to the [FileID] column of the [EXIF] table in the database.

Syntax

void truxton_exif_get_file_id( uint64_t exif_handle, char * destination_string, size_t max_size );

Parameters

exif_handle

This handle comes from calling truxton_exif_create() or truxton_file_create_exif().

destination_string

The string to be written to.

max_size

The maximum number of characters that can be written to destination_string.

Sample

void dump_exif( uint64_t exif_handle )
{
   char id[ 65 ];

   truxton_exif_get_id( exif_handle, id, sizeof( id ) );
   printf( "ID is %s\n", id );

   truxton_exif_get_file_id( exif_handle, id, sizeof( id ) );
   printf( "File ID is %s\n", id );

   truxton_exif_get_media_id( exif_handle, id, sizeof( id ) );
   printf( "Media ID is %s\n", id );
}