pkg/macos: more
parent
a4c05e4a32
commit
17d844e7bf
|
|
@ -1,5 +1,8 @@
|
|||
const log = @import("os/log.zig");
|
||||
|
||||
pub const c = @import("os/c.zig");
|
||||
pub usingnamespace @import("os/log.zig");
|
||||
pub const Log = log.Log;
|
||||
pub const LogType = log.LogType;
|
||||
|
||||
test {
|
||||
@import("std").testing.refAllDecls(@This());
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
pub usingnamespace @cImport({
|
||||
pub const c = @cImport({
|
||||
@cInclude("os/log.h");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
pub const Log = opaque {
|
||||
pub fn create(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
pub const c = @import("video/c.zig");
|
||||
pub usingnamespace @import("video/display_link.zig");
|
||||
const display_link = @import("video/display_link.zig");
|
||||
|
||||
pub const c = @import("video/c.zig").c;
|
||||
pub const DisplayLink = display_link.DisplayLink;
|
||||
|
||||
test {
|
||||
@import("std").testing.refAllDecls(@This());
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
pub usingnamespace @cImport({
|
||||
pub const c = @cImport({
|
||||
@cInclude("CoreVideo/CoreVideo.h");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
pub const DisplayLink = opaque {
|
||||
pub const Error = error{
|
||||
|
|
|
|||
Loading…
Reference in New Issue