mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
add display_has_statusline member
Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
Origin commit data
------------------
Branch: master
Commit: 70cdad0db1
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)
Origin message was:
------------------
- add display_has_statusline member
Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
------------------
This commit was generated by Migit
This commit is contained in:
@@ -31,6 +31,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 8;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_has_statusline = 0;
|
||||
strcpy(caps.boxvendor, "AZBox");
|
||||
const char *tmp;
|
||||
char buf[64];
|
||||
|
@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 8;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_has_statusline = 0;
|
||||
strcpy(caps.boxvendor, "Generic");
|
||||
strcpy(caps.boxname, "PC");
|
||||
if (! uname(&u))
|
||||
|
@@ -38,6 +38,7 @@ typedef struct hw_caps
|
||||
int display_yres;
|
||||
int display_can_set_brightness;
|
||||
int display_can_deepstandby;
|
||||
int display_has_statusline;
|
||||
char boxvendor[64];
|
||||
char boxname[64];
|
||||
char boxarch[64];
|
||||
|
@@ -35,6 +35,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_xres = 16;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.display_can_set_brightness = 1;
|
||||
caps.display_has_statusline = 0;
|
||||
caps.has_HDMI = 1;
|
||||
strcpy(caps.boxvendor, "AX-Technologies");
|
||||
strcpy(caps.boxname, "HD51");
|
||||
|
@@ -31,6 +31,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
int fd = open("/proc/stb/info/model", O_RDONLY);
|
||||
caps.display_can_set_brightness = 0;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_has_statusline = 0;
|
||||
if (fd != -1) {
|
||||
len = read(fd, buf, sizeof(buf) - 1);
|
||||
close(fd);
|
||||
|
@@ -36,6 +36,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
caps.display_can_set_brightness = 0;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_has_statusline = 0;
|
||||
caps.has_HDMI = 1;
|
||||
caps.has_SCART = 1;
|
||||
caps.display_xres = 4;
|
||||
|
@@ -21,6 +21,7 @@ static hw_caps_t caps = {
|
||||
.display_xres = 128,
|
||||
.display_yres = 64,
|
||||
.display_can_deepstandby = 0;
|
||||
.display_has_statusline = 0;
|
||||
.boxvendor = "Armas",
|
||||
.boxname = "TripleDragon"
|
||||
};
|
||||
|
@@ -31,6 +31,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 8;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_has_statusline = 0;
|
||||
strcpy(caps.boxvendor, "Raspberry");
|
||||
strcpy(caps.boxname, "Pi");
|
||||
|
||||
|
Reference in New Issue
Block a user