X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=panel-plugin%2Fhdaps.h;h=6e6e8170c4b9fe271ca44ef1d6edac30d83d77c8;hb=c2192722c30e86449a7598eb9c962af39ed2a7e0;hp=4624daeb0f9fdeb1b82fcf2fbcb53fb12a5c9a52;hpb=63eef27ea56fc385cf1eb7af33211e697b384c3e;p=xfce4-hdaps.git diff --git a/panel-plugin/hdaps.h b/panel-plugin/hdaps.h index 4624dae..6e6e817 100644 --- a/panel-plugin/hdaps.h +++ b/panel-plugin/hdaps.h @@ -1,8 +1,32 @@ +/* + * xfce4-hdaps, an XFCE4 panel plugin for the HDAPS system. + * + * Copyright (C) 2019 Michael Orlitzky + * + * http://michael.orlitzky.com/ + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details: + * + * https://www.gnu.org/licenses/agpl-3.0.html + * + */ + #ifndef __HDAPS_H__ #define __HDAPS_H__ -#define HDAPS_ERROR -1 +#include + +#define HDAPS_ERROR -1 #define HDAPS_OFF 0 +#define HDAPS_ON 1 #define UNLOAD_HEADS_FMT "/sys/block/%s/device/unload_heads" /* The most devices we'll consider. Gotta stop somewhere. */