Truxton media save

From truxwiki.com
Revision as of 08:48, 26 July 2020 by Sam (talk | contribs) (Created page with "This will commit the data in the media object to the database. It will write a record to the <code>Media</code> table. =Syntax= <syntaxhighlight lang="C"> int truxton_media_s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will commit the data in the media object to the database. It will write a record to the Media table.

Syntax

int truxton_media_save( uint64_t media_handle );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

Sample

 1 void add_media(uint64_t truxton)
 2 {
 3    uint64_t media = truxton_media_create(truxton);
 4 
 5    
 6 
 7    if ( truxton_media_save(media) == 0 )
 8    {
 9       printf( "Failed to add child to Truxton\n" );
10    }
11 
12    truxton_media_destroy(child);
13 }