cscore: Use Twine instead of StringRef in API (#1244)

This commit is contained in:
Peter Johnson
2018-07-29 12:53:41 -07:00
committed by GitHub
parent 97a8f8f47b
commit 195e101816
35 changed files with 365 additions and 350 deletions

View File

@@ -42,21 +42,22 @@ class Notifier {
void RemoveListener(int uid);
// Notification events
void NotifySource(wpi::StringRef name, CS_Source source, CS_EventKind kind);
void NotifySource(const wpi::Twine& name, CS_Source source,
CS_EventKind kind);
void NotifySource(const SourceImpl& source, CS_EventKind kind);
void NotifySourceVideoMode(const SourceImpl& source, const VideoMode& mode);
void NotifySourceProperty(const SourceImpl& source, CS_EventKind kind,
wpi::StringRef propertyName, int property,
const wpi::Twine& propertyName, int property,
CS_PropertyKind propertyKind, int value,
wpi::StringRef valueStr);
void NotifySink(wpi::StringRef name, CS_Sink sink, CS_EventKind kind);
const wpi::Twine& valueStr);
void NotifySink(const wpi::Twine& name, CS_Sink sink, CS_EventKind kind);
void NotifySink(const SinkImpl& sink, CS_EventKind kind);
void NotifySinkSourceChanged(wpi::StringRef name, CS_Sink sink,
void NotifySinkSourceChanged(const wpi::Twine& name, CS_Sink sink,
CS_Source source);
void NotifySinkProperty(const SinkImpl& sink, CS_EventKind kind,
wpi::StringRef propertyName, int property,
const wpi::Twine& propertyName, int property,
CS_PropertyKind propertyKind, int value,
wpi::StringRef valueStr);
const wpi::Twine& valueStr);
void NotifyNetworkInterfacesChanged();
void NotifyTelemetryUpdated();