MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at mir/inline-method 31 lines 921 B view raw
1pub const loop_t = opaque {}; 2pub const handle_t = opaque {}; 3pub const stream_t = opaque {}; 4 5pub const buf_t = extern struct { 6 base: [*c]u8, 7 len: usize, 8}; 9 10pub const connect_t = extern struct { 11 data: ?*anyopaque = null, 12 _pad: [256]u8 = undefined, 13}; 14 15pub const write_t = extern struct { 16 data: ?*anyopaque = null, 17 _pad: [256]u8 = undefined, 18}; 19 20pub const RUN_DEFAULT: c_int = 0; 21pub const RUN_ONCE: c_int = 1; 22pub const RUN_NOWAIT: c_int = 2; 23 24pub const connect_cb = ?*const fn (*connect_t, c_int) callconv(.c) void; 25pub const close_cb = ?*const fn (*handle_t) callconv(.c) void; 26pub const alloc_cb = ?*const fn (*handle_t, usize, *buf_t) callconv(.c) void; 27pub const read_cb = ?*const fn (*stream_t, isize, *const buf_t) callconv(.c) void; 28pub const write_cb = ?*const fn (*write_t, c_int) callconv(.c) void; 29 30pub extern fn uv_default_loop() *loop_t; 31pub extern fn uv_run(*loop_t, c_int) c_int;