Private
Public Access
2
0

imraa: split imraa up into imraa_io and imraa_lock

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-09-27 13:07:45 +01:00
parent c69d1884c9
commit 3971d27f8a
8 changed files with 318 additions and 171 deletions

View File

@@ -1116,7 +1116,15 @@ mraa_add_from_lockfile(const char* imraa_lock_file)
uartdev = NULL;
}
}
} else {
if (json_object_object_get_ex(jobj_lock, "IO", &ioarray) == true &&
json_object_is_type(ioarray, json_type_array)) {
/* assume we have declared IO so we are preinitialised and wipe the
* advance func array
*/
memset(plat->adv_func, 0, sizeof(mraa_adv_func_t));
}
}
else {
ret = MRAA_ERROR_INVALID_RESOURCE;
}
json_object_put(jobj_lock);