Crate senpy_ffi

Source
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 are language and image.
random_new
Initializes a new Random
random_populate
Populates a Random from a senpy::random call
status
Returns 1 if up, returns 0 if down, and returns -1 if the request failed for any reason.