From 648e1d641a8b0ae7c5bc4899f84b884d4335c97f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 18 Feb 2025 23:05:37 +0900 Subject: app: separate interface from implementation Signed-off-by: Ophestra --- internal/app/export_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/app/export_test.go') diff --git a/internal/app/export_test.go b/internal/app/export_test.go index 2e027b83..836e04c6 100644 --- a/internal/app/export_test.go +++ b/internal/app/export_test.go @@ -7,14 +7,14 @@ import ( "git.gensokyo.uk/security/fortify/system" ) -func NewWithID(id fst.ID, os sys.State) App { +func NewWithID(id fst.ID, os sys.State) fst.App { a := new(app) a.id = &id a.os = os return a } -func AppSystemBwrap(a App) (*system.I, *bwrap.Config) { +func AppSystemBwrap(a fst.App) (*system.I, *bwrap.Config) { v := a.(*app) return v.seal.sys.I, v.seal.sys.bwrap } -- cgit v1.3.1