From e2b58102543940205e6a15be69afcf2a203e5ddb Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 12 Apr 2013 12:20:52 +0200 Subject: [PATCH] add not implemented legacy function to import --- ykpers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ykpers.c b/ykpers.c index d66fcc2..9957035 100644 --- a/ykpers.c +++ b/ykpers.c @@ -1010,8 +1010,11 @@ int ykp_import_config(const char *buf, size_t len, YKP_CONFIG *cfg, int format) { if(format == YKP_FORMAT_JSON) { return ykp_json_import_cfg(buf, len, cfg); + } else if(format == YKP_FORMAT_LEGACY) { + ykp_errno = YKP_ENOTYETIMPL; } - return 1; + ykp_errno = YKP_EINVAL; + return 0; } int ykp_write_config(const YKP_CONFIG *cfg, int (*writer)(const char *buf, size_t count, -- 2.39.5