Difference between revisions of "Truxton media set originator"
Jump to navigation
Jump to search
(Created page with "Sets where this media came from. This corresponds to the <code>Originator</code> column of the <code>Media</code> table. =Syntax= <syntaxhighlight lang="C"> void truxton_medi...") |
|||
| Line 1: | Line 1: | ||
Sets where this media came from. | Sets where this media came from. | ||
| − | This corresponds to the <code>Originator</code> column of the <code>Media</code> table. | + | This corresponds to the <code>[Originator]</code> column of the <code>[Media]</code> table. |
=Syntax= | =Syntax= | ||
| − | < | + | <source lang="C"> |
void truxton_media_set_originator( uint64_t media_handle, char * originator ); | void truxton_media_set_originator( uint64_t media_handle, char * originator ); | ||
| − | </ | + | </source> |
=Parameters= | =Parameters= | ||
| Line 15: | Line 15: | ||
=Sample= | =Sample= | ||
| − | < | + | <source lang="C" highlight="3"> |
void set_origin(uint64_t media_handle) | void set_origin(uint64_t media_handle) | ||
{ | { | ||
truxton_media_set_originator( media_handle, "Mayberry R.F.D. Sheriff Taylor" ); | truxton_media_set_originator( media_handle, "Mayberry R.F.D. Sheriff Taylor" ); | ||
} | } | ||
| − | </ | + | </source> |
Revision as of 16:54, 23 November 2020
Sets where this media came from.
This corresponds to the [Originator] column of the [Media] table.
Syntax
void truxton_media_set_originator( uint64_t media_handle, char * originator );
Parameters
media_handle
The handle created by the truxton_media_create or truxton_media_open_id call.
originator
Who gave you this media.
Sample
void set_origin(uint64_t media_handle)
{
truxton_media_set_originator( media_handle, "Mayberry R.F.D. Sheriff Taylor" );
}