13
0
Fork 1
dedected/com-on-air_cs-linux/tools/dectshark/config.h

32 lines
290 B
C++

#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