13
0
Fork 1

added file for dect-shark

git-svn-id: https://dedected.org/svn/trunk@51 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
krater 2009-01-28 20:55:51 +00:00
parent 38b42e18c0
commit 2c8a61ce0f
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#if !defined(CONFIG_H)
#define CONFIG_H
//TODO: make threadsafe
struct sharkconfig
{
bool hop;
int mode;
};
class config
{
public:
config() {cfg.hop=1;}
~config() {}
void sethop(bool hop) {cfg.hop=hop;}
bool hop() {;return cfg.hop;}
private:
sharkconfig cfg;
};
#endif