summaryrefslogtreecommitdiff
path: root/include/user/avconfig.h
diff options
context:
space:
mode:
authordevnoname1202017-04-10 01:13:51 +0200
committerSunguk Lee2017-04-13 04:11:40 +0900
commit1f6d23c049a2f676d341623ff92af1241d4b5efd (patch)
tree8ee6aab0594d58a3fae11b9724fcf11cb32dcd9e /include/user/avconfig.h
parentAdded missing kernel IO headers. (#160) (diff)
downloadvds-libraries-1f6d23c049a2f676d341623ff92af1241d4b5efd.tar.gz
Add some brightness functions
Diffstat (limited to 'include/user/avconfig.h')
-rw-r--r--include/user/avconfig.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/user/avconfig.h b/include/user/avconfig.h
new file mode 100644
index 0000000..fe0596d
--- /dev/null
+++ b/include/user/avconfig.h
@@ -0,0 +1,34 @@
+#ifndef _PSP2_AVCONFIG_H_
+#define _PSP2_AVCONFIG_H_
+
+#include <psp2/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/***
+ * Get the maximum brightness.
+ *
+ * @param[out] maxBrightness - Maximum brightness.
+ *
+ * @return 0 on success, < 0 on error.
+ */
+int sceAVConfigGetDisplayMaxBrightness(int *maxBrightness);
+
+/***
+ * Set the screen brightness.
+ *
+ * @param brightness - Brightness that the screen will be set to (range 21-65536, 0 turns off the screen).
+ *
+ * @return 0 on success, < 0 on error.
+ */
+int sceAVConfigSetDisplayBrightness(int brightness);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+