1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
// copyright 2012–2021 nick black
#ifndef GROWLIGHT_MOUNTS
#define GROWLIGHT_MOUNTS
#ifdef __cplusplus
extern "C" {
#endif
struct device;
struct controller;
struct growlight_ui;
// (Re)parse the specified file having /proc/mounts format. Remember that
// /proc/mounts must be poll()ed with POLLPRI, not POLLIN!
int parse_mounts(const struct growlight_ui *,const char *);
int mmount(struct device *,const char *,unsigned,const void *);
int unmount(struct device *,const char *);
void clear_mounts(struct controller *);
unsigned flag_for_mountop(const char *);
#ifdef __cplusplus
}
#endif
#endif
|