const source_s = opaque pub inline fn as_object(source: source_t) object_textern "c" fn dispatch_source_set_event_handler_f(source: source_t, handler: ?function_t) voidextern "c" fn dispatch_source_set_cancel_handler_f(source: source_t, handler: ?function_t) voidextern "c" fn dispatch_source_cancel(source: source_t) voidextern "c" fn dispatch_source_testcancel(source: source_t) isizeextern "c" fn dispatch_source_get_handle(source: source_t) usizeextern "c" fn dispatch_source_get_mask(source: source_t) source_flags_textern "c" fn dispatch_source_get_data(source: source_t) usizeextern "c" fn dispatch_source_merge_data(source: source_t, value: usize) voidextern "c" fn dispatch_source_set_timer(source: source_t, start: time_t, interval: u64, leeway: u64) voidextern "c" fn dispatch_source_set_registration_handler_f(source: source_t, handler: ?function_t) void234
235
236
237
238
239
240
241
242
243
244
245
246
247
248const source_s = opaque {
pub inline fn as_object(source: source_t) object_t {
return @ptrCast(source);
}
pub const set_event_handler = source_set_event_handler_f;
pub const set_cancel_handler = source_set_cancel_handler_f;
pub const cancel = source_cancel;
pub const testcancel = source_testcancel;
pub const get_handle = source_get_handle;
pub const get_mask = source_get_mask;
pub const get_data = source_get_data;
pub const merge_data = source_merge_data;
pub const set_timer = source_set_timer;
pub const set_registration_handler = source_set_registration_handler_f;
}