Skip to content

Enhance Monitor Status callback to include monitor information#486

Open
lo-simon wants to merge 2 commits intosony:masterfrom
lo-simon:add-monitor-info-on-status-monitor-callback
Open

Enhance Monitor Status callback to include monitor information#486
lo-simon wants to merge 2 commits intosony:masterfrom
lo-simon:add-monitor-info-on-status-monitor-callback

Conversation

@lo-simon
Copy link
Copy Markdown
Collaborator

@lo-simon lo-simon commented Apr 2, 2026

Currently, the callback handlers exposed by nmos-cpp return information for all Interfaces, regardless of whether they have an associated Status Monitor. It is making it impossible to display the Interface information associated with a specific Monitor.

Current callback

typedef std::function<std::vector<nc::counter>(void)> get_packet_counters_handler;
typedef std::function<void(void)> reset_monitor_handler;

Updated callback

typedef std::function<std::vector<nc::counter>(const nmos::resource&)> get_packet_counters_handler;
typedef std::function<void(const nmos::resource&)> reset_monitor_handler;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant