From fc9c291b86beb1650dc9a67051f6f64439adf879 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 6 Feb 2026 12:23:17 -0500 Subject: Add FileMetadata::GetDisplayName API to convey synthesized filenames for container file entries. --- binaryninjaapi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'binaryninjaapi.h') 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 -- cgit v1.3.1