test domo: add capabilities
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -116,6 +116,11 @@ void devices_manager_free(devices_manager_t *devices_manager)
|
||||
free(devices_manager->file_path);
|
||||
}
|
||||
|
||||
if (devices_manager->capabilities_path != NULL)
|
||||
{
|
||||
free(devices_manager->capabilities_path);
|
||||
}
|
||||
|
||||
free(devices_manager);
|
||||
}
|
||||
|
||||
@@ -188,6 +193,13 @@ int devices_manager_save(devices_manager_t *dm)
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int devices_manager_set_capabilities_path(devices_manager_t *dm, char *path)
|
||||
{
|
||||
dm->capabilities_path = strdup(path);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
char *devices_manager_get(devices_manager_t *dm, const char *capability)
|
||||
{
|
||||
json_object *output_node;
|
||||
|
||||
Reference in New Issue
Block a user