File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3694,6 +3694,7 @@ namespace BinaryNinja {
36943694 std::string GetId() const;
36953695 bool IsOpen() const;
36963696 std::string GetPath() const;
3697+ std::string GetFilePathInProject(const Ref<ProjectFile>& file) const;
36973698 std::string GetName() const;
36983699 void SetName(const std::string& name);
36993700 std::string GetDescription() const;
Original file line number Diff line number Diff line change @@ -4039,6 +4039,7 @@ extern "C"
40394039 BINARYNINJACOREAPI char * BNProjectGetId (BNProject* project);
40404040 BINARYNINJACOREAPI bool BNProjectIsOpen (BNProject* project);
40414041 BINARYNINJACOREAPI char * BNProjectGetPath (BNProject* project);
4042+ BINARYNINJACOREAPI char * BNProjectGetFilePathInProject (BNProject* project, BNProjectFile* file);
40424043 BINARYNINJACOREAPI char * BNProjectGetName (BNProject* project);
40434044 BINARYNINJACOREAPI void BNProjectSetName (BNProject* project, const char * name);
40444045 BINARYNINJACOREAPI char * BNProjectGetDescription (BNProject* project);
Original file line number Diff line number Diff line change @@ -285,6 +285,15 @@ std::string Project::GetPath() const
285285 return result;
286286}
287287
288+ std::string Project::GetFilePathInProject (const Ref<ProjectFile>& file) const
289+ {
290+ char * path = BNProjectGetFilePathInProject (m_object, file->m_object );
291+ std::string result = path;
292+ BNFreeString (path);
293+ return result;
294+ }
295+
296+
288297
289298std::string Project::GetName () const
290299{
You can’t perform that action at this time.
0 commit comments