diff options
Diffstat (limited to 'rtemstoolkit/rld-elf.h')
-rw-r--r-- | rtemstoolkit/rld-elf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-elf.h b/rtemstoolkit/rld-elf.h index fffe036..92e92c1 100644 --- a/rtemstoolkit/rld-elf.h +++ b/rtemstoolkit/rld-elf.h @@ -644,6 +644,17 @@ namespace rld */ bool is_writable () const; + /** + * Obtain a reference to this object. End fails while references are + * held. + */ + void reference_obtain (); + + /** + * Release the reference to this object. + */ + void reference_release (); + private: /** @@ -697,6 +708,7 @@ namespace rld void error (const char* where) const; int fd_; //< The file handle. + int refs; //< The reference count. std::string name_; //< The name of the file. bool archive; //< The ELF file is part of an archive. bool writable; //< The file is writeable. |