get_next_device
char *path = get_next_device(&cookie);
if (get_next_device(&cookie) != NULL) {
while ((path = get_next_device(&cookie)) != NULL)