Add methods to get property name and enumerate properties.

Also add method to remove property by handle.
This commit is contained in:
Peter Johnson
2016-08-26 08:19:28 -07:00
parent 0158fd35f0
commit 0fbb2e8a14
10 changed files with 118 additions and 30 deletions

View File

@@ -21,6 +21,15 @@ CS_PropertyType GetPropertyType(CS_Property property, CS_Status* status) {
return CS_PROP_NONE; // TODO
}
std::string GetPropertyName(CS_Property property, CS_Status* status) {
return ""; // TODO
}
void GetPropertyName(CS_Property property, llvm::SmallVectorImpl<char>& name,
CS_Status* status) {
// TODO
}
bool GetBooleanProperty(CS_Property property, CS_Status* status) {
return false; // TODO
}
@@ -138,6 +147,12 @@ bool IsSourceConnected(CS_Source source, CS_Status* status) {
return false; // TODO
}
void EnumerateSourceProperties(CS_Source source,
llvm::SmallVectorImpl<CS_Property>& properties,
CS_Status* status) {
// TODO
}
CS_Source CopySource(CS_Source source, CS_Status* status) {
return source; // TODO
}
@@ -179,11 +194,15 @@ CS_Property CreateSourceProperty(CS_Source source, llvm::StringRef name,
CS_Property CreateSourcePropertyCallback(
CS_Source source, llvm::StringRef name, CS_PropertyType type,
std::function<void(llvm::StringRef name, CS_Property property)> onChange,
CS_Status* status) {
std::function<void(CS_Property property)> onChange, CS_Status* status) {
return 0; // TODO
}
void RemoveSourceProperty(CS_Source source, CS_Property property,
CS_Status* status) {
// TODO
}
void RemoveSourceProperty(CS_Source source, llvm::StringRef name,
CS_Status* status) {
// TODO