|
This function initializes the library and connects to the D-BUS session and system busses. and integrates with the GLib main loop, and initializes the library for use. osso_initialize should only be called once for each application. - Parameters:
-
| application | The name that this application is known as. This is not the name that a user sees, but rather the name that other applications use as an address to communicate with this program, AKA the "D-BUS name". |
| version | The version string of the application. It mus be simply comparable with strcmp(). |
| activation | If this is TRUE, then the library assumes that the application binary has been launched by the D-BUS daemon, and thus will connect to the D-BUS activation bus (the D-BUS bus where the D-BUS message that resulted in program activation originated from). |
| context | The GLib main-loop context to connect to, use NULL for the default context. |
- Returns:
- A context to use in later calls to this library. NULL is returned if there is an error.
|