Difference between revisions of "Truxton sensitive site list set id"
Jump to navigation
Jump to search
(Created page with "This frees any resources allocated to a sensitive site list object. =Syntax= <source lang="C"> void truxton_sensitive_site_list_set_id( uint64_t ssl_handle, char const * id )...") |
|||
| Line 1: | Line 1: | ||
| − | This | + | This allows you to set the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] for the list. |
| + | This will be stored in the <code>[ID]</code> column of the <code>[SensitiveSiteList]</code> table. | ||
=Syntax= | =Syntax= | ||
Latest revision as of 14:36, 25 May 2021
This allows you to set the GUID for the list.
This will be stored in the [ID] column of the [SensitiveSiteList] table.
Contents
Syntax
void truxton_sensitive_site_list_set_id( uint64_t ssl_handle, char const * id );
Parameters
ssl_handle
The handle to the list object.
This handle comes from calling truxton_sensitive_site_list_create().
id
The string representation of a GUID.
Sample
void create_list( uint64_t truxton )
{
uint64_t ssl = truxton_sensitive_site_list_create( truxton );
truxton_sensitive_site_list_set_id( ssl, "ED1E0F5E-1AD0-7A14-A053-04D8DB47BC4C" );
truxton_sensitive_site_list_set_name( ssl, "A couple of places" );
truxton_sensitive_site_list_set_description( ssl, "My list of places" );
// Commit the data to the database
truxton_sensitive_site_list_save( ssl );
// Now add some sites to our list
truxton_sensitive_site_list_add( ssl, 39.136001, -77.701114, 100, "Lothar's", NULL );
truxton_sensitive_site_list_add( ssl, 28.421, -81.57985, 100, "Illegal Fishing HQ", "22222222-0000-0000-0000-000000000000");
truxton_sensitive_site_list_destroy( ssl );
}