const std = @import("std"); const os = std.os; const DB = @import("DB.zig"); const PackedUser = @import("PackedUser.zig"); // State is a type of the global variable holding the process state: // the DB handle and all the iterators. const State = struct { DB: *const DB, getpwent_iterator: *PackedUser.Iterator, }; // state is initialized on library startup. var state: State = undefined;