30 #ifndef USB_MODED_MODESETTING_H_
31 # define USB_MODED_MODESETTING_H_
43 void modesetting_verify_values (
void);
44 int modesetting_write_to_file_real(
const char *file,
int line,
const char *func,
const char *path,
const char *text);
45 bool modesetting_is_mounted (
const char *mountpoint);
46 bool modesetting_mount (
const char *mountpoint);
47 bool modesetting_unmount (
const char *mountpoint);
48 bool modesetting_enter_dynamic_mode(
void);
49 void modesetting_leave_dynamic_mode(
void);
57 # define write_to_file(path,text)\
58 modesetting_write_to_file_real(__FILE__,__LINE__,__FUNCTION__,(path),(text))
61 #ifndef TEMP_FAILURE_RETRY
62 #define TEMP_FAILURE_RETRY(exp) ({ \
63 __typeof__(exp) _rc; \
66 } while (_rc == -1 && errno == EINTR); \