Arbiter
Dependency manager library that supports decentralization
Functions
Dependency.h File Reference

Go to the source code of this file.

Functions

ArbiterDependencyArbiterCreateDependency (const ArbiterProjectIdentifier *projectIdentifier, const struct ArbiterRequirement *requirement)
 Creates a dependency which specifies a version requirement of the given project. More...
 
ArbiterDependencyListArbiterCreateDependencyList (const ArbiterDependency *const *dependencies, size_t count)
 Creates a dependency list which wraps a C array of ArbiterDependency objects. More...
 
ArbiterProjectIdentifierArbiterCreateProjectIdentifier (ArbiterUserValue value)
 Creates a project identifier from the given opaque data. More...
 
ArbiterResolvedDependencyArbiterCreateResolvedDependency (const ArbiterProjectIdentifier *project, const struct ArbiterSelectedVersion *version)
 Creates a fully resolved dependency referring to the specified version of the given project. More...
 
const ArbiterProjectIdentifierArbiterDependencyProject (const ArbiterDependency *dependency)
 Returns the project identified by this dependency. More...
 
const struct ArbiterRequirementArbiterDependencyRequirement (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 ArbiterProjectIdentifierArbiterResolvedDependencyProject (const ArbiterResolvedDependency *dependency)
 Returns the project this resolved dependency refers to. More...
 
const struct ArbiterSelectedVersionArbiterResolvedDependencyVersion (const ArbiterResolvedDependency *dependency)
 Returns the version which was selected for this resolved dependency. More...
 

Function Documentation

§ ArbiterCreateDependency()

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().

§ ArbiterCreateDependencyList()

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().

§ ArbiterCreateProjectIdentifier()

ArbiterProjectIdentifier* ArbiterCreateProjectIdentifier ( ArbiterUserValue  value)

Creates a project identifier from the given opaque data.

The returned identifier must be freed with ArbiterFree().

§ ArbiterCreateResolvedDependency()

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().

§ ArbiterDependencyProject()

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.

§ ArbiterDependencyRequirement()

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.

§ ArbiterProjectIdentifierValue()

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.

§ ArbiterResolvedDependencyProject()

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.

§ ArbiterResolvedDependencyVersion()

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.