Difference between revisions of "Truxton exif get file id"
Jump to navigation
Jump to search
(→Sample) |
|||
| Line 18: | Line 18: | ||
=Sample= | =Sample= | ||
<source lang="C" highlight="57"> | <source lang="C" highlight="57"> | ||
| − | void | + | void dump_exif( uint64_t exif_handle ) |
{ | { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
char id[ 65 ]; | char id[ 65 ]; | ||
truxton_exif_get_id( exif_handle, id, sizeof( id ) ); | truxton_exif_get_id( exif_handle, id, sizeof( id ) ); | ||
| + | printf( "ID is %s\n", id ); | ||
| − | printf( " | + | 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 ); | ||
} | } | ||
</source> | </source> | ||
Revision as of 06:23, 26 December 2020
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 );
}