Home
Pacm module

Package::Extension

Optional extension metadata that describes how a packaged runtime unit is loaded.

Extension

#include <icy/pacm/package.h>
struct Extension

Defined in src/pacm/include/icy/pacm/package.h:29

Optional extension metadata that describes how a packaged runtime unit is loaded.

List of all members

NameKindOwner
rootvariableDeclared here
ExtensionfunctionDeclared here
~ExtensionfunctionDeclared here
loaderfunctionDeclared here
runtimefunctionDeclared here
entryPointfunctionDeclared here
abiVersionfunctionDeclared here
capabilitiesfunctionDeclared here
validfunctionDeclared here
hasCapabilityfunctionDeclared here

Public Attributes

ReturnNameDescription
const json::Value &root

root

const json::Value & root

Defined in src/pacm/include/icy/pacm/package.h:56

Public Methods

ReturnNameDescription
Extension
std::stringloader virtual constReturns the loader/runtime contract name (for example "graft").
std::stringruntime virtual constReturns the runtime kind (for example "native" or "worker").
std::stringentryPoint virtual constReturns the install-relative entrypoint path.
intabiVersion virtual constReturns the extension ABI version, or 0 if not specified.
std::vector< std::string >capabilities virtual constReturns the declared capabilities.
boolvalid virtual constReturns true when the metadata is internally consistent.
boolhasCapability virtual constReturns true when capability is declared.

Extension

Extension(const json::Value & src)

Defined in src/pacm/include/icy/pacm/package.h:32

Parameters

  • src JSON object node that backs this extension metadata.

loader

virtual const

virtual std::string loader() const

Defined in src/pacm/include/icy/pacm/package.h:36

Returns the loader/runtime contract name (for example "graft").


runtime

virtual const

virtual std::string runtime() const

Defined in src/pacm/include/icy/pacm/package.h:39

Returns the runtime kind (for example "native" or "worker").


entryPoint

virtual const

virtual std::string entryPoint() const

Defined in src/pacm/include/icy/pacm/package.h:42

Returns the install-relative entrypoint path.


abiVersion

virtual const

virtual int abiVersion() const

Defined in src/pacm/include/icy/pacm/package.h:45

Returns the extension ABI version, or 0 if not specified.


capabilities

virtual const

virtual std::vector< std::string > capabilities() const

Defined in src/pacm/include/icy/pacm/package.h:48

Returns the declared capabilities.


valid

virtual const

virtual bool valid() const

Defined in src/pacm/include/icy/pacm/package.h:51

Returns true when the metadata is internally consistent.


hasCapability

virtual const

virtual bool hasCapability(std::string_view capability) const

Defined in src/pacm/include/icy/pacm/package.h:54

Returns true when capability is declared.