/*
* @lc: context, has to initialized by loopcxt_init_iterator()
*
- * Returns: 0 on success, -1 on error, 1 at the end of scanning. The details
+ * Returns: 0 on success, < 0 on error, 1 at the end of scanning. The details
* about the current loop device are available by
* loopcxt_get_{fd,backing_file,device,offset, ...} functions.
*/
return res;
}
+/*
+ * Returns: TRUE/FALSE
+ */
int loopdev_has_backing_file(const char *device)
{
char *tmp = loopdev_get_backing_file(device);
return rc;
}
+/*
+ * Returns: 0 = success, < 0 error
+ */
int loopdev_delete(const char *device)
{
struct loopdev_cxt lc;