<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_investigation_event_save</id>
	<title>Truxton investigation event save - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_investigation_event_save"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_investigation_event_save&amp;action=history"/>
	<updated>2026-09-09T19:23:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_investigation_event_save&amp;diff=8332&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This writes an investigation event to the the &lt;code&gt;[InvestigationEvent]&lt;/code&gt; table in the database.  =Syntax= &lt;source lang=&quot;C&quot;&gt; uint64_t truxton_investigation_event_save( u...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_investigation_event_save&amp;diff=8332&amp;oldid=prev"/>
		<updated>2024-04-13T20:51:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This writes an investigation event to the the &amp;lt;code&amp;gt;[InvestigationEvent]&amp;lt;/code&amp;gt; table in the database.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; uint64_t truxton_investigation_event_save( u...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This writes an investigation event to the the &amp;lt;code&amp;gt;[InvestigationEvent]&amp;lt;/code&amp;gt; table in the database.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
uint64_t truxton_investigation_event_save( uint64_t event_handle );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;event_handle &amp;lt;/code&amp;gt;==&lt;br /&gt;
This handle comes from calling &amp;lt;code&amp;gt;[[truxton_investigation_event_create]]()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
A non-zero value on success, zero on failure.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;15&amp;quot;&amp;gt;&lt;br /&gt;
void create_event( void )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t truxton = truxton_create();&lt;br /&gt;
&lt;br /&gt;
   uint64_t event = truxton_investigation_event_create( truxton );&lt;br /&gt;
&lt;br /&gt;
   truxton_investigation_event_set_id(event , &amp;quot;C229B12A-BDBC-4526-BC91-574FDCE0D650&amp;quot;); &lt;br /&gt;
   truxton_investigation_event_set_investigation_id(event , &amp;quot;01da7796-a010-3685-0000-018902cb3b22&amp;quot;);&lt;br /&gt;
   truxton_investigation_event_set_color(event , 0xFF9E1B18);&lt;br /&gt;
   truxton_investigation_event_set_text(event , &amp;quot;Case Opened&amp;quot;);&lt;br /&gt;
   truxton_investigation_event_set_status(event , INVESTIGATION_STATUS_OPEN);&lt;br /&gt;
   truxton_investigation_event_set_type(event , INVESTIGATION_EVENT_TYPE_STATUS_CHANGE);&lt;br /&gt;
   truxton_investigation_event_set_when(event , truxton_time_now());&lt;br /&gt;
&lt;br /&gt;
   if ( truxton_investigation_event_save( event ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;Cannot save investigation event to the database.\n&amp;quot; );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_investigation_event_destroy(event);&lt;br /&gt;
   truxton_destroy( truxton );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>