]>
gitweb.michael.orlitzky.com - xfce4-hdaps.git/blob - panel-plugin/hdaps.h
6 #define UNLOAD_HEADS_FMT "/sys/block/%s/device/unload_heads"
8 /* The most devices we'll consider. Gotta stop somewhere. */
9 #define MAX_HDAPS_DEVICES 12
11 int parse_int_from_file(const char* filename
);
12 int slurp_file(const char* filename
, char* buf
, int max_bytes
);
13 int get_hdaps_device_list(char list
[MAX_HDAPS_DEVICES
][FILENAME_MAX
]);