Resolvable: Add Version() getter
This commit is contained in:
parent
8a85232741
commit
0d7d1795a1
@ -29,7 +29,7 @@ Resolvable::~Resolvable()
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
Resolvable::Init(const char* name, Version* version)
|
Resolvable::Init(const char* name, ::Version* version)
|
||||||
{
|
{
|
||||||
fVersion = version;
|
fVersion = version;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
Resolvable(::Package* package);
|
Resolvable(::Package* package);
|
||||||
virtual ~Resolvable();
|
virtual ~Resolvable();
|
||||||
|
|
||||||
status_t Init(const char* name, Version* version);
|
status_t Init(const char* name, ::Version* version);
|
||||||
// version is optional; object takes over
|
// version is optional; object takes over
|
||||||
// ownership (even in case of error)
|
// ownership (even in case of error)
|
||||||
|
|
||||||
@ -36,6 +36,7 @@ public:
|
|||||||
{ return fFamily; }
|
{ return fFamily; }
|
||||||
|
|
||||||
const char* Name() const { return fName; }
|
const char* Name() const { return fName; }
|
||||||
|
::Version* Version() const { return fVersion; }
|
||||||
|
|
||||||
void AddDependency(Dependency* dependency);
|
void AddDependency(Dependency* dependency);
|
||||||
void RemoveDependency(Dependency* dependency);
|
void RemoveDependency(Dependency* dependency);
|
||||||
@ -46,7 +47,7 @@ private:
|
|||||||
::Package* fPackage;
|
::Package* fPackage;
|
||||||
ResolvableFamily* fFamily;
|
ResolvableFamily* fFamily;
|
||||||
char* fName;
|
char* fName;
|
||||||
Version* fVersion;
|
::Version* fVersion;
|
||||||
ResolvableDependencyList fDependencies;
|
ResolvableDependencyList fDependencies;
|
||||||
|
|
||||||
public: // conceptually package private
|
public: // conceptually package private
|
||||||
|
Loading…
Reference in New Issue
Block a user