For property events, provide property name rather than source name.

This is much more useful.
This commit is contained in:
Peter Johnson
2017-01-02 19:43:04 -08:00
parent 7ddbf20108
commit 883fd5b062
8 changed files with 26 additions and 22 deletions

View File

@@ -46,8 +46,9 @@ class Notifier {
void NotifySource(const SourceImpl& source, CS_EventKind kind);
void NotifySourceVideoMode(const SourceImpl& source, const VideoMode& mode);
void NotifySourceProperty(const SourceImpl& source, CS_EventKind kind,
int property, CS_PropertyKind propertyKind,
int value, llvm::StringRef valueStr);
llvm::StringRef propertyName, int property,
CS_PropertyKind propertyKind, int value,
llvm::StringRef valueStr);
void NotifySink(llvm::StringRef name, CS_Sink sink, CS_EventKind kind);
void NotifySink(const SinkImpl& sink, CS_EventKind kind);
void NotifySinkSourceChanged(llvm::StringRef name, CS_Sink sink,