LoadFile() returns the loaded file, now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31281 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,7 +33,7 @@ DwarfManager::Init()
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DwarfManager::LoadFile(const char* fileName)
|
DwarfManager::LoadFile(const char* fileName, DwarfFile*& _file)
|
||||||
{
|
{
|
||||||
AutoLocker<DwarfManager> locker(this);
|
AutoLocker<DwarfManager> locker(this);
|
||||||
|
|
||||||
@@ -49,6 +49,7 @@ DwarfManager::LoadFile(const char* fileName)
|
|||||||
|
|
||||||
fFiles.Add(file);
|
fFiles.Add(file);
|
||||||
|
|
||||||
|
_file = file;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ public:
|
|||||||
bool Lock() { return fLock.Lock(); }
|
bool Lock() { return fLock.Lock(); }
|
||||||
void Unlock() { fLock.Unlock(); }
|
void Unlock() { fLock.Unlock(); }
|
||||||
|
|
||||||
status_t LoadFile(const char* fileName);
|
status_t LoadFile(const char* fileName,
|
||||||
|
DwarfFile*& _file);
|
||||||
status_t FinishLoading();
|
status_t FinishLoading();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user