diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/utils.h b/src/utils.h index eb9d5bc..62d76f1 100644 --- a/src/utils.h +++ b/src/utils.h @@ -30,18 +30,13 @@ enum { USER_YESNO_YES = 1, }; -struct Lock { - char *path; - int fd; -}; - int user_yesno(int def, const char *fmt, ...); int systemf(const char *fmt, ...); FILE *popenf(const char *mode, const char *fmt, ...); char *shell_path_expand(const char *path); -struct Lock *device_lock(const char *path); -struct Lock *device_unlock(struct Lock *lock); +int device_lock(const char *path); +int device_unlock(int lock); int indexOfChar(const char *array, int len, char character); |