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...") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| 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><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></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 const * 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> |
Latest revision as of 07:43, 3 February 2024
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 const * 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" );
}