<!-- ##### SECTION Title ##### -->
SPI main loop and initialization

<!-- ##### SECTION Short_Description ##### -->


<!-- ##### SECTION Long_Description ##### -->
<para>

</para>

<!-- ##### SECTION See_Also ##### -->
<para>

</para>

<!-- ##### SECTION Stability_Level ##### -->


<!-- ##### FUNCTION SPI_init ##### -->
<para>

</para>

@Returns: 


<!-- ##### FUNCTION SPI_event_main ##### -->
<para>

</para>



<!-- ##### FUNCTION SPI_event_quit ##### -->
<para>

</para>



<!-- ##### FUNCTION SPI_eventIsReady ##### -->
<para>

</para>

@Returns: 


<!-- ##### FUNCTION SPI_nextEvent ##### -->
<para>

</para>

@waitForEvent: 
@Returns: 


<!-- ##### FUNCTION SPI_exit ##### -->
<para>

</para>

@Returns: 


<!-- ##### FUNCTION SPI_freeString ##### -->
<para>

</para>

@s: 


<!-- ##### FUNCTION SPIAccessibleException_getSource ##### -->
<para>

</para>

@err: 
@Returns: 


<!-- ##### FUNCTION SPIException_getDescription ##### -->
<para>

</para>

@err: 
@Returns: 


<!-- ##### FUNCTION SPIException_getExceptionCode ##### -->
<para>

</para>

@err: 
@Returns: 


<!-- ##### FUNCTION SPIException_getSourceType ##### -->
<para>

</para>

@err: 
@Returns: 


<!-- ##### STRUCT SPIException ##### -->
<para>

</para>

@type: 
@source: 
@ev: 
@code: 
@desc: 

<!-- ##### ENUM SPIExceptionCode ##### -->
<para>

</para>

@SPI_EXCEPTION_UNSPECIFIED: 
@SPI_EXCEPTION_DISCONNECT: 
@SPI_EXCEPTION_NO_IMPL: 
@SPI_EXCEPTION_IO: 
@SPI_EXCEPTION_BAD_DATA: 

<!-- ##### ENUM SPIExceptionType ##### -->
<para>

</para>

@SPI_EXCEPTION_SOURCE_UNSPECIFIED: 
@SPI_EXCEPTION_SOURCE_ACCESSIBLE: 
@SPI_EXCEPTION_SOURCE_REGISTRY: 
@SPI_EXCEPTION_SOURCE_DEVICE: 

<!-- ##### USER_FUNCTION SPIExceptionHandler ##### -->
<para>

</para>

@err: 
@is_fatal: 
@Returns: 


<!-- ##### STRUCT SPIRect ##### -->
<para>

</para>


<!-- ##### FUNCTION SPI_freeRect ##### -->
<para>

</para>

@r: 


<!-- ##### FUNCTION SPI_dupString ##### -->
<para>

</para>

@s: 
@Returns: 


<!-- ##### FUNCTION SPI_exceptionHandlerPush ##### -->
<para>

</para>

@handler: 
@Returns: 


<!-- ##### FUNCTION SPI_exceptionHandlerPop ##### -->
<para>

</para>

@Returns: 


