Skip to content
Snippets Groups Projects

ENH: Add datatypes and value classes to Extern C interface

Merged Florian Spreckelsen requested to merge f-consolidate-c into dev
2 files
+ 0
21
Compare changes
  • Side-by-side
  • Inline

Files

+ 0
20
@@ -824,26 +824,6 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
return 0;
})
// TODO(fspreck) Fix this somehow. It segfaults. Bleh.
// ERROR_RETURN_CODE(GENERIC_ERROR,
// int caosdb_entity_property_get_string_list_value(
// caosdb_entity_property *property, char ***out),
// {
// auto *wrapped_property = WRAPPED_PROPERTY_CAST(property);
// auto value_list = wrapped_property->GetValue().AsList();
// delete[] * out;
// std::vector<char *> out_list;
// char *tmp;
// out_list.reserve(value_list.size());
// for (size_t i = 0; i < value_list.size(); i++) {
// tmp = new char[value_list[i].AsString().size() + 1];
// strcpy(tmp, value_list[i].AsString().c_str());
// out_list.push_back(tmp);
// }
// *out = &out_list[0];
// return 0;
// })
ERROR_RETURN_CODE(GENERIC_ERROR,
int caosdb_entity_property_get_value_list_length(caosdb_entity_property *property,
int *out),
Loading