add autoaway

This commit is contained in:
deepend committed 2026-12-05 10:15:07 -06:00
1 parent 3714756670
commit 0566e7b7a9
29 files changed
+828 -8

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
/* ZoiteChat
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef ZOITECHAT_AUTOAWAY_H
#define ZOITECHAT_AUTOAWAY_H
#include <glib.h>
struct server;
void autoaway_activity (void);
void autoaway_manual (struct server *serv);
void autoaway_reset (struct server *serv);
void autoaway_reinit (void);
/* Both samples are in microseconds; -1 means desktop idle is unavailable. */
void autoaway_check (gint64 now, gint64 desktop_idle);
#endif