f8314a435e
We already have a few attributes that can specify the native name for a type, whenever the native name doesn't match the managed name: * [Register ("DifferentClassName"): specifies the Objective-C class name * [Native ("DifferentEnumName")]: specifies the Objective-C enum name (and also that it's a native-sized enum) * [Protocol ("DifferentProtocolName")]: specifies the Objective-C protocol name * [Category ("DifferentCategoryName")]: specifies the Objective-C category name Unfortunately this leaves (at least) two cracks: * Objective-C structs. * Objective-C enums which aren't native-sized. So I'm adding a [NativeName] attribute for this purpose, and updating numerous types to specify the native name (either using an existing [Native] attribute for enums that already have one, or by adding a new [NativeName] attribute). The static registrar needs to know the native name for such types, in case they appear as parameter types in function signatures. This also allows us to simplify xtro a bit, to not have a separate map of managed name given a native name, because we can now build that map dynamically. |
||
---|---|---|
.. | ||
linker/MonoMac.Tuner | ||
.gitignore | ||
Application.mmp.cs | ||
Assembly.mmp.cs | ||
Info-framework.plist.tmpl | ||
Info.plist.tmpl | ||
Makefile | ||
Target.mmp.cs | ||
Tuning.mmp.cs | ||
aot.cs | ||
config | ||
config_mobile | ||
driver.cs | ||
machine.4_5.config | ||
mmp | ||
mmp.csproj | ||
resolver.cs |