diff options
| author | 2019-06-10 16:38:11 +0000 | |
|---|---|---|
| committer | 2019-06-10 16:38:11 +0000 | |
| commit | a6bf56d4bede80f1942d775a22f15bdc0d33e37a (patch) | |
| tree | 0c61bc58e74650c98924ab38a1e52944f02d35a2 /android/hooks.go | |
| parent | 50e91c1a7a93077989cc590ea3878c46b3df4ba8 (diff) | |
| parent | 7e0a2cb590f2f2d117571327f40fa8557363658c (diff) | |
Merge changes I9f8df94f,I2d7f5c56,I0ebb7381,Ieefcfc1a
* changes:
Consolidate *MutatorContext and ModuleContext into BaseModuleContext
Consolidate baseContext, BaseContext, and BaseModuleContext
Rename ModuleBase receivers
Remove repetition in android package names
Diffstat (limited to 'android/hooks.go')
| -rw-r--r-- | android/hooks.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/android/hooks.go b/android/hooks.go index d55678e9d..2d2f797bd 100644 --- a/android/hooks.go +++ b/android/hooks.go @@ -27,7 +27,7 @@ import ( // been applied. type LoadHookContext interface { // TODO: a new context that includes Config() but not Target(), etc.? - BaseContext + BaseModuleContext AppendProperties(...interface{}) PrependProperties(...interface{}) CreateModule(blueprint.ModuleFactory, ...interface{}) @@ -36,7 +36,7 @@ type LoadHookContext interface { // Arch hooks are run after the module has been split into architecture variants, and can be used // to add architecture-specific properties. type ArchHookContext interface { - BaseContext + BaseModuleContext AppendProperties(...interface{}) PrependProperties(...interface{}) } @@ -129,18 +129,18 @@ func registerLoadHookMutator(ctx RegisterMutatorsContext) { func LoadHookMutator(ctx TopDownMutatorContext) { if m, ok := ctx.Module().(Module); ok { - // Cast through *androidTopDownMutatorContext because AppendProperties is implemented - // on *androidTopDownMutatorContext but not exposed through TopDownMutatorContext - var loadHookCtx LoadHookContext = ctx.(*androidTopDownMutatorContext) + // Cast through *topDownMutatorContext because AppendProperties is implemented + // on *topDownMutatorContext but not exposed through TopDownMutatorContext + var loadHookCtx LoadHookContext = ctx.(*topDownMutatorContext) m.base().hooks.runLoadHooks(loadHookCtx, m.base()) } } func archHookMutator(ctx TopDownMutatorContext) { if m, ok := ctx.Module().(Module); ok { - // Cast through *androidTopDownMutatorContext because AppendProperties is implemented - // on *androidTopDownMutatorContext but not exposed through TopDownMutatorContext - var archHookCtx ArchHookContext = ctx.(*androidTopDownMutatorContext) + // Cast through *topDownMutatorContext because AppendProperties is implemented + // on *topDownMutatorContext but not exposed through TopDownMutatorContext + var archHookCtx ArchHookContext = ctx.(*topDownMutatorContext) m.base().hooks.runArchHooks(archHookCtx, m.base()) } } |