Skip to content

Callback on Database Saved (for headless clients) #8187

@CouleeApps

Description

@CouleeApps

What is the feature you'd like to have?
I want the equivalent of UIContextNotification::OnBeforeSaveFile/OnAfterSaveFile, but for headless non-UI contexts.

Is your feature request related to a problem?
There are many things this could enable, but right now I want to make views add dependency files to their project files when you save a database: #8169, and also for the shared cache (no direct issue#).

Are any alternative solutions acceptable?
All places that save a file could have to call a function to trigger these callbacks? That is not very likely to work. I could implement the functionality I want in a UI plugin, though that will break headless support and also would be very janky.

Additional Information:
There is a major issue with this and Projects: Vector35/binaryninja#1521

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreIssue needs changes to the coreEffort: LowIssues require < 1 week of workImpact: MediumIssue is impactful with a bad, or no, workaround
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions