weatherkit-doomfish 0.3.1

Safe Rust bindings for Apple's WeatherKit framework — weather data on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use core::ffi::{c_char, c_void};

extern "C" {
    pub fn wk_weather_availability_retain(handle: *mut c_void) -> *mut c_void;
    pub fn wk_weather_availability_release(handle: *mut c_void);
    pub fn wk_weather_availability_copy_json(
        handle: *mut c_void,
        out_json: *mut *mut c_char,
        out_error: *mut *mut c_char,
    ) -> i32;
    pub fn wk_availability_kind_copy_descriptors_json(
        out_json: *mut *mut c_char,
        out_error: *mut *mut c_char,
    ) -> i32;
}