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:
vanhofen
2017-11-13 10:10:19 +01:00
committed by Jacek Jendrzej
parent f674ea7389
commit 81800dfe02
8 changed files with 8 additions and 0 deletions

View File

@@ -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];

View File

@@ -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))

View File

@@ -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];

View File

@@ -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");

View File

@@ -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);

View File

@@ -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;

View File

@@ -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"
};

View File

@@ -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");