1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

reorder state member of some classes as they would raise a compiler error otherwise (designated initializers are not really supported in C++)

This commit is contained in:
Steffen Vogel 2018-07-04 15:07:54 +02:00
parent dc3421a3ed
commit 5391cab32d
3 changed files with 4 additions and 5 deletions

View file

@ -74,7 +74,6 @@ struct plugin {
char *path;
enum plugin_type type;
enum state state;
int (*load)(struct plugin *p);

View file

@ -38,11 +38,11 @@ extern "C" {
/** A thread-safe memory pool */
struct pool {
enum state state;
off_t buffer_off; /**< Offset from the struct address to the underlying memory area */
struct memtype *mem;
enum state state;
size_t len; /**< Length of the underlying memory area */
size_t blocksz; /**< Length of a block in bytes */

View file

@ -35,6 +35,8 @@ extern "C" {
/** Global configuration */
struct super_node {
enum state state;
int priority; /**< Process priority (lower is better) */
int affinity; /**< Process affinity of the server and all created threads */
int hugepages; /**< Number of hugepages to reserve. */
@ -50,8 +52,6 @@ struct super_node {
char *name; /**< A name of this super node. Usually the hostname. */
enum state state;
char *uri; /**< URI of configuration */
json_t *cfg; /**< JSON representation of the configuration. */