interface · System.Bindings
IBindingProfile
public interface IBindingProfile
What larva bind --profile asks a profile, in this order: Configure (once, before the headers are read), Start
(with everything read), Enum, Struct, Constant and Function for each declaration (false leaves it out),
Name for each name not set by those hooks, then Finish. BindingProfile answers each one as the settings say.
- Tipo
- interface
- Espacio de nombres
- System.Bindings
- Ensamblado
- System.Bindings
- Acceso
- public
- Archivo fuente
Profile.ant
Herencia
- Implementado por
-
BindingProfile
Miembros privados e internos (8)
Configure(BindingSettings settings)
#
The binding's settings: what is read, where it goes, the rules names follow.
Start(BindingModel model)
#
Everything the headers declare, before each declaration is asked about: make enums from constants, rename in bulk.
A C enum (or one Start made); false leaves it out (its values become constants).
A struct or union; false leaves it out.
A constant; false leaves it out.
A function; false leaves it out.
The name cName (of that kind) gets: proposed is what the settings make of it.
Finish(BindingModel model)
#
The whole binding, named and placed, before it is written: last changes.
Código fuente
IBindingProfile en Antril, descompilado a partir de su Larva HIR.
// System.Bindings.IBindingProfile — System.Bindings (decompiled from Larva HIR)
into namespace System.Bindings
{
/// What `larva bind --profile` asks a profile, in this order: `Configure` (once, before the headers are read), `Start`
/// (with everything read), `Enum`, `Struct`, `Constant` and `Function` for each declaration (false leaves it out),
/// `Name` for each name not set by those hooks, then `Finish`. `BindingProfile` answers each one as the settings say.
public interface IBindingProfile
{
/// The binding's settings: what is read, where it goes, the rules names follow.
Configure(BindingSettings settings);
/// Everything the headers declare, before each declaration is asked about: make enums from constants, rename in bulk.
Start(BindingModel model);
/// A C enum (or one `Start` made); false leaves it out (its values become constants).
Enum(CEnum e) : bool;
/// A struct or union; false leaves it out.
Struct(CStruct s) : bool;
/// A constant; false leaves it out.
Constant(CConstant c) : bool;
/// A function; false leaves it out.
Function(CFunction f) : bool;
/// The name `cName` (of that kind) gets: `proposed` is what the settings make of it.
Name(NameKind kind, str cName, str proposed) : str;
/// The whole binding, named and placed, before it is written: last changes.
Finish(BindingModel model);
}
}