diff options
author | Thomas Voss <thomasvoss@live.com> | 2022-08-27 22:15:40 +0200 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2022-08-27 22:15:40 +0200 |
commit | 5a055fafadbee61260649db3d482dcde798aaac4 (patch) | |
tree | e0ea03625dd1509e7f67c5328ee8a819da4f4e61 /lux.h | |
parent | 3793bfc12d603b9f1c9495428c8b1a33f1e32d99 (diff) |
Add more library functions
With this commit, the following functions have been added to the
library:
- int luxinc(struct luxdisp *, int) | Increment brightness by a
raw value
- int luxdec(struct luxdisp *, int) | Decrement brightness by a
raw value
- double luxgetp(struct luxdisp *) | Get the current brightness
as a percentage
- double luxsetp(struct luxdisp *, double) | Set the current brightness
with a percentage
- double luxincp(struct luxdisp *, double) | Increment brightness by a
percentage
- double luxdecp(struct luxdisp *, double) | Decrement brightness by a
percentage
Diffstat (limited to 'lux.h')
-rw-r--r-- | lux.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -27,10 +27,17 @@ struct luxdisp { FILE *__bstream; }; +void luxfree(struct luxdisp *); int luxinit(struct luxdisp *); +int luxmax(struct luxdisp *); int luxget(struct luxdisp *); int luxset(struct luxdisp *, int); -int luxmax(struct luxdisp *); -void luxfree(struct luxdisp *); +int luxinc(struct luxdisp *, int); +int luxdec(struct luxdisp *, int); + +double luxgetp(struct luxdisp *); +double luxsetp(struct luxdisp *, double); +double luxincp(struct luxdisp *, double); +double luxdecp(struct luxdisp *, double); #endif /* !LUX_H */ |