4 * Basic SPI initialization and event loop function prototypes
11 * Connects to the accessibility registry and initializes the SPI.
13 * Returns: 0 on success, otherwise an integer error code.
22 CORBA_exception_init(&ev);
24 if (!bonobo_init (&argc, NULL))
26 g_error ("Could not initialize Bonobo");
29 obj_id = "OAFIID:Accessibility_Registry:proto0.1";
31 oclient = bonobo_activation_activate_from_id (obj_id, 0, NULL, &ev);
32 if (ev._major != CORBA_NO_EXCEPTION) {
34 ("AT-SPI error: during registry activation: %s\n"),
35 CORBA_exception_id(&ev));
36 CORBA_exception_free(&ev);
40 if (CORBA_Object_is_nil (oclient, &ev))
42 g_error ("Could not locate registry");
46 registry = (Accessibility_Registry) oclient;
55 * @isGNOMEApp: a #boolean indicating whether the client of the SPI
56 * will use the Gnome event loop or not.
58 * Starts/enters the main event loop for the SPI services.
60 * (NOTE: This method does not return control, it is exited via a call to exit()
61 * from within an event handler).
65 SPI_event_main (boolean isGNOMEApp)
67 if (isGNOMEApp) bonobo_main();
68 else CORBA_ORB_run (bonobo_orb(), &ev);
74 * Checks to see if an SPI event is waiting in the event queue.
75 * Used by clients that don't wish to use SPI_event_main().
76 * Not Yet Implemented.
78 * Returns: #TRUE if an event is waiting, otherwise #FALSE.
90 * Gets the next event in the SPI event queue; blocks if no event
92 * Used by clients that don't wish to use SPI_event_main().
93 * Not Yet Implemented.
95 * Returns: the next #AccessibleEvent in the SPI event queue.
99 SPI_nextEvent (boolean waitForEvent)
107 * Disconnects from the Accessibility Registry and releases resources.
108 * Not Yet Implemented.