|
This function reads a saved (GUI) state. - Parameters:
-
| osso | The library context as returned by osso_initialize. |
| state | A pointer to an allocated osso_state_t structure. The data should point to a memory block that is at least as large as state_size. If the state_data member is NULL, the memory will be dynamically allocated and must be freed by the caller. If the state_size member is zero, the needed space is read from the state file. |
- Returns:
- OSSO_OK if the state reading was successful. OSSO_ERROR if the operation failed for some reason. OSSO_INVALID if function arguments were invalid. OSSO_ERROR_NO_STATE if the state file was not found. OSSO_ERROR_STATE_SIZE if the state is not the specified size.
|