]>
gitweb.michael.orlitzky.com - xfce4-hdaps.git/blob - xfce4-hdaps.h
9c1ac9c38578c8900f5b941dfb0da2623f507f9d
2 * xfce4-hdaps, an XFCE4 panel plugin for the HDAPS system.
4 * Copyright (C) 2019 Michael Orlitzky
6 * http://michael.orlitzky.com/
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details:
18 * https://www.gnu.org/licenses/agpl-3.0.html
22 #ifndef __XFCE4_HDAPS_H__
23 #define __XFCE4_HDAPS_H__
26 #include <libxfce4panel/xfce-panel-plugin.h>
27 #include <libxfce4util/libxfce4util.h>
32 XfcePanelPlugin
*plugin
;
39 /* A pointer to the timeout function.
40 That is, a pointer to the function that gets
41 executed every poll_frequency milliseconds. */
44 /* Keep track of the previous status so we don't update the
45 icon every poll_frequency for no reason. */
52 /* Pseudo-setting, updated whenever device_name is. */
53 char sysfs_file
[FILENAME_MAX
];
55 /* Configuration dialog widgets */
56 GtkWidget
*sb_poll_frequency
; /* Spinners on all our rides, yo. */
57 GtkWidget
*cb_device_name
; /* The "Device name" combo box. */
62 void hdaps_save(XfcePanelPlugin
*plugin
,
65 void hdaps_reset_timeout(HdapsPlugin
*hdaps
);