Private
Public Access
2
0

mraa: add mraa_get_platform_name

getPlatformName for c++/swig API
Closes #35

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-11-26 15:15:55 +00:00
parent 0289c63c4c
commit d1185efc0a
8 changed files with 55 additions and 0 deletions

View File

@@ -332,3 +332,11 @@ mraa_setup_uart(int index)
return MRAA_SUCCESS;
}
char*
mraa_get_platform_name()
{
if (plat == NULL)
return "Unknown";
return plat->platform_name;
}