Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Opaque

source_s

Private Opaque
std.c.darwin.dispatch.source_s
const source_s = opaque

Functions

pub inline fn as_object(source: source_t) object_t
extern "c" fn dispatch_source_set_event_handler_f(source: source_t, handler: ?function_t) void
extern "c" fn dispatch_source_set_cancel_handler_f(source: source_t, handler: ?function_t) void
extern "c" fn dispatch_source_cancel(source: source_t) void
extern "c" fn dispatch_source_testcancel(source: source_t) isize
extern "c" fn dispatch_source_get_handle(source: source_t) usize
extern "c" fn dispatch_source_get_mask(source: source_t) source_flags_t
extern "c" fn dispatch_source_get_data(source: source_t) usize
extern "c" fn dispatch_source_merge_data(source: source_t, value: usize) void
extern "c" fn dispatch_source_set_timer(source: source_t, start: time_t, interval: u64, leeway: u64) void
extern "c" fn dispatch_source_set_registration_handler_f(source: source_t, handler: ?function_t) void

File

c/darwin/dispatch.zig:234
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
const 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;
}