Resolvable: Add Version() getter

This commit is contained in:
Ingo Weinhold 2011-06-25 17:12:03 +02:00
parent 8a85232741
commit 0d7d1795a1
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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