CvSource: Update interface functions.

- Add SetDescription
- Supply minimum, maximum, step, defaultValue, and value to CreateProperty
- Add SetEnumPropertyChoices
This commit is contained in:
Peter Johnson
2016-10-23 08:43:06 -07:00
parent 1f6b386325
commit 9142cbb820
9 changed files with 182 additions and 36 deletions

View File

@@ -342,17 +342,31 @@ void SetSourceConnected(CS_Source source, bool connected, CS_Status* status) {
// TODO
}
void SetSourceDescription(CS_Source source, llvm::StringRef description,
CS_Status* status) {
// TODO
}
CS_Property CreateSourceProperty(CS_Source source, llvm::StringRef name,
CS_PropertyType type, CS_Status* status) {
CS_PropertyType type, int minimum, int maximum,
int step, int defaultValue, int value,
CS_Status* status) {
return 0; // TODO
}
CS_Property CreateSourcePropertyCallback(
CS_Source source, llvm::StringRef name, CS_PropertyType type,
CS_Source source, llvm::StringRef name, CS_PropertyType type, int minimum,
int maximum, int step, int defaultValue, int value,
std::function<void(CS_Property property)> onChange, CS_Status* status) {
return 0; // TODO
}
void SetSourceEnumPropertyChoices(CS_Source source, CS_Property property,
llvm::ArrayRef<std::string> choices,
CS_Status* status) {
// TODO
}
void RemoveSourceProperty(CS_Source source, CS_Property property,
CS_Status* status) {
// TODO