API CHANGE: Rules::merge signature was change to includes error msg

This commit is contained in:
Felipe Zimmerle
2017-03-23 09:52:39 -03:00
parent 5e59d19121
commit dbcf5a7198
2 changed files with 7 additions and 3 deletions

View File

@@ -277,8 +277,12 @@ extern "C" void msc_rules_dump(Rules *rules) {
extern "C" int msc_rules_merge(Rules *rules_dst,
Rules *rules_from) {
return rules_dst->merge(rules_from);
Rules *rules_from, const char **error) {
int ret = rules_dst->merge(rules_from);
if (ret < 0) {
*error = strdup(rules_dst->getParserError().c_str());
}
return ret;
}