SPI main loop and initialization

Name

SPI main loop and initialization -- 

Synopsis



int         SPI_init                        (void);
void        SPI_event_main                  (boolean isGNOMEApp);
boolean     SPI_eventIsReady                ();
AccessibleEvent* SPI_nextEvent              (boolean waitForEvent);
void        SPI_exit                        (void);

Description

Details

SPI_init ()

int         SPI_init                        (void);

Connects to the accessibility registry and initializes the SPI.

Returns : 0 on success, otherwise an integer error code.


SPI_event_main ()

void        SPI_event_main                  (boolean isGNOMEApp);

Starts/enters the main event loop for the SPI services.

(NOTE: This method does not return control, it is exited via a call to exit() from within an event handler).

isGNOMEApp : a boolean indicating whether the client of the SPI will use the Gnome event loop or not. Clients that have their own GUIS will usually specify TRUE here, and must do so if they use Gnome GUI components.


SPI_eventIsReady ()

boolean     SPI_eventIsReady                ();

Checks to see if an SPI event is waiting in the event queue. Used by clients that don't wish to use SPI_event_main().

Not Yet Implemented.

Returns : TRUE if an event is waiting, otherwise FALSE.


SPI_nextEvent ()

AccessibleEvent* SPI_nextEvent              (boolean waitForEvent);

Gets the next event in the SPI event queue; blocks if no event is pending and waitForEvent is TRUE. Used by clients that don't wish to use SPI_event_main().

Not Yet Implemented.

waitForEvent : a boolean indicating whether to block or not.
Returns : the next AccessibleEvent in the SPI event queue.


SPI_exit ()

void        SPI_exit                        (void);

Disconnects from the Accessibility Registry and releases resources.