Code

hscroll: wrap attribute access added helper functions
[ncmpc.git] / src / hscroll.h
index 8b643830de5dca63fccc3f9622f6b7c0669d2295..cad3f17ddae93404c79774a9a4e4a76feafd607a 100644 (file)
@@ -27,6 +27,12 @@ struct hscroll {
        GTime t; /* GTime is equivalent to time_t */
 };
 
+static inline void
+hscroll_reset(struct hscroll *hscroll)
+{
+       hscroll->offset = 0;
+}
+
 char *
 strscroll(struct hscroll *hscroll, char *str, char *separator, unsigned width);