commit 05b36ee22c78d4ce6e03b06920bf428c44a97eda from: Tobias Heider date: Sat Feb 14 21:48:19 2026 UTC style add declarations use _ for static commit - 79a57f7c59c84c74ca829e308e87e30b8b65ea1c commit + 05b36ee22c78d4ce6e03b06920bf428c44a97eda blob - d7c23b3d10cd3512b7d5c394a0e3f0cdf62e3aca blob + fb314cce0616924d8b46bda7c46d3cb66cef6bdf --- audiowidget.c +++ audiowidget.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2026 Tobias Heider + * Copyright (c) 2014-2020 Alexandre Ratchov * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -21,13 +22,16 @@ extern struct app_state s; -struct info *nextpar(struct info *); +struct info *_nextpar(struct info *); +static gboolean _on_debounce_timeout(gpointer); +static void _on_scale_value_changed(GtkRange *, gpointer); +static char *_format_percent(GtkScale *, double, gpointer); /* * find the next parameter with the same group, name, func */ struct info * -nextpar(struct info *i) +_nextpar(struct info *i) { char *str, *group, *func; int unit; @@ -55,7 +59,7 @@ _on_debounce_timeout(gpointer user_data) double value = gtk_range_get_value(audiowidget_get_gtkrange(i->widget)); unsigned int uvalue = (unsigned int)(value + 0.5); - for (; i != NULL; i = nextpar(i)) { + for (; i != NULL; i = _nextpar(i)) { sioctl_setval(s.hdl, i->ctladdr, uvalue); i->timeout = 0; }