mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
refactor: improve code-style
This commit is contained in:
parent
e341b7c0dc
commit
f8850b4110
22 changed files with 58 additions and 58 deletions
|
@ -132,9 +132,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ const int version = 1;
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
class Session;
|
class Session;
|
||||||
|
|
||||||
} // namespace api
|
} /* namespace api */
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
class SuperNode;
|
class SuperNode;
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace sessions {
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
class Socket;
|
class Socket;
|
||||||
|
|
||||||
} // namespace sessions
|
} /* namespace sessions */
|
||||||
|
|
||||||
class Server {
|
class Server {
|
||||||
|
|
||||||
|
@ -76,6 +76,6 @@ public:
|
||||||
void run(int timeout = 100);
|
void run(int timeout = 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace api
|
} /* namespace api */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -220,5 +220,5 @@ public:
|
||||||
{ return prio; }
|
{ return prio; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -86,5 +86,5 @@ public:
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -62,4 +62,4 @@ public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -37,7 +37,7 @@ private:
|
||||||
std::condition_variable cv;
|
std::condition_variable cv;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void push(const T& data)
|
void push(const T &data)
|
||||||
{
|
{
|
||||||
Queue<T>::push(data);
|
Queue<T>::push(data);
|
||||||
|
|
||||||
|
@ -58,4 +58,4 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -101,5 +101,5 @@ public:
|
||||||
void callbackOnWritable(struct lws *wsi);
|
void callbackOnWritable(struct lws *wsi);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -42,5 +42,5 @@ static char n[] = "example";
|
||||||
static char d[] = "This is just a simple example hook";
|
static char d[] = "This is just a simple example hook";
|
||||||
static HookPlugin<ExampleHook, n, d, (int) Hook::Flags::PATH> p;
|
static HookPlugin<ExampleHook, n, d, (int) Hook::Flags::PATH> p;
|
||||||
|
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -93,9 +93,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -172,9 +172,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -144,9 +144,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -312,9 +312,9 @@ stop: sent = io_print(&io, smps, send);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -194,9 +194,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -511,9 +511,9 @@ check: if (optarg == endptr)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -523,9 +523,9 @@ const lws_http_mount Relay::mount = {
|
||||||
.basic_auth_login_file =nullptr,
|
.basic_auth_login_file =nullptr,
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -169,6 +169,6 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
|
@ -322,9 +322,9 @@ out: sample_decref(t);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -279,9 +279,9 @@ out: for (auto side : sides)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -109,9 +109,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -254,9 +254,9 @@ check: if (optarg == endptr)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,9 +73,9 @@ protected:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tools
|
} /* namespace tools */
|
||||||
} // namespace node
|
} /* namespace node */
|
||||||
} // namespace villas
|
} /* namespace villas */
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue