Commit Graph

7 Commits

Author SHA1 Message Date
Malloc Voidstar
7d3edccdda
Convert all bool-returns to Results
Additionally:
* Make open2 fallible too
* Use a Result the entire time in open and open2, instead of going from Option to Result
* Specify c_int instead of i32 since apparently the size "may differ on some esoteric systems"; I suspect it won't compile on whatever those are but might as well improve the situation
* Avoid a maybe-possible panic in get_voice_type. Probably can't happen but I'm not 100% certain, so I made it fallible
* Add a missing null check to get_language
2021-12-06 10:57:04 -08:00
4c8521ccb8 Add error handling for initialization failure. 2021-11-19 08:38:17 -06:00
5349a0fc3d Refactor to FnMut and bump version. 2020-09-25 10:36:00 -05:00
bf348af84f Make client ID easier to get at.
* Pass `client_id` into all callbacks.
* Expose via `client_id()` method.
* Bump version.
2020-08-19 20:59:48 -05:00
ca2e0ffe5e Upgrades and refactors.
* Bump editions to 2018.
* Bump dependencies and crate versions.
* Implement callbacks.
* Return message IDs when speaking, or `None` in case of errors.
* Add callbacks to example.
2020-08-19 17:28:22 -05:00
369bf23fa9 Clippy, fmt, bump versions, and update repository links. 2019-12-23 08:03:24 -06:00
3da5140735 Switch to a workspace. 2019-12-22 12:12:27 -06:00