Expand description
FFI bindings for senpy-rs
Structs§
- Random
- The response of the https://api.senpy.club/v2/random route
Statics§
- SENPY_
CLUB_ API_ BASE_ URL - The base URL to The Senpy Club API
- SENPY_
CLUB_ API_ CURRENT_ VERSION - The current API version of The Senpy Club API
- SENPY_
CLUB_ API_ URL - The API URL to The Senpy Club API
Functions§
- language⚠
- Returns an array where the first element is the size of the array and the remaining elements are the images.
- languages
- Returns an array where the first element is the size of the array and the remaining elements are the languages.
- random_
free ⚠ - Frees a
Random
- random_
get ⚠ - Gets a member from a
Random
, valid members arelanguage
andimage
. - random_
new - Initializes a new
Random
- random_
populate ⚠ - Populates a
Random
from asenpy::random
call - status
- Returns
1
if up, returns0
if down, and returns-1
if the request failed for any reason.