package
0.0.0-20250207191401-950a7b2d7eaf
Repository: https://github.com/digitalocean/go-libvirt.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AddCase is called when the parser finishes parsing a case.
AddConst adds a new constant to the parser's list.
AddDeclaration is called by the parser when it find a declaration (int x).
AddEnumAutoVal adds an enum to the list, using the automatically-incremented value.
AddEnumVal will add a new enum value to the list.
AddFixedArray is called by the parser to add a fixed-length array to the current container (struct, union, etc).
AddOptValue is called by the parser to add an optional value.
AddProcEnumVal adds a procedure enum to our list of remote procedures which we will later generate code for.
AddStruct is called when the parser has finished parsing a struct.
AddUnion is called by the parser when it has finished processing a union type.
AddVariableArray is called by the parser to add a variable-length array.
Generate will output go bindings for libvirt.
NewDecl returns a new declaration struct.
NewLexer will return a new lexer for the passed-in reader.
StartCase is called when the parser finds a case statement within a union.
StartEnum is called when the parser has found a valid enum.
StartStruct is called from the parser when a struct definition is found, but before the member declarations are processed.
StartTypedef is called when the parser finds a typedef.
StartUnion is called by the parser when it finds a union declaraion.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
CurrentCase holds the current case record while the parser is in a union and a case statement.
CurrentEnumVal is the auto-incrementing value assigned to enums that aren't explicitly given a value.
CurrentStruct will point to a struct record if we're in a struct declaration.
CurrentTypedef will point to a typedef record if we're parsing one.
CurrentUnion holds the current discriminated union record.
Gen accumulates items as the parser runs, and is then used to produce the output.
# Structs
Case holds a single case of a discriminated union.
ConstItem stores an const's symbol and value from the parser.
Decl records a declaration, like 'int x' or 'remote_nonnull_string str'.
Generator holds all the information parsed out of the protocol file.
Lexer stores the state of this lexer.
Proc holds information about a libvirt procedure the parser has found.
ProcMeta holds information about a libvirt procedure, and is used during code generation.
Structure records the name and members of a struct definition.
Typedef holds the name and underlying type for a typedef.
Union holds a "discriminated union", which consists of a discriminant, which tells you what kind of thing you're looking at, and a number of encodings.