add hardware_caps header

First version of a "hardware capabilites information" struct.
This is intended to help clean up the mess in the neutrino GUI.
Surely needs some more work and ongoing changes
This commit is contained in:
Stefan Seyfried
2012-09-15 11:49:51 +02:00
parent 4c0541ac28
commit 8a6f1dea9d
9 changed files with 208 additions and 0 deletions

30
libtriple/hardware_caps.c Normal file
View File

@@ -0,0 +1,30 @@
/*
* determine the capabilities of the hardware.
* part of libstb-hal
*
* (C) 2010-2012 Stefan Seyfried
*
* License: GPL v2 or later
*/
#include "hardware_caps.h"
static hw_caps_t caps = {
.has_fan = 0,
.has_SCART = 1,
.has_SCART_input = 1,
.has_HDMI = 0,
.has_YUV_cinch = 0,
.can_shutdown = 0,
.can_cec = 0,
.display_type = HW_DISPLAY_GFX,
.display_xres = 128,
.display_yres = 64,
.boxvendor = "Armas",
.boxname = "TripleDragon"
};
hw_caps_t *get_hwcaps(void)
{
return ∩︀
}