Arbiter
Dependency manager library that supports decentralization
|
Go to the source code of this file.
Functions | |
ArbiterDependency * | ArbiterCreateDependency (const ArbiterProjectIdentifier *projectIdentifier, const struct ArbiterRequirement *requirement) |
Creates a dependency which specifies a version requirement of the given project. More... | |
ArbiterDependencyList * | ArbiterCreateDependencyList (const ArbiterDependency *const *dependencies, size_t count) |
Creates a dependency list which wraps a C array of ArbiterDependency objects. More... | |
ArbiterProjectIdentifier * | ArbiterCreateProjectIdentifier (ArbiterUserValue value) |
Creates a project identifier from the given opaque data. More... | |
ArbiterResolvedDependency * | ArbiterCreateResolvedDependency (const ArbiterProjectIdentifier *project, const struct ArbiterSelectedVersion *version) |
Creates a fully resolved dependency referring to the specified version of the given project. More... | |
const ArbiterProjectIdentifier * | ArbiterDependencyProject (const ArbiterDependency *dependency) |
Returns the project identified by this dependency. More... | |
const struct ArbiterRequirement * | ArbiterDependencyRequirement (const ArbiterDependency *dependency) |
Returns the version requirement of this dependency. More... | |
const void * | ArbiterProjectIdentifierValue (const ArbiterProjectIdentifier *projectIdentifier) |
Returns the opaque data which was provided to ArbiterCreateProjectIdentifier(). More... | |
const ArbiterProjectIdentifier * | ArbiterResolvedDependencyProject (const ArbiterResolvedDependency *dependency) |
Returns the project this resolved dependency refers to. More... | |
const struct ArbiterSelectedVersion * | ArbiterResolvedDependencyVersion (const ArbiterResolvedDependency *dependency) |
Returns the version which was selected for this resolved dependency. More... | |
ArbiterDependency* ArbiterCreateDependency | ( | const ArbiterProjectIdentifier * | projectIdentifier, |
const struct ArbiterRequirement * | requirement | ||
) |
Creates a dependency which specifies a version requirement of the given project.
The returned dependency must be freed with ArbiterFree().
ArbiterDependencyList* ArbiterCreateDependencyList | ( | const ArbiterDependency *const * | dependencies, |
size_t | count | ||
) |
Creates a dependency list which wraps a C array of ArbiterDependency objects.
The objects in the C array can be safely freed after calling this function.
The returned list must be freed with ArbiterFree().
ArbiterProjectIdentifier* ArbiterCreateProjectIdentifier | ( | ArbiterUserValue | value | ) |
Creates a project identifier from the given opaque data.
The returned identifier must be freed with ArbiterFree().
ArbiterResolvedDependency* ArbiterCreateResolvedDependency | ( | const ArbiterProjectIdentifier * | project, |
const struct ArbiterSelectedVersion * | version | ||
) |
Creates a fully resolved dependency referring to the specified version of the given project.
The returned dependency must be freed with ArbiterFree().
const ArbiterProjectIdentifier* ArbiterDependencyProject | ( | const ArbiterDependency * | dependency | ) |
Returns the project identified by this dependency.
The returned pointer is only guaranteed to remain valid for the current scope.
const struct ArbiterRequirement* ArbiterDependencyRequirement | ( | const ArbiterDependency * | dependency | ) |
Returns the version requirement of this dependency.
The returned pointer is only guaranteed to remain valid for the current scope.
const void* ArbiterProjectIdentifierValue | ( | const ArbiterProjectIdentifier * | projectIdentifier | ) |
Returns the opaque data which was provided to ArbiterCreateProjectIdentifier().
The returned pointer is only guaranteed to remain valid for the current scope.
const ArbiterProjectIdentifier* ArbiterResolvedDependencyProject | ( | const ArbiterResolvedDependency * | dependency | ) |
Returns the project this resolved dependency refers to.
The returned pointer is only guaranteed to remain valid for the current scope.
const struct ArbiterSelectedVersion* ArbiterResolvedDependencyVersion | ( | const ArbiterResolvedDependency * | dependency | ) |
Returns the version which was selected for this resolved dependency.
The returned pointer is only guaranteed to remain valid for the current scope.