diff options
Diffstat (limited to 'android/singleton.go')
-rw-r--r-- | android/singleton.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/android/singleton.go b/android/singleton.go index f2f575ff..87910fda 100644 --- a/android/singleton.go +++ b/android/singleton.go @@ -21,8 +21,7 @@ import ( // SingletonContext type SingletonContext interface { - // TODO(ccross): make this return an android.Config - Config() interface{} + Config() Config ModuleName(module blueprint.Module) string ModuleDir(module blueprint.Module) string @@ -87,6 +86,10 @@ type singletonContextAdaptor struct { blueprint.SingletonContext } +func (s singletonContextAdaptor) Config() Config { + return s.SingletonContext.Config().(Config) +} + func (s singletonContextAdaptor) Variable(pctx PackageContext, name, value string) { s.SingletonContext.Variable(pctx.PackageContext, name, value) } |