some 'const' specifications, putting the code to determine the default device

in its own file
This commit is contained in:
Arnout Engelen
2011-07-12 21:53:54 +00:00
parent a50b249438
commit ff8151fe96
9 changed files with 37 additions and 24 deletions

13
devices.h Normal file
View File

@@ -0,0 +1,13 @@
#include <cstddef> // NULL
class device {
public:
device (const char * m_name, device * m_next = NULL)
{
name = m_name; next = m_next;
}
const char * name;
device * next;
};
device * determine_default_device();