pkg/macos: more

This commit is contained in:
Mitchell Hashimoto
2024-08-16 16:39:33 -07:00
parent a4c05e4a32
commit 17d844e7bf
6 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,8 @@
const log = @import("os/log.zig");
pub const c = @import("os/c.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 { test {
@import("std").testing.refAllDecls(@This()); @import("std").testing.refAllDecls(@This());

View File

@ -1,3 +1,3 @@
pub usingnamespace @cImport({ pub const c = @cImport({
@cInclude("os/log.h"); @cInclude("os/log.h");
}); });

View File

@ -1,7 +1,7 @@
const std = @import("std"); const std = @import("std");
const assert = std.debug.assert; const assert = std.debug.assert;
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const c = @import("c.zig"); const c = @import("c.zig").c;
pub const Log = opaque { pub const Log = opaque {
pub fn create( pub fn create(

View File

@ -1,5 +1,7 @@
pub const c = @import("video/c.zig"); const display_link = @import("video/display_link.zig");
pub usingnamespace @import("video/display_link.zig");
pub const c = @import("video/c.zig").c;
pub const DisplayLink = display_link.DisplayLink;
test { test {
@import("std").testing.refAllDecls(@This()); @import("std").testing.refAllDecls(@This());

View File

@ -1,3 +1,3 @@
pub usingnamespace @cImport({ pub const c = @cImport({
@cInclude("CoreVideo/CoreVideo.h"); @cInclude("CoreVideo/CoreVideo.h");
}); });

View File

@ -1,7 +1,7 @@
const std = @import("std"); const std = @import("std");
const assert = std.debug.assert; const assert = std.debug.assert;
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const c = @import("c.zig"); const c = @import("c.zig").c;
pub const DisplayLink = opaque { pub const DisplayLink = opaque {
pub const Error = error{ pub const Error = error{