diff options
| author | Brian Potchik <brian@vector35.com> | 2026-02-06 12:23:17 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2026-02-06 12:23:17 -0500 |
| commit | fc9c291b86beb1650dc9a67051f6f64439adf879 (patch) | |
| tree | a841073c856c8839ab10c56afb0209b38ed7bbe0 /binaryninjaapi.h | |
| parent | 7e47e9e4b012d7c10fb54a59b7c68b3a1715ee5a (diff) | |
Add FileMetadata::GetDisplayName API to convey synthesized filenames for container file entries.
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 5c73fe9a..3a2a7941 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -3803,6 +3803,20 @@ namespace BinaryNinja { */ void SetVirtualPath(const std::string& path); + /*! Get the display name for the file. For container entries, this returns the synthesized name + representing the extracted artifact. For normal files, this returns the filename. + + \return The display name for UI purposes (tab titles, save dialogs, etc.) + */ + std::string GetDisplayName() const; + + /*! Set the display name for the file. This is typically used for container entries to store + a synthesized name representing the extracted artifact. + + \param name The display name to set + */ + void SetDisplayName(const std::string& name); + /*! Whether the file has unsaved modifications \return Whether the file has unsaved modifications |
