added file for dect-shark
git-svn-id: https://dedected.org/svn/trunk@51 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
parent
38b42e18c0
commit
2c8a61ce0f
|
@ -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
|
Loading…
Reference in New Issue