| | 498 | OSyncList *s = osync_plugin_resource_get_objformat_sinks(res); |
| | 499 | for (; s; s = s->next) { |
| | 500 | OSyncObjFormatSink *fsink = s->data; |
| | 501 | const char *objformat = osync_objformat_sink_get_objformat(fsink); |
| | 502 | assert(objformat); |
| | 503 | |
| | 504 | /* TODO: Implement objformat sanity check in OpenSync Core */ |
| | 505 | if (strcmp(objformat, "file")) { |
| | 506 | osync_error_set(error, OSYNC_ERROR_MISCONFIGURATION, "Format \"%s\" is not supported by file-sync. Only Format \"file\" is currently supported by the file-sync plugin.", objformat); |
| | 507 | goto error_free_env; |
| | 508 | } |
| | 509 | |
| | 510 | } |
| | 511 | |