aboutsummaryrefslogtreecommitdiff
path: root/lux.h
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-08-27 22:18:40 +0200
committerThomas Voss <thomasvoss@live.com> 2022-08-27 22:18:40 +0200
commit0704682d1943b3033f4762aa0d774218c16ba9b3 (patch)
treed64d66e0758b65dc88675e274fbcd7960ee63a9f /lux.h
parent5a055fafadbee61260649db3d482dcde798aaac4 (diff)
Add C++ compatibility
Diffstat (limited to 'lux.h')
-rw-r--r--lux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lux.h b/lux.h
index 9b21450..2ac1637 100644
--- a/lux.h
+++ b/lux.h
@@ -22,6 +22,10 @@
#define BACKLIGHT_DIR "/sys/class/backlight"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct luxdisp {
int __dirfd, __max;
FILE *__bstream;
@@ -40,4 +44,8 @@ double luxsetp(struct luxdisp *, double);
double luxincp(struct luxdisp *, double);
double luxdecp(struct luxdisp *, double);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* !LUX_H */