weatherkit-doomfish 0.2.0

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_alerts_retain(handle: *mut c_void) -> *mut c_void;
    pub fn wk_weather_alerts_release(handle: *mut c_void);
    pub fn wk_weather_alerts_copy_json(
        handle: *mut c_void,
        out_json: *mut *mut c_char,
        out_error: *mut *mut c_char,
    ) -> i32;
    pub fn wk_weather_severity_copy_descriptors_json(
        out_json: *mut *mut c_char,
        out_error: *mut *mut c_char,
    ) -> i32;
}